@zkochan/cmd-shim
Advanced tools
Comparing version 5.1.3 to 5.2.0
@@ -44,2 +44,3 @@ declare namespace cmdShim { | ||
fs?: typeof import('fs'); | ||
nodeExecPath?: string; | ||
} | ||
@@ -46,0 +47,0 @@ } |
12
index.js
@@ -214,2 +214,6 @@ 'use strict'; | ||
} | ||
else if (prog === 'node' && opts.nodeExecPath) { | ||
prog = `"${opts.nodeExecPath}"`; | ||
target = quotedPathToTarget; | ||
} | ||
else { | ||
@@ -274,2 +278,6 @@ longProg = `"%~dp0\\${prog}.exe"`; | ||
} | ||
else if (opts.prog === 'node' && opts.nodeExecPath) { | ||
shProg = `"${opts.nodeExecPath}"`; | ||
shTarget = quotedPathToTarget; | ||
} | ||
else { | ||
@@ -354,2 +362,6 @@ shLongProg = `"$basedir/${opts.prog}"`; | ||
} | ||
else if (opts.prog === 'node' && opts.nodeExecPath) { | ||
pwshProg = `"${opts.nodeExecPath}"`; | ||
shTarget = quotedPathToTarget; | ||
} | ||
else { | ||
@@ -356,0 +368,0 @@ pwshLongProg = `"$basedir/${opts.prog}$exe"`; |
118
package.json
{ | ||
"name": "@zkochan/cmd-shim", | ||
"version": "5.1.3", | ||
"description": "Used in pnpm for command line application support", | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"email": "zoltan.kochan@gmail.com", | ||
"url": "http://kochan.io" | ||
}, | ||
"files": [ | ||
"index.d.ts", | ||
"index.d.ts.map", | ||
"index.js", | ||
"index.js.map" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pnpm/cmd-shim.git" | ||
}, | ||
"license": "BSD-2-Clause", | ||
"dependencies": { | ||
"is-windows": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/is-windows": "^1.0.0", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.20", | ||
"jest": "^26.6.3", | ||
"memfs": "^3.2.0", | ||
"mock-fs": "^4.13.0", | ||
"mos": "^1.3.1", | ||
"mos-plugin-readme": "^1.0.4", | ||
"standard": "^14.3.4", | ||
"typescript": "^4.1.3" | ||
}, | ||
"engines": { | ||
"node": ">=10.13" | ||
}, | ||
"mos": { | ||
"plugins": [ | ||
"readme" | ||
] | ||
}, | ||
"standard": { | ||
"env": { | ||
"jest": true | ||
} | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" | ||
}, | ||
"scripts": { | ||
"clean": "tsc --build --clean", | ||
"build": "tsc --build --verbose --listEmittedFiles", | ||
"pretest:unit": "tsc --build test --verbose --listEmittedFiles", | ||
"test:unit": "jest", | ||
"test": "pnpm run build && standard && pnpm run test:unit && mos test", | ||
"md": "mos" | ||
} | ||
} | ||
"name": "@zkochan/cmd-shim", | ||
"version": "5.2.0", | ||
"description": "Used in pnpm for command line application support", | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"email": "zoltan.kochan@gmail.com", | ||
"url": "http://kochan.io" | ||
}, | ||
"files": [ | ||
"index.d.ts", | ||
"index.d.ts.map", | ||
"index.js", | ||
"index.js.map" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pnpm/cmd-shim.git" | ||
}, | ||
"license": "BSD-2-Clause", | ||
"dependencies": { | ||
"is-windows": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/is-windows": "^1.0.0", | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.20", | ||
"jest": "^26.6.3", | ||
"memfs": "^3.2.0", | ||
"mock-fs": "^4.13.0", | ||
"mos": "^1.3.1", | ||
"mos-plugin-readme": "^1.0.4", | ||
"standard": "^14.3.4", | ||
"typescript": "^4.1.3" | ||
}, | ||
"engines": { | ||
"node": ">=10.13" | ||
}, | ||
"mos": { | ||
"plugins": [ | ||
"readme" | ||
] | ||
}, | ||
"standard": { | ||
"env": { | ||
"jest": true | ||
} | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" | ||
}, | ||
"scripts": { | ||
"clean": "tsc --build --clean", | ||
"build": "tsc --build --verbose --listEmittedFiles", | ||
"pretest:unit": "tsc --build test --verbose --listEmittedFiles", | ||
"test:unit": "jest", | ||
"test": "pnpm run build && standard && pnpm run test:unit && mos test", | ||
"md": "mos" | ||
} | ||
} |
@@ -38,2 +38,3 @@ # @zkochan/cmd-shim | ||
- `opts.nodePath` - _String_ - sets the [NODE_PATH](https://nodejs.org/api/cli.html#cli_node_path_path) env variable. | ||
- `opts.nodeExecPath` - _String_ - sets the path to the Node.js executable. | ||
- `opts.createCmdFile` - _Boolean_ - is `true` on Windows by default. If true, creates a cmd file. | ||
@@ -40,0 +41,0 @@ - `opts.createPwshFile` - _Boolean_ - is `true` by default. If true, creates a powershell file. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34817
558
52