Update link_deps script
This commit is contained in:
@@ -1,17 +1,19 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import path from 'path'
|
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
|
|
||||||
if (execSync('git status --porcelain', { encoding: 'utf8' }).trim()) {
|
const force = process.argv.includes('--force')
|
||||||
console.error('Error: Git working tree is dirty. Please commit or stash your changes first.')
|
|
||||||
|
if (execSync('git status --porcelain', { encoding: 'utf8' }).trim() && !force) {
|
||||||
|
console.error('Error: Git working tree is dirty. Please commit or stash your changes first, or re-run with --force.')
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8'))
|
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8'))
|
||||||
|
|
||||||
pkg.pnpm.overrides = pkg.pnpm.overrides || {}
|
pkg.pnpm.overrides = pkg.pnpm.overrides || {}
|
||||||
|
// pkg.pnpm.overrides["nostr-editor"] = "link:../nostr-editor"
|
||||||
// pkg.pnpm.overrides["@pomade/core"] = "link:../pomade/packages/core"
|
// pkg.pnpm.overrides["@pomade/core"] = "link:../pomade/packages/core"
|
||||||
// pkg.pnpm.overrides["nostr-signer-capacitor-plugin"] = "link:../nostr-signer-capacitor-plugin"
|
// pkg.pnpm.overrides["nostr-signer-capacitor-plugin"] = "link:../nostr-signer-capacitor-plugin"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user