Commit 02417c7
fix: handle npm git dep installation for GitHub installs
npm v11's git dep preparation runs `prepare` before node_modules exist
in the temp clone directory. This causes TypeScript compilation to fail.
Changes:
- build.js: skip build gracefully when node_modules absent, use
node directly instead of pnpm for npm compatibility
- package.json: add `prepack` hook for pack-phase build, make
postinstall non-fatal (|| true) to handle stale CWD after temp
dir cleanup
Install from GitHub with:
npm pack github:user/repo#branch
npm install -g ./fission-ai-openspec-1.2.0.tgz
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f821833 commit 02417c7
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
8 | 16 | | |
9 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments