Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"doc:build": "node --run build && pnpm --dir website build",
"format": "oxfmt .",
"lint": "rs lint --type-check",
"prepare": "pnpm --filter rstack build && rs setup",
"prepare": "node scripts/rs.js setup",
Comment thread
chenjiahan marked this conversation as resolved.
"test": "pnpm --filter './packages/**' test"
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions scripts/rs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node
// Repository-only CLI entry for running Rstack from source without requiring dist.
import pkg from '../packages/rstack/package.json' with { type: 'json' };

// The published CLI receives this version at build time, so provide it before loading the source.
globalThis.RSTACK_VERSION = pkg.version;

const { runCLI } = await import('../packages/rstack/src/index.ts');

await runCLI();