Skip to content

Commit 7b583a3

Browse files
authored
chore: add minimal age to package installations (#161)
1 parent 701a894 commit 7b583a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.yarnrc.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,14 @@ plugins:
1717
spec: 'https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js'
1818

1919
yarnPath: .yarn/releases/yarn-4.10.3.cjs
20+
21+
# Configure the NPM minimal age gate to 3 days, meaning packages must be at
22+
# least 3 days old to be installed.
23+
npmMinimalAgeGate: 4320 # 3 days (in minutes)
24+
25+
# Override the minimal age gate, allowing certain packages to be installed
26+
# regardless of their publish age.
27+
npmPreapprovedPackages:
28+
- '@metamask/*'
29+
- '@metamask-previews/*'
30+
- '@lavamoat/*'

0 commit comments

Comments
 (0)