Commit Graph
1 Commits
Author SHA1 Message Date
yaninniandGitHub 17a06fa37a fix: make postbuild cross-platform so the CLI builds on Windows (#18)
The postbuild step was using cp and chmod, which only work on Unix. On Windows npm run build would run tsup successfully but then fail at the cp command, leaving dist/cli.cjs missing. Since the package.json bin field points there, npx torlnk would just say the command isn't recognized.I replaced the shell one-liner with scripts/postbuild.mjs

Small Node script that copies cli-entry.cjs to dist/cli.cjs and marks it executable. chmod is a no-op on Windows but still does the right thing for the published package, so the output is identical across Windows, macOS, and Linux.
2026-06-30 16:35:01 -04:00