Skip to content

Commit 0e87cac

Browse files
committed
deps: @npmcli/[email protected]
1 parent e9b25cd commit 0e87cac

File tree

6 files changed

+38
-94
lines changed

6 files changed

+38
-94
lines changed
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
const util = require('util')
22
const fs = require('fs')
3-
const {stat} = fs.promises || { stat: util.promisify(fs.stat) };
3+
const { stat } = fs.promises || { stat: util.promisify(fs.stat) }
44

5-
async function isNodeGypPackage(path) {
5+
async function isNodeGypPackage (path) {
66
return await stat(`${path}/binding.gyp`)
77
.then(st => st.isFile())
88
.catch(() => false)
99
}
1010

1111
module.exports = {
1212
isNodeGypPackage,
13-
defaultGypInstallScript: 'node-gyp rebuild'
13+
defaultGypInstallScript: 'node-gyp rebuild',
1414
}
+21-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
22
"name": "@npmcli/node-gyp",
3-
"version": "1.0.3",
3+
"version": "2.0.0",
44
"description": "Tools for dealing with node-gyp packages",
55
"scripts": {
66
"test": "tap",
77
"preversion": "npm test",
88
"postversion": "npm publish",
9-
"prepublishOnly": "git push origin --follow-tags"
9+
"prepublishOnly": "git push origin --follow-tags",
10+
"lint": "eslint \"**/*.js\"",
11+
"postlint": "template-oss-check",
12+
"template-oss-apply": "template-oss-apply --force",
13+
"lintfix": "npm run lint -- --fix",
14+
"snap": "tap",
15+
"posttest": "npm run lint"
1016
},
1117
"repository": {
1218
"type": "git",
@@ -18,18 +24,22 @@
1824
"node-gyp"
1925
],
2026
"files": [
21-
"lib/**/*.js"
27+
"bin/",
28+
"lib/"
2229
],
2330
"main": "lib/index.js",
24-
"author": "Brian Jenkins <[email protected]>",
31+
"author": "GitHub Inc.",
2532
"license": "ISC",
26-
"tap": {
27-
"check-coverage": true,
28-
"coverage-map": "map.js"
29-
},
3033
"devDependencies": {
31-
"require-inject": "^1.4.4",
32-
"tap": "^14.10.6",
33-
"tmp": "^0.2.1"
34+
"@npmcli/eslint-config": "^3.0.1",
35+
"@npmcli/template-oss": "3.2.2",
36+
"tap": "^16.0.1"
37+
},
38+
"engines": {
39+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
40+
},
41+
"templateOSS": {
42+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
43+
"version": "3.2.2"
3444
}
3545
}

node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js

-14
This file was deleted.

node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json

-45
This file was deleted.

package-lock.json

+13-20
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,13 @@
993993
"license": "ISC"
994994
},
995995
"node_modules/@npmcli/node-gyp": {
996-
"version": "1.0.3",
997-
"license": "ISC"
996+
"version": "2.0.0",
997+
"resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-2.0.0.tgz",
998+
"integrity": "sha512-doNI35wIe3bBaEgrlPfdJPaCpUR89pJWep4Hq3aRdh6gKazIVWfs0jHttvSSoq47ZXgC7h73kDsUl8AoIQUB+A==",
999+
"inBundle": true,
1000+
"engines": {
1001+
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
1002+
}
9981003
},
9991004
"node_modules/@npmcli/package-json": {
10001005
"version": "2.0.0",
@@ -1032,15 +1037,6 @@
10321037
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
10331038
}
10341039
},
1035-
"node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp": {
1036-
"version": "2.0.0",
1037-
"resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-2.0.0.tgz",
1038-
"integrity": "sha512-doNI35wIe3bBaEgrlPfdJPaCpUR89pJWep4Hq3aRdh6gKazIVWfs0jHttvSSoq47ZXgC7h73kDsUl8AoIQUB+A==",
1039-
"inBundle": true,
1040-
"engines": {
1041-
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
1042-
}
1043-
},
10441040
"node_modules/@npmcli/run-script/node_modules/@npmcli/promise-spawn": {
10451041
"version": "3.0.0",
10461042
"resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-3.0.0.tgz",
@@ -9616,7 +9612,7 @@
96169612
"@npmcli/metavuln-calculator": "^3.0.1",
96179613
"@npmcli/move-file": "^2.0.0",
96189614
"@npmcli/name-from-folder": "^1.0.1",
9619-
"@npmcli/node-gyp": "^1.0.3",
9615+
"@npmcli/node-gyp": "^2.0.0",
96209616
"@npmcli/package-json": "^2.0.0",
96219617
"@npmcli/run-script": "^3.0.0",
96229618
"bin-links": "^3.0.0",
@@ -10286,9 +10282,9 @@
1028610282
"@npmcli/installed-package-contents": "^1.0.7",
1028710283
"@npmcli/map-workspaces": "^2.0.0",
1028810284
"@npmcli/metavuln-calculator": "^3.0.1",
10289-
"@npmcli/move-file": "2.0.0",
10285+
"@npmcli/move-file": "^2.0.0",
1029010286
"@npmcli/name-from-folder": "^1.0.1",
10291-
"@npmcli/node-gyp": "^1.0.3",
10287+
"@npmcli/node-gyp": "2.0.0",
1029210288
"@npmcli/package-json": "^2.0.0",
1029310289
"@npmcli/run-script": "^3.0.0",
1029410290
"@npmcli/template-oss": "3.2.2",
@@ -10456,7 +10452,9 @@
1045610452
"version": "1.0.1"
1045710453
},
1045810454
"@npmcli/node-gyp": {
10459-
"version": "1.0.3"
10455+
"version": "2.0.0",
10456+
"resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-2.0.0.tgz",
10457+
"integrity": "sha512-doNI35wIe3bBaEgrlPfdJPaCpUR89pJWep4Hq3aRdh6gKazIVWfs0jHttvSSoq47ZXgC7h73kDsUl8AoIQUB+A=="
1046010458
},
1046110459
"@npmcli/package-json": {
1046210460
"version": "2.0.0",
@@ -10485,11 +10483,6 @@
1048510483
"read-package-json-fast": "^2.0.3"
1048610484
},
1048710485
"dependencies": {
10488-
"@npmcli/node-gyp": {
10489-
"version": "2.0.0",
10490-
"resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-2.0.0.tgz",
10491-
"integrity": "sha512-doNI35wIe3bBaEgrlPfdJPaCpUR89pJWep4Hq3aRdh6gKazIVWfs0jHttvSSoq47ZXgC7h73kDsUl8AoIQUB+A=="
10492-
},
1049310486
"@npmcli/promise-spawn": {
1049410487
"version": "3.0.0",
1049510488
"resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-3.0.0.tgz",

workspaces/arborist/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@npmcli/metavuln-calculator": "^3.0.1",
1010
"@npmcli/move-file": "^2.0.0",
1111
"@npmcli/name-from-folder": "^1.0.1",
12-
"@npmcli/node-gyp": "^1.0.3",
12+
"@npmcli/node-gyp": "^2.0.0",
1313
"@npmcli/package-json": "^2.0.0",
1414
"@npmcli/run-script": "^3.0.0",
1515
"bin-links": "^3.0.0",

0 commit comments

Comments
 (0)