Skip to content

Commit 9dabfae

Browse files
committed
chore: add minimal age to package installations
1 parent 701a894 commit 9dabfae

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.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)