Skip to content

Commit

Permalink
simplify install script, remove dependency to yarn (#2340)
Browse files Browse the repository at this point in the history
DEV
* simplify install script, remove dependency to yarn

Current version of tfjs-node-gpu (1.3.1)  requires the installation of yarn (either globally or via package.json) due to the "yarn install-gpu" install script. Renaming the "install-gpu" to "install" should fix this and allow installation without yarn.

* Fix integration
  • Loading branch information
valette authored and Kangyi Zhang committed Nov 6, 2019
1 parent 3b716df commit cf2e78b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tfjs-node-gpu/integration/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"prep": "yalc link @tensorflow/tfjs-node-gpu && cd node_modules/@tensorflow/tfjs-node-gpu && yarn clean-deps && yarn install-gpu",
"prep": "yalc link @tensorflow/tfjs-node-gpu && cd node_modules/@tensorflow/tfjs-node-gpu && yarn clean-deps && yarn install",
"test": "ts-node src/test.ts && tsc && node dist/test.js"
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions tfjs-node-gpu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"enable-gpu": "node scripts/install.js gpu download && yarn && yarn build-addon-from-source",
"ensure-cpu-gpu-packages-align": "node scripts/ensure-cpu-gpu-packages-align.js",
"format": "clang-format -i -style=Google binding/*.cc binding/*.h",
"install": "yarn install-gpu",
"install-gpu": "node scripts/install.js gpu download",
"install": "node scripts/install.js gpu download",
"install-from-source": "yarn clean-deps && yarn && yarn build-addon-from-source",
"link-local": "yalc link",
"lint": "tslint -p . -t verbose",
Expand Down

0 comments on commit cf2e78b

Please sign in to comment.