Skip to content

Commit

Permalink
chore: experimenting with LavaMoat allow-scripts, not working for yar…
Browse files Browse the repository at this point in the history
…n berry atm
  • Loading branch information
jaybuidl committed Feb 23, 2024
1 parent 65a7066 commit 0aa2f1d
Show file tree
Hide file tree
Showing 4 changed files with 464 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore-scripts true
--*.no-bin-links true
5 changes: 4 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.0.2.cjs

enableScripts: false

21 changes: 20 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"devDependencies": {
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@lavamoat/allow-scripts": "^3.0.2",
"@lavamoat/preinstall-always-fail": "^2.0.0",
"assert": "^2.0.0",
"buffer": "^5.7.1",
"conventional-changelog-cli": "^2.2.2",
Expand Down Expand Up @@ -67,10 +69,27 @@
"local-stack": "scripts/tmux-local-stack.sh",
"changelog": "conventional-changelog --infile CHANGELOG.md --same-file --release-count 0 && prettier --write CHANGELOG.md",
"postinstall": "yarn check-prerequisites; husky install",
"reinstall": "YARN_CHECKSUM_BEHAVIOR=update yarn install --no-immutable"
"reinstall": "YARN_CHECKSUM_BEHAVIOR=update yarn install --no-immutable",
"allow-scripts": "node ./node_modules/@lavamoat/allow-scripts/src/cli.js --experimental-bins"
},
"alias": {
"process": "process/browser.js",
"buffer": "buffer"
},
"lavamoat": {
"allowScripts": {
"$root$": false,
"@commitlint/cli>@commitlint/load>ts-node>@swc/core": false,
"@lavamoat/preinstall-always-fail": false,
"supabase": true
},
"allowBins": {
"commitlint": "node_modules/@commitlint/cli/cli.js",
"allow-scripts": "node_modules/@lavamoat/allow-scripts/src/cli.js",
"conventional-changelog": "node_modules/conventional-changelog-cli/cli.js",
"husky": "node_modules/husky/lib/bin.js",
"lint-staged": "node_modules/lint-staged/bin/lint-staged.js",
"supabase": "node_modules/supabase/scripts/postinstall.js"
}
}
}
Loading

0 comments on commit 0aa2f1d

Please sign in to comment.