Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v1.x' into merge-1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Sep 6, 2019
2 parents 5c1293e + 4c61241 commit 957636a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.4.3](https://github.com/isaacs/spawn-wrap/compare/v1.4.2...v1.4.3) (2019-08-23)


### Bug Fixes

* **win32:** handle cases where "node" is quoted ([#102](https://github.com/isaacs/spawn-wrap/issues/102)) ([aac8730](https://github.com/isaacs/spawn-wrap/commit/aac8730))
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,13 @@ function setup(argv, env) {
const cmdShim =
'@echo off\r\n' +
'SETLOCAL\r\n' +
'CALL :find_dp0\r\n' +
'SET PATHEXT=%PATHEXT:;.JS;=;%\r\n' +
'"' + process.execPath + '" "%~dp0\\.\\node" %*\r\n'
'EXIT /b %errorlevel%\r\n'+
':find_dp0\r\n' +
'SET dp0=%~dp0\r\n' +
'EXIT /b\r\n'

fs.writeFileSync(path.join(workingDir, 'node.cmd'), cmdShim)
fs.chmodSync(path.join(workingDir, 'node.cmd'), '0755')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spawn-wrap",
"version": "1.4.2",
"version": "1.4.3",
"description": "Wrap all spawned Node.js child processes by adding environs and arguments ahead of the main JavaScript file argument.",
"main": "index.js",
"engines": {
Expand Down

0 comments on commit 957636a

Please sign in to comment.