@pnpm/plugin-trusted-deps 0.2.0 → 0.2.2
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/allow.json +1 -0
- package/package.json +13 -2
- package/pnpmfile.cjs +13 -4
package/allow.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-trusted-deps",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "A list of OSS packages that are known to require lifecycle scripts to function properly",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -12,8 +12,18 @@
|
|
|
12
12
|
"pnpm-config"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
|
+
"devEngines": {
|
|
16
|
+
"runtime": {
|
|
17
|
+
"name": "node",
|
|
18
|
+
"version": "24",
|
|
19
|
+
"onFail": "download"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
15
22
|
"devDependencies": {
|
|
16
|
-
"
|
|
23
|
+
"eslint": "^9.39.2",
|
|
24
|
+
"neostandard": "^0.12.2",
|
|
25
|
+
"ts-node": "^10.9.2",
|
|
26
|
+
"node": "runtime:24"
|
|
17
27
|
},
|
|
18
28
|
"funding": "https://opencollective.com/pnpm",
|
|
19
29
|
"repository": {
|
|
@@ -25,6 +35,7 @@
|
|
|
25
35
|
"url": "https://github.com/pnpm/trusted-deps/issues"
|
|
26
36
|
},
|
|
27
37
|
"scripts": {
|
|
38
|
+
"lint": "eslint .",
|
|
28
39
|
"test": "node test.js",
|
|
29
40
|
"update-list": "ts-node updateList.ts"
|
|
30
41
|
}
|
package/pnpmfile.cjs
CHANGED
|
@@ -4,9 +4,18 @@ module.exports = {
|
|
|
4
4
|
if (config.onlyBuiltDependencies == null) {
|
|
5
5
|
config.onlyBuiltDependencies = []
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
const defaultAllowed = require('./allow.json')
|
|
8
|
+
if (!config.ignoredBuiltDependencies?.length) {
|
|
9
|
+
config.onlyBuiltDependencies.push(...defaultAllowed)
|
|
10
|
+
} else {
|
|
11
|
+
const ignored = new Set(config.ignoredBuiltDependencies)
|
|
12
|
+
for (const allowed of defaultAllowed) {
|
|
13
|
+
if (!ignored.has(allowed)) {
|
|
14
|
+
config.onlyBuiltDependencies.push(allowed)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
8
18
|
return config
|
|
9
|
-
}
|
|
10
|
-
}
|
|
19
|
+
},
|
|
20
|
+
},
|
|
11
21
|
}
|
|
12
|
-
|