Commit 7e18dcc
chore: Make npm scripts cross-platform compatible (#179)
* chore: Make npm scripts cross-platform compatible
Replace Unix-specific shell commands with Node.js scripts to ensure
compatibility across Windows, macOS, and Linux:
- Replace `rm -rf` with fs.rmSync() in prebuild script
- Replace `echo` redirect with fs.writeFileSync() in postbuild script
- Replace macOS-specific `sed` command with Node.js file operations in version script
All scripts use Node.js built-in APIs (fs, path) with no additional dependencies.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fixup! chore: Make npm scripts cross-platform compatible
* format
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Anders Bälter <anders@84codes.com>1 parent 73d7b8f commit 7e18dcc
4 files changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments