Skip to content
Open
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 docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Local first time setup guide for VibSDK - get your AI coding platform running lo
Before getting started, make sure you have:

### Required
- **Node.js** (v18 or later)
- **Node.js** (v22 or later)
- **Cloudflare account** with API access
- **Cloudflare API Token** with appropriate permissions

Expand Down
7 changes: 6 additions & 1 deletion scripts/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,12 @@ async function main() {
await setup.setup();
}

if (import.meta.url === `file://${process.argv[1]}`) {
// Run if this is the main module (supports both direct execution and tsx)
const isMainModule = import.meta.url.endsWith('setup.ts') ||
import.meta.url === `file://${process.argv[1]}` ||
process.argv[1]?.endsWith('setup.ts');

if (isMainModule) {
main().catch((error) => {
console.error('Setup failed:', error);
process.exit(1);
Expand Down