Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Make using npm impossible.
offline=true

## Ignore scripts just in case.
ignore-scripts=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
26
2 changes: 1 addition & 1 deletion .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
},
"tabWidth": 2,
"trailingComma": "all",
"ignorePatterns": [".yarnrc.yml", "merged-packages/**"]
"ignorePatterns": [".yarnrc.yml", "merged-packages/**", "lavamoat"]
}
2 changes: 2 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## Ignore scripts in case yarn1 is accidentally used.
ignore-scripts true
15 changes: 13 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@ compressionLevel: mixed

enableGlobalCache: false

# Hardened mode to validate lockfile content against remote registries.
enableHardenedMode: true

# Disable Yarn's mirror feature to avoid writing to the global cache.
enableMirror: false

enableScripts: false

enableTelemetry: false

# Despite `enableGlobalCache` and `enableMirror` being `false`, Yarn is still
# writing to the global folder.
globalFolder: .yarn/global

logFilters:
- code: YN0004
level: discard
Expand All @@ -29,6 +39,7 @@ npmPreapprovedPackages:
- "@lavamoat/*"
- "@ts-bridge/*"

# Protect the runtime of calls to "yarn run" scripts using a local plugin.
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"
- path: ./lavamoat/plugin-allow-scripts.js
- path: ./lavamoat/.runner-plugin.js
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const config = createConfig([
'.platform-api-docs/**',
'.skills-cache/**',
'.yarn/**',
'lavamoat/',
'merged-packages/**',
'packages/wallet-framework-docs/site/build/**',
'scripts/create-package/package-template/**',
Expand Down
9 changes: 9 additions & 0 deletions lavamoat/.env.ban.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
"SESSION",
"SSH",
"KEY",
"TOKEN",
"SECRET",
"PASSWORD",
"AUTH"
]
Loading
Loading