Browse Source

Merge pull request #5267 from blink1073/buildutils-scripts

Add npm executables to buildUtils
Afshin Darian 6 years ago
parent
commit
4068b094e1

+ 5 - 0
buildutils/package.json

@@ -18,6 +18,11 @@
   ],
   "main": "lib/index.js",
   "types": "lib/index.d.ts",
+  "bin": {
+    "get-dependency": "./lib/get-dependency.js",
+    "remove-dependency": "./lib/remove-dependency.js",
+    "update-dependency": "./lib/update-dependency.js"
+  },
   "directories": {
     "lib": "lib/"
   },

+ 1 - 0
buildutils/src/get-dependency.ts

@@ -1,3 +1,4 @@
+#!/usr/bin/env node
 /*-----------------------------------------------------------------------------
 | Copyright (c) Jupyter Development Team.
 | Distributed under the terms of the Modified BSD License.

+ 1 - 0
buildutils/src/remove-dependency.ts

@@ -1,3 +1,4 @@
+#!/usr/bin/env node
 /*-----------------------------------------------------------------------------
 | Copyright (c) Jupyter Development Team.
 | Distributed under the terms of the Modified BSD License.

+ 1 - 0
buildutils/src/update-dependency.ts

@@ -1,3 +1,4 @@
+#!/usr/bin/env node
 /*-----------------------------------------------------------------------------
 | Copyright (c) Jupyter Development Team.
 | Distributed under the terms of the Modified BSD License.