anchi-toolkit 1.2.1 → 1.2.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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "anchi-toolkit",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "The Ultimate AI-Native Toolkit for Cursor & Gemini. Installs into any existing project. Includes commands, agents, skills, and architecture presets.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "anchi-toolkit": "./dist/index.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "ncc build src/cli.js -o dist -m",
10
+ "build": "ncc build src/cli.js -o dist && node scripts/add-shebang.js",
11
11
  "test": "echo \"Warning: no test specified\" && exit 0",
12
12
  "lint": "echo \"Linting passed\"",
13
13
  "semantic-release": "semantic-release",
@@ -0,0 +1,13 @@
1
+ const fs = require('fs');
2
+ const path = require('path');
3
+ const distPath = path.join(__dirname, '../dist/index.js');
4
+ if (fs.existsSync(distPath)) {
5
+ const content = fs.readFileSync(distPath, 'utf8');
6
+ if (!content.startsWith('#!')) {
7
+ fs.writeFileSync(distPath, '#!/usr/bin/env node\n' + content);
8
+ console.log('✅ Shebang added to dist/index.js');
9
+ }
10
+ } else {
11
+ console.error('❌ dist/index.js not found!');
12
+ process.exit(1);
13
+ }