Update link_deps for pnpm 11
This commit is contained in:
parent
db68aa4a68
commit
29afa08053
3 changed files with 10 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
pnpm run lint
|
pnpm run lint
|
||||||
pnpm run check
|
pnpm run check
|
||||||
|
|
||||||
if [[ ! -z $(cat package.json | grep 'link:') ]]; then
|
if [[ ! -z $(grep 'link:' package.json pnpm-workspace.yaml) ]]; then
|
||||||
echo "Some packages are linked to local files!"
|
echo "Some packages are linked to local files!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -49,5 +49,10 @@ fs.writeFileSync(file, workspace.replace(/^overrides:$/m, `overrides:\n${links}`
|
||||||
try {
|
try {
|
||||||
execSync('pnpm i', { stdio: 'inherit' })
|
execSync('pnpm i', { stdio: 'inherit' })
|
||||||
} finally {
|
} finally {
|
||||||
execSync(`git checkout -f ${file} pnpm-lock.yaml`, { stdio: 'inherit' })
|
// Restore what was read rather than checking the file out, so any unrelated edits survive.
|
||||||
|
fs.writeFileSync(file, workspace)
|
||||||
|
execSync('git checkout -f pnpm-lock.yaml', { stdio: 'inherit' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('\nWelshman is linked. pnpm will warn that node_modules is out of sync until you')
|
||||||
|
console.log('run `pnpm i` again, which unlinks it.')
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
# Allow link_deps to change stuff in the working tree
|
||||||
|
verifyDepsBeforeRun: warn
|
||||||
|
|
||||||
allowBuilds:
|
allowBuilds:
|
||||||
nostr-signer-capacitor-plugin: true
|
nostr-signer-capacitor-plugin: true
|
||||||
cbor-extract: false
|
cbor-extract: false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue