burnrate 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +3 -2
- package/dist/cli/setup.d.ts +1 -1
- package/dist/cli/setup.js +5 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// Route 'setup' command to the setup script before loading heavy dependencies
|
|
8
8
|
if (process.argv[2] === 'setup') {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// setup.ts uses top-level await, so this import won't resolve
|
|
10
|
+
// until the entire setup wizard completes
|
|
11
|
+
await import('./setup.js');
|
|
11
12
|
process.exit(0);
|
|
12
13
|
}
|
|
13
14
|
import { Command } from 'commander';
|
package/dist/cli/setup.d.ts
CHANGED
package/dist/cli/setup.js
CHANGED
|
@@ -136,8 +136,11 @@ async function main() {
|
|
|
136
136
|
`);
|
|
137
137
|
rl.close();
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
try {
|
|
140
|
+
await main();
|
|
141
|
+
}
|
|
142
|
+
catch (err) {
|
|
140
143
|
console.error('Setup failed:', err);
|
|
141
144
|
rl.close();
|
|
142
145
|
process.exit(1);
|
|
143
|
-
}
|
|
146
|
+
}
|