node-version-utils 0.4.0 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +5 -0
- package/lib/spawnOptions.js +3 -2
- package/package.json +11 -8
- package/.eslintrc.json +0 -13
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/main.yml +0 -23
- package/index.js +0 -4
package/lib/index.js
ADDED
package/lib/spawnOptions.js
CHANGED
|
@@ -2,7 +2,7 @@ var path = require('path');
|
|
|
2
2
|
var assign = require('just-extend');
|
|
3
3
|
var prepend = require('path-string-prepend');
|
|
4
4
|
var NODE = process.platform === 'win32' ? 'node.exe' : 'node';
|
|
5
|
-
var pathKey = require('
|
|
5
|
+
var pathKey = require('env-path-key');
|
|
6
6
|
var startsCaseInsensitiveFn = require('./startsCaseInsensitiveFn');
|
|
7
7
|
|
|
8
8
|
var isWindows = process.platform === 'win32';
|
|
@@ -30,8 +30,9 @@ module.exports = function spawnOptions(installPath, options) {
|
|
|
30
30
|
|
|
31
31
|
// override node
|
|
32
32
|
if (env.NODE !== undefined) env.NODE = env.npm_node_execpath;
|
|
33
|
+
if (env.NODE_EXE !== undefined) env.NODE_EXE = env.npm_node_execpath;
|
|
33
34
|
|
|
34
35
|
// put the path to node and npm at the front and remove nvs
|
|
35
36
|
env[PATH_KEY] = prepend(env[PATH_KEY] || '', env.npm_config_binroot);
|
|
36
|
-
return assign({}, options, { cwd: process.cwd(), env: env
|
|
37
|
+
return assign({}, options, { cwd: process.cwd(), env: env });
|
|
37
38
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-version-utils",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Utilities for running commands on a specific version of node by installed path",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"url": "git@github.com:kmalakoff/node-version-utils.git"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
|
-
"main": "index.js",
|
|
22
|
+
"main": "lib/index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"lib"
|
|
25
|
+
],
|
|
23
26
|
"scripts": {
|
|
24
27
|
"format": "prettier --write .",
|
|
25
28
|
"lint": "eslint .",
|
|
@@ -27,26 +30,26 @@
|
|
|
27
30
|
"test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
|
-
"cross-spawn-cb": "^0.
|
|
33
|
+
"cross-spawn-cb": "^0.6.2",
|
|
34
|
+
"env-path-key": "^0.3.0",
|
|
31
35
|
"just-extend": "^6.0.1",
|
|
32
36
|
"path-string-prepend": "^0.2.0"
|
|
33
37
|
},
|
|
34
38
|
"devDependencies": {
|
|
35
|
-
"@typescript-eslint/parser": "^5.30.
|
|
39
|
+
"@typescript-eslint/parser": "^5.30.6",
|
|
36
40
|
"cr": "^0.1.0",
|
|
37
41
|
"depcheck": "^1.4.3",
|
|
38
|
-
"dis-dat": "^0.1.
|
|
39
|
-
"eslint": "^8.
|
|
42
|
+
"dis-dat": "^0.1.7",
|
|
43
|
+
"eslint": "^8.19.0",
|
|
40
44
|
"eslint-config-prettier": "^8.5.0",
|
|
41
45
|
"eslint-config-standard": "^17.0.0",
|
|
42
46
|
"eslint-plugin-import": "^2.26.0",
|
|
43
|
-
"eslint-plugin-node": "^11.1.0",
|
|
44
47
|
"eslint-plugin-promise": "^6.0.0",
|
|
45
48
|
"is-version": "^0.2.0",
|
|
46
49
|
"lodash.find": "^4.6.0",
|
|
47
50
|
"match-semver": "^0.1.0",
|
|
48
51
|
"mocha-compat": "^3.5.5",
|
|
49
|
-
"node-install-release": "^0.2.
|
|
52
|
+
"node-install-release": "^0.2.8",
|
|
50
53
|
"prettier": "^2.7.1",
|
|
51
54
|
"semver": "^5.7.1"
|
|
52
55
|
},
|
package/.eslintrc.json
DELETED
package/.github/dependabot.yml
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
on:
|
|
3
|
-
- push
|
|
4
|
-
- pull_request
|
|
5
|
-
jobs:
|
|
6
|
-
test:
|
|
7
|
-
name: Node.js ${{ matrix.node-version }} ${{ matrix.os }}
|
|
8
|
-
runs-on: ${{ matrix.os }}
|
|
9
|
-
strategy:
|
|
10
|
-
matrix:
|
|
11
|
-
node: ['latest']
|
|
12
|
-
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v2
|
|
15
|
-
- uses: actions/setup-node@v2.4.1
|
|
16
|
-
with:
|
|
17
|
-
node-version: ${{ matrix.node-version }}
|
|
18
|
-
- run: git config --global user.name "Github Actions"
|
|
19
|
-
- run: git config --global user.email "actions@users.noreply.github.com"
|
|
20
|
-
- run: npm install node-version-use -g
|
|
21
|
-
- run: npm ci
|
|
22
|
-
- run: npm run lint
|
|
23
|
-
- run: nvu engines --desc npm run test
|
package/index.js
DELETED