@naarang/ccc 2.0.0-alpha.1 → 2.0.0-alpha.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/bin/ccc.cjs +7 -0
- package/dist/index.js +55 -54
- package/package.json +2 -2
- package/dist/ngrok.win32-x64-msvc-zjj4rz8c.node +0 -0
package/bin/ccc.cjs
CHANGED
|
@@ -18,6 +18,13 @@ const { spawn } = require('child_process');
|
|
|
18
18
|
const distPath = join(__dirname, '..', 'dist', 'index.js');
|
|
19
19
|
const packageJson = require(join(__dirname, '..', 'package.json'));
|
|
20
20
|
|
|
21
|
+
// Handle --version / -v flag quickly without needing Bun
|
|
22
|
+
const args = process.argv.slice(2);
|
|
23
|
+
if (args.includes('--version') || args.includes('-v')) {
|
|
24
|
+
console.log(`ccc v${packageJson.version}`);
|
|
25
|
+
process.exit(0);
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
// Check if Bun is available
|
|
22
29
|
function checkBun() {
|
|
23
30
|
return new Promise((resolve) => {
|