瀏覽代碼

Adding build script

It is not possible to publish the node_modules directory => building to js instead of ts-node and typescript peer dependency requirement
bodicsek 4 年之前
父節點
當前提交
d68611bf96
共有 3 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      .gitignore
  2. 2 0
      .npmignore
  3. 1 0
      package.json

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 node_modules
+**/*.js

+ 2 - 0
.npmignore

@@ -0,0 +1,2 @@
+package-lock.json
+**/*.ts

+ 1 - 0
package.json

@@ -8,6 +8,7 @@
   },
   "scripts": {
     "start": "ts-node dependency-tree.ts",
+    "build": "tsc",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "author": "",