a24z 1.0.37 → 1.0.39

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/a24z.js CHANGED
@@ -10,22 +10,17 @@ const fs = require('fs');
10
10
  const __filename = fileURLToPath(import.meta.url);
11
11
  const __dirname = dirname(__filename);
12
12
 
13
- const nccBundlePath = resolve(__dirname, '../dist/index.js');
13
+ const bundlePath = resolve(__dirname, '../dist/index.js');
14
14
 
15
- // Verify ncc bundle exists
16
- if (!fs.existsSync(nccBundlePath)) {
17
- console.error('❌ Error: A24Z CLI was built with ncc but the bundle is missing.');
18
- console.error('Please run: npm run build');
15
+ // Verify bundle exists
16
+ if (!fs.existsSync(bundlePath)) {
17
+ console.error('❌ Error: A24Z CLI was built with Bun but the bundle is missing.');
18
+ console.error('Please run: bun run build');
19
19
  process.exit(1);
20
20
  }
21
21
 
22
- // Load the ncc bundle
23
- import(nccBundlePath).catch(error => {
24
- console.error('❌ Error: Failed to load A24Z CLI (ncc bundle):', error);
22
+ // Load the bundle
23
+ import(bundlePath).catch(error => {
24
+ console.error('❌ Error: Failed to load A24Z CLI (bundle):', error);
25
25
  console.error('');
26
- console.error('Troubleshooting:');
27
- console.error('1. Try rebuilding: npm run build:ncc');
28
- console.error('2. Check if node_modules are installed: npm install');
29
- console.error('3. Verify @vercel/ncc is available');
30
- process.exit(1);
31
26
  });