@pnpm/plugin-trusted-deps 0.1.0 → 0.2.1
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 -1
- package/index.js +1 -0
- package/package.json +11 -5
- package/pnpmfile.cjs +13 -4
package/allow.json
CHANGED
|
@@ -267,6 +267,7 @@
|
|
|
267
267
|
"nx",
|
|
268
268
|
"odiff-bin",
|
|
269
269
|
"oniguruma",
|
|
270
|
+
"opencode-ai",
|
|
270
271
|
"optipng-bin",
|
|
271
272
|
"oracledb",
|
|
272
273
|
"os-dns-native",
|
|
@@ -359,7 +360,6 @@
|
|
|
359
360
|
"workerd",
|
|
360
361
|
"wrtc",
|
|
361
362
|
"xxhash",
|
|
362
|
-
"yarn",
|
|
363
363
|
"yo",
|
|
364
364
|
"yorkie",
|
|
365
365
|
"zeromq",
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports.TRUSTED_PACKAGE_NAMES = require('./allow.json')
|
package/package.json
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/plugin-trusted-deps",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
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": [
|
|
7
|
+
"index.js",
|
|
7
8
|
"allow.json",
|
|
8
9
|
"pnpmfile.cjs"
|
|
9
10
|
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint .",
|
|
13
|
+
"test": "node test.js",
|
|
14
|
+
"update-list": "ts-node updateList.ts"
|
|
15
|
+
},
|
|
10
16
|
"keywords": [
|
|
11
17
|
"pnpm-config"
|
|
12
18
|
],
|
|
13
19
|
"license": "MIT",
|
|
20
|
+
"packageManager": "pnpm@10.27.0",
|
|
14
21
|
"devDependencies": {
|
|
22
|
+
"eslint": "^9.39.2",
|
|
23
|
+
"neostandard": "^0.12.2",
|
|
15
24
|
"ts-node": "^10.9.2"
|
|
16
25
|
},
|
|
17
26
|
"funding": "https://opencollective.com/pnpm",
|
|
@@ -22,8 +31,5 @@
|
|
|
22
31
|
"homepage": "https://github.com/pnpm/trusted-deps#readme",
|
|
23
32
|
"bugs": {
|
|
24
33
|
"url": "https://github.com/pnpm/trusted-deps/issues"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"update-list": "ts-node updateList.ts"
|
|
28
34
|
}
|
|
29
|
-
}
|
|
35
|
+
}
|
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
|
-
|