fix: patch bitsocial-react-hooks esm imports on install

Add a `postinstall` repair step for the git-based `@bitsocialhq/bitsocial-react-hooks` package so test and build environments stop tripping over extensionless relative imports in dist. This keeps GitHub Actions aligned with local installs without changing app logic.
This commit is contained in:
plebeius
2026-03-08 19:28:03 +08:00
parent 723a2dee52
commit 5d77a33c38
2 changed files with 98 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
"scripts": {
"generate:assets": "node scripts/generate-asset-manifest.js",
"sync:directories": "node scripts/sync-directories.js",
"postinstall": "node scripts/patch-capacitor-cli-tar.cjs",
"postinstall": "node scripts/patch-capacitor-cli-tar.cjs && node scripts/patch-bitsocial-react-hooks-esm.cjs",
"prebuild": "yarn sync:directories && yarn generate:assets",
"prestart": "yarn sync:directories && yarn generate:assets",
"start": "node scripts/start-dev.js",