Skip to content

Commit da75fb7

Browse files
NEllusionMrtenz
andauthored
chore: add minimal age to package installations (#270)
* chore: add minimal age to package installations * bump yarn version to include bug fixes for minimal age gate feature --------- Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
1 parent f194d43 commit da75fb7

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.yarnrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ nodeLinker: node-modules
1515
plugins:
1616
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
1717
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"
18+
19+
# Supply Chain Security
20+
npmMinimalAgeGate: 4320 # 3 days (in minutes)
21+
npmPreapprovedPackages: # Override the minimal age gate
22+
- "@metamask/*"
23+
- "@lavamoat/*"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"vite": "^6.2.0",
7979
"vitest": "^3.0.7"
8080
},
81-
"packageManager": "yarn@4.1.1",
81+
"packageManager": "yarn@4.10.3",
8282
"engines": {
8383
"node": "^20 || ^22 || >=24"
8484
},

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5818,11 +5818,11 @@ __metadata:
58185818

58195819
"typescript@patch:typescript@npm%3A~5.7.3#optional!builtin<compat/typescript>":
58205820
version: 5.7.3
5821-
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5adc0c"
5821+
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
58225822
bin:
58235823
tsc: bin/tsc
58245824
tsserver: bin/tsserver
5825-
checksum: 10/3ac7b7e3e899273d2fbdce6e24b93d4d53a705ad7a7e4cc83b4c57bcb6d25948abcd2a21994f6b9c73ab03960f395aae95f0458de292a66ce0134233261714c3
5825+
checksum: 10/dc58d777eb4c01973f7fbf1fd808aad49a0efdf545528dab9b07d94fdcb65b8751742804c3057e9619a4627f2d9cc85547fdd49d9f4326992ad0181b49e61d81
58265826
languageName: node
58275827
linkType: hard
58285828

0 commit comments

Comments
 (0)