Skip to content

Commit

Permalink
fix(cli): set relative path to correct index.js file for real runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopsimek committed Aug 19, 2019
1 parent f9d57bc commit 4bc4051
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
/lib
/node_modules
/package-lock.json
/tmp
/tmp

# Ignore packs
dx-scanner-v*.tgz
2 changes: 1 addition & 1 deletion bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ if (dev) {
require('ts-node').register({ project });
}

require(`../${dev ? 'src' : 'lib'}`)
require(`../${dev ? 'src' : 'lib/src'}`)
.run()
.catch(require('@oclif/errors/handle'));
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"node": ">=10.15.3",
"yarn": "^1.15.2"
},
"main": "lib/index.js",
"main": "lib/src/index.js",
"bin": {
"dxscanner": "./bin/run",
"dx-scanner": "./bin/run",
Expand Down

0 comments on commit 4bc4051

Please sign in to comment.