Skip to content

fix: add start.sh and start.bat scripts#32

Merged
simonCatBot merged 4 commits intomasterfrom
fix/start-script
Apr 7, 2026
Merged

fix: add start.sh and start.bat scripts#32
simonCatBot merged 4 commits intomasterfrom
fix/start-script

Conversation

@simonCatBot
Copy link
Copy Markdown
Owner

Problem

Running ./start.sh (or start.bat) fails with:

Error: Failed to transpile "next.config.ts".
Error: Cannot find module 'typescript'

This is because npm ci --production skips devDependencies, but Next.js requires TypeScript (a devDependency) to transpile next.config.ts at startup.

Fix

Before:

npm ci --production

After:

npm ci --include=dev

This ensures TypeScript is installed while still keeping the runtime lean — only dev deps are added, not all optional dependencies.

Files added:

  • start.sh — Linux/macOS startup script
  • start.bat — Windows startup script

Kapu added 4 commits April 6, 2026 22:35
Fix npm ci --production so TypeScript devDependency is included when
installing dependencies. Next.js requires TypeScript to transpile
next.config.ts at startup, so skipping dev deps causes a
MODULE_NOT_FOUND error for 'typescript'.

Linux/macOS: use `npm ci --include=dev`
Windows: use `call npm ci --include=dev`
The 'Latest Build' prerelease has no binary assets. The actual
rocclaw-linux-x64.tar.gz and rocclaw-windows-x64.zip are attached
to the V0.01 release tag.
…nerating inline

Also fixes the start scripts in the packaged archive to use
npm ci --include=dev (instead of --production) so TypeScript is
available to transpile next.config.ts at startup.
@simonCatBot simonCatBot merged commit f2738b9 into master Apr 7, 2026
4 checks passed
@simonCatBot simonCatBot deleted the fix/start-script branch April 7, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant