deny scripts

This commit is contained in:
silas-x 2023-01-25 15:02:51 +00:00
parent 9cf6976c85
commit a5ff5bdb47
4 changed files with 668 additions and 15 deletions

1
.yarnrc Normal file
View File

@ -0,0 +1 @@
ignore-scripts true

1
.yarnrc.yml Normal file
View File

@ -0,0 +1 @@
enableScripts: false

View File

@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"setup": "yarn install && yarn allow-scripts",
"dev": "rm -rf .next && next dev",
"build": "next build",
"start": "next start",
@ -59,6 +60,8 @@
"@solana/web3.js": "1.70.1"
},
"devDependencies": {
"@lavamoat/allow-scripts": "2.3.0",
"@lavamoat/preinstall-always-fail": "1.0.0",
"@types/big.js": "6.1.6",
"@types/node": "17.0.23",
"@types/react": "18.0.3",
@ -78,5 +81,22 @@
"prettier-plugin-tailwindcss": "0.1.8",
"tailwindcss": "3.1.8",
"typescript": "4.6.3"
},
"lavamoat": {
"allowScripts": {
"$root$": true,
"@lavamoat/preinstall-always-fail": false,
"@solana/wallet-adapter-wallets>@solana/wallet-adapter-torus>@toruslabs/solana-embed>@toruslabs/base-controllers>@toruslabs/broadcast-channel>@toruslabs/eccrypto": true,
"@solana/wallet-adapter-wallets>@solana/wallet-adapter-torus>@toruslabs/solana-embed>@toruslabs/base-controllers>@toruslabs/broadcast-channel>@toruslabs/eccrypto>secp256k1": true,
"@solana/wallet-adapter-wallets>@solana/wallet-adapter-torus>@toruslabs/solana-embed>@toruslabs/openlogin-jrpc>@toruslabs/openlogin-utils>keccak": true,
"@solana/web3.js>bigint-buffer": false,
"@solana/web3.js>rpc-websockets>bufferutil": true,
"@solana/web3.js>rpc-websockets>utf-8-validate": true,
"@solflare-wallet/pfp>@solana/web3.js>secp256k1": true,
"eslint-config-next>eslint-plugin-jsx-a11y>aria-query>@babel/runtime-corejs3>core-js-pure": false,
"next-i18next>core-js": false,
"react-tsparticles": true,
"tsparticles>tsparticles-engine": true
}
}
}

661
yarn.lock

File diff suppressed because it is too large Load Diff