ceetrix 1.0.0 → 1.0.1
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/bin/ceetrix.js +0 -9
- package/package.json +1 -1
package/bin/ceetrix.js
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { main } from '../dist/index.js';
|
|
3
|
-
import whyIsNodeRunning from 'why-is-node-running';
|
|
4
3
|
|
|
5
|
-
console.log('[DEBUG] ceetrix.js: calling main()...');
|
|
6
4
|
main()
|
|
7
5
|
.then(() => {
|
|
8
|
-
console.log('[DEBUG] ceetrix.js: main() resolved successfully');
|
|
9
6
|
// @inquirer/prompts leaves stdin open - unref it so Node can exit
|
|
10
7
|
process.stdin.unref();
|
|
11
|
-
console.log('[DEBUG] stdin unref() called');
|
|
12
|
-
// Check what's keeping Node alive after 2 seconds
|
|
13
|
-
setTimeout(() => {
|
|
14
|
-
console.log('[DEBUG] 2s after main() completed - checking why Node is still running...');
|
|
15
|
-
whyIsNodeRunning();
|
|
16
|
-
}, 2000).unref();
|
|
17
8
|
})
|
|
18
9
|
.catch((err) => {
|
|
19
10
|
console.error(err.message);
|