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

Commit

Permalink
fix(npm): path directly to the npm-cli.js script
Browse files Browse the repository at this point in the history
I don't know if this fixes anything in particular, but after seeing
recent issues on Windows, I think it'd be nicer to make sure this
is consistent cross-platform, instead of sometimes hitting the cmd shim.
  • Loading branch information
zkat committed Jul 12, 2017
1 parent 6cfb8de commit d531206
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const npx = require('libnpx')
const path = require('path')

const NPM_PATH = path.join(__dirname, 'node_modules', '.bin', 'npm')
const NPM_PATH = path.join(__dirname, 'node_modules', 'npm', 'bin', 'npm-cli.js')

const parsed = npx.parseArgs(process.argv, NPM_PATH)
parsed.npxPkg = path.join(__dirname, 'package.json')
Expand Down
2 changes: 1 addition & 1 deletion test/util/npx-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
const npx = require('../../index.js')
const path = require('path')

const NPM_PATH = path.join(__dirname, '../..', 'node_modules', '.bin', 'npm')
const NPM_PATH = path.join(__dirname, '../..', 'node_modules', 'npm', 'bin', 'npm-cli.js')

npx(npx.parseArgs(process.argv, NPM_PATH))

0 comments on commit d531206

Please sign in to comment.