Skip to content

Commit

Permalink
Fix bug with CLI not working when installed globally
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Nov 6, 2019
1 parent 59be0e9 commit a6e9502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Empty file modified bin/cli.js 100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion bin/near
@@ -1,3 +1,4 @@
#!/bin/sh
node --experimental-repl-await "$(dirname "$0")"/cli.js "$@"
CLI_PATH="$(dirname "$0")"/near-cli-js
node --experimental-repl-await "$CLI_PATH" "$@"

3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,8 @@
},
"homepage": "https://github.com/nearprotocol/near-shell#readme",
"bin": {
"near": "./bin/near"
"near": "./bin/near",
"near-cli-js": "./bin/cli.js"
},
"devDependencies": {
"eslint": "^6.4.0",
Expand Down

0 comments on commit a6e9502

Please sign in to comment.