node-install-release 0.1.31 → 0.2.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/.github/dependabot.yml +11 -0
- package/.github/workflows/main.yml +22 -0
- package/lib/installNPM/installLib.js +4 -4
- package/package.json +14 -12
|
@@ -0,0 +1,22 @@
|
|
|
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 ci
|
|
21
|
+
- run: npm run lint
|
|
22
|
+
- run: npm run test:engines
|
|
@@ -15,11 +15,11 @@ module.exports = function installLib(version, dest, options, callback) {
|
|
|
15
15
|
var libPath = platform === 'win32' ? dest : path.join(dest, 'lib');
|
|
16
16
|
var installPath = path.join(libPath, 'node_modules', 'npm');
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
if (err) return callback(err);
|
|
18
|
+
var npmVersion = maximumVersion ? '@' + maximumVersion : '';
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
get('https://cdn.jsdelivr.net/npm/npm' + npmVersion + '/package.json').json(function (err, res) {
|
|
21
|
+
if (err) return callback(err);
|
|
22
|
+
var downloadPath = DIST_URL + '/-/npm-' + res.body.version + '.tgz';
|
|
23
23
|
var cachePath = path.join(options.cacheDirectory, path.basename(downloadPath));
|
|
24
24
|
conditionalCache(downloadPath, cachePath, function (err) {
|
|
25
25
|
if (err) return callback(err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-install-release",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Cross-platform solution for installing releases of Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -24,35 +24,36 @@
|
|
|
24
24
|
"format": "prettier --write .",
|
|
25
25
|
"lint": "eslint .",
|
|
26
26
|
"prepublishOnly": "dtd \"npm run lint\" \"depcheck\"",
|
|
27
|
-
"test": "mocha-compat test/spec/**/*.test.js --no-timeouts"
|
|
27
|
+
"test": "mocha-compat test/spec/**/*.test.js --no-timeouts",
|
|
28
|
+
"test:engines": "nvu engines npm test"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"arch": "^2.2.0",
|
|
31
|
-
"cross-spawn-cb": "^0.
|
|
32
|
+
"cross-spawn-cb": "^0.4.1",
|
|
32
33
|
"end-with": "^1.0.2",
|
|
33
34
|
"exit": "^0.1.2",
|
|
34
|
-
"fast-extract": "^0.
|
|
35
|
+
"fast-extract": "^0.3.1",
|
|
35
36
|
"fs-access-compat": "^1.0.2",
|
|
36
|
-
"get-remote": "^0.
|
|
37
|
+
"get-remote": "^0.6.2",
|
|
37
38
|
"getopts-compat": "^2.2.5",
|
|
38
39
|
"isarray": "^2.0.5",
|
|
39
40
|
"lodash.find": "^4.6.0",
|
|
40
41
|
"lodash.keys": "^4.2.0",
|
|
41
42
|
"match-semver": "^0.1.0",
|
|
42
43
|
"mkpath": "^1.0.0",
|
|
43
|
-
"node-filename-to-dist-paths": "^0.1.
|
|
44
|
-
"node-resolve-versions": "^0.
|
|
44
|
+
"node-filename-to-dist-paths": "^0.1.7",
|
|
45
|
+
"node-resolve-versions": "^0.2.2",
|
|
45
46
|
"object-assign": "^4.1.1",
|
|
46
47
|
"osenv": "^0.1.5",
|
|
47
48
|
"pump": "^3.0.0",
|
|
48
|
-
"queue-cb": "^1.1.
|
|
49
|
+
"queue-cb": "^1.1.6",
|
|
49
50
|
"rimraf": "^2.7.1",
|
|
50
51
|
"single-line-log2": "^1.1.3"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"babel-eslint": "^10.1.0",
|
|
54
55
|
"cr": "^0.1.0",
|
|
55
|
-
"depcheck": "^1.
|
|
56
|
+
"depcheck": "^1.4.3",
|
|
56
57
|
"dis-dat": "^0.1.3",
|
|
57
58
|
"eslint": "^6.8.0",
|
|
58
59
|
"eslint-config-prettier": "^6.11.0",
|
|
@@ -64,10 +65,11 @@
|
|
|
64
65
|
"fs-access-sync-compat": "^1.0.1",
|
|
65
66
|
"is-version": "^0.2.0",
|
|
66
67
|
"mocha-compat": "^3.5.5",
|
|
67
|
-
"node-version-
|
|
68
|
-
"
|
|
68
|
+
"node-version-use": "^0.2.0",
|
|
69
|
+
"node-version-utils": "^0.3.0",
|
|
70
|
+
"prettier": "^2.7.1"
|
|
69
71
|
},
|
|
70
72
|
"engines": {
|
|
71
|
-
"node": ">=0.
|
|
73
|
+
"node": ">=0.10"
|
|
72
74
|
}
|
|
73
75
|
}
|