Skip to content

Commit ce88519

Browse files
committed
build: disable package install scripts by default
Package installation will now disable postinstall scripts by default for the repository dependencies. The yarn `enableScripts` option is now set to `false`. This still allows workspace postinstall scripts to execute and the required dependency postinstall scripts are explicitly allowed (currently: esbuild & puppeteer).
1 parent be2227e commit ce88519

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
nodeLinker: node-modules
2+
enableScripts: false
23

34
yarnPath: .yarn/releases/yarn-4.2.2.cjs

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,14 @@
210210
"yargs-parser": "21.1.1",
211211
"zone.js": "^0.14.0"
212212
},
213+
"dependenciesMeta": {
214+
"esbuild": {
215+
"built": true
216+
},
217+
"puppeteer": {
218+
"built": true
219+
}
220+
},
213221
"resolutions": {
214222
"@bazel/concatjs@npm:5.8.1": "patch:@bazel/concatjs@npm%3A5.8.1#~/.yarn/patches/@bazel-concatjs-npm-5.8.1-1bf81df846.patch"
215223
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,11 @@ __metadata:
776776
yargs: "npm:17.7.2"
777777
yargs-parser: "npm:21.1.1"
778778
zone.js: "npm:^0.14.0"
779+
dependenciesMeta:
780+
esbuild:
781+
built: true
782+
puppeteer:
783+
built: true
779784
languageName: unknown
780785
linkType: soft
781786

0 commit comments

Comments
 (0)