Commit 9fca254
Add postinstall script to build shakapacker from GitHub branch
When installing shakapacker from a GitHub branch, the TypeScript source
needs to be compiled. Added a postinstall script that:
1. Detects if shakapacker was installed from source (has .ts but no .js files)
2. Installs shakapacker's dev dependencies
3. Runs the build script to compile TypeScript to JavaScript
This ensures the package is properly built even when installed directly
from GitHub instead of npm.
Also updated shakapacker reference to use explicit github: prefix for clarity.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a810cca commit 9fca254
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9135 | 9135 | | |
9136 | 9136 | | |
9137 | 9137 | | |
9138 | | - | |
| 9138 | + | |
9139 | 9139 | | |
9140 | 9140 | | |
9141 | 9141 | | |
| |||
0 commit comments