A local-first personal finance app
Disable postinstall scripts except for an allowlist (#7825)
Julian Dominguez-Schatza7e22b023c1d
diff --git a/.yarnrc.yml b/.yarnrc.ymlindex 6e293e94fd..eae8da740d 100644--- a/.yarnrc.yml+++ b/.yarnrc.yml@@ -7,3 +7,7 @@ enableTransparentWorkspaces: falsenodeLinker: node-modulesyarnPath: .yarn/releases/yarn-4.13.0.cjs++# Secure default: don't run postinstall scripts.+# If a new package requires them, add it to dependenciesMeta in package.json.+enableScripts: falsediff --git a/package.json b/package.jsonindex cffbe1c0b0..47b1adeda8 100644--- a/package.json+++ b/package.json@@ -87,6 +87,23 @@"typescript": "^6.0.2","vitest": "^4.1.2"},+ "dependenciesMeta": {+ "bcrypt": {+ "built": true+ },+ "better-sqlite3": {+ "built": true+ },+ "electron": {+ "built": true+ },+ "esbuild": {+ "built": true+ },+ "sharp": {+ "built": true+ }+ },"resolutions": {"adm-zip": "patch:adm-zip@npm%3A0.5.16#~/.yarn/patches/adm-zip-npm-0.5.16-4556fea098.patch","[email protected]": "10.2.5",diff --git a/upcoming-release-notes/7825.md b/upcoming-release-notes/7825.mdnew file mode 100644index 0000000000..f06718eef9--- /dev/null+++ b/upcoming-release-notes/7825.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [jfdoming]+---++Disable postinstall scripts except for an allowlistdiff --git a/yarn.lock b/yarn.lockindex ff8daecd1a..6ed1fb9da7 100644--- a/yarn.lock+++ b/yarn.lock@@ -10995,6 +10995,17 @@ __metadata:ts-node: "npm:^10.9.2"typescript: "npm:^6.0.2"vitest: "npm:^4.1.2"+ dependenciesMeta:+ bcrypt:+ built: true+ better-sqlite3:+ built: true+ electron:+ built: true+ esbuild:+ built: true+ sharp:+ built: truelanguageName: unknownlinkType: soft