@basictech/cli 0.0.29 → 0.0.30

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.
Files changed (2) hide show
  1. package/dist/index.js +3471 -190
  2. package/package.json +9 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basictech/cli",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "description": "Basic CLI for creating & managing your projects",
6
6
  "main": "dist/index.js",
@@ -8,7 +8,8 @@
8
8
  "basic": "dist/index.js"
9
9
  },
10
10
  "scripts": {
11
- "build": "tsc && node -e \"const fs = require('fs'); const path = require('path'); function fixImports(dir) { const files = fs.readdirSync(dir); files.forEach(file => { const filePath = path.join(dir, file); const stat = fs.statSync(filePath); if (stat.isDirectory()) { fixImports(filePath); } else if (file.endsWith('.js')) { let content = fs.readFileSync(filePath, 'utf8'); content = content.replace(/from\\s+['\\\"]\\.\\.?\\/([^'\\\"]*)['\\\"];/g, (match, p1) => { if (p1.includes('.')) return match; return match.replace(p1, p1 + '.js'); }); fs.writeFileSync(filePath, content); } }); } fixImports('dist');\"",
11
+ "build": "tsc && node -e \"const fs = require('fs'); const path = require('path'); function fixImports(dir) { const files = fs.readdirSync(dir); files.forEach(file => { const filePath = path.join(dir, file); const stat = fs.statSync(filePath); if (stat.isDirectory()) { fixImports(filePath); } else if (file.endsWith('.js')) { let content = fs.readFileSync(filePath, 'utf8'); content = content.replace(/from\\s+['\\\"]\\.\\.?\\/([^'\\\"]*)['\\\"];/g, (match, p1) => { if (p1.includes('.')) return match; return match.replace(p1, p1 + '.js'); }); fs.writeFileSync(filePath, content); } }); } fixImports('dist');\" && npm run bundle",
12
+ "bundle": "esbuild dist/index.js --bundle --platform=node --outfile=dist/index.js --packages=external --format=cjs --allow-overwrite",
12
13
  "dev": "tsx src/index.ts",
13
14
  "dev:watch": "tsx watch src/index.ts",
14
15
  "test": "vitest run --exclude='tests/components/**'",
@@ -24,13 +25,13 @@
24
25
  "prepublishOnly": "npm run build"
25
26
  },
26
27
  "dependencies": {
28
+ "@babel/parser": "^7.27.5",
29
+ "@babel/types": "^7.27.6",
27
30
  "commander": "^12.1.0",
28
31
  "ink": "^5.0.1",
29
32
  "react": "^18.3.1"
30
33
  },
31
34
  "devDependencies": {
32
- "@babel/parser": "^7.27.5",
33
- "@babel/types": "^7.27.6",
34
35
  "@changesets/cli": "^2.29.4",
35
36
  "@types/node": "^22.9.0",
36
37
  "@types/react": "^18.3.12",
@@ -38,6 +39,7 @@
38
39
  "@typescript-eslint/types": "^8.34.0",
39
40
  "@vitest/coverage-v8": "^1.6.1",
40
41
  "@vitest/ui": "^1.6.1",
42
+ "esbuild": "^0.25.5",
41
43
  "ink-testing-library": "^4.0.0",
42
44
  "tsx": "^4.19.2",
43
45
  "typescript": "^5.6.3",
@@ -48,7 +50,9 @@
48
50
  "dist/**/*.js",
49
51
  "dist/**/*.d.ts",
50
52
  "dist/**/*.js.map",
51
- "dist/**/*.d.ts.map"
53
+ "dist/**/*.d.ts.map",
54
+ "node_modules/@babel/parser/**/*",
55
+ "node_modules/@babel/types/**/*"
52
56
  ],
53
57
  "keywords": [
54
58
  "cli",