Skip to content

Commit

Permalink
Update is-global.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan authored Dec 16, 2024
1 parent 5bacf4c commit b711a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-kit/src/public/node/is-global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function currentProcessIsGlobal(argv = process.argv): boolean {

// Closest parent directory to contain a package.json file or node_modules directory
// https://docs.npmjs.com/cli/v8/commands/npm-prefix#description
const npmPrefix = execaSync('npw', ['prefix'], {cwd: path}).stdout.trim()
const npmPrefix = execaSync('npm', ['prefix'], {cwd: path}).stdout.trim()

// From node docs: "The second element [of the array] will be the path to the JavaScript file being executed"
const binDir = argv[1] ?? ''
Expand Down

0 comments on commit b711a00

Please sign in to comment.