Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
fix(shell): use argv._ now
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Dec 3, 2018
1 parent 1cc5ad0 commit 68e301d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/commands/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ async function shell (argv, opts) {
['-r', require.resolve('../node/index.js'), ...(opts.nodeArg || []), ...argv.slice(1)],
{ stdio: 'inherit' }
)
} else if (argv.length > 1) {
} else if (argv._.length > 1) {
require('../node/index.js')
const Module = require('module')
process.argv = [
process.argv[0],
path.resolve(argv[1]),
...argv.slice(2)
path.resolve(argv._[1]),
...argv._.slice(2)
]
Module.runMain()
} else {
Expand Down

0 comments on commit 68e301d

Please sign in to comment.