capstart 0.1.0 → 0.1.2

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/README.md +27 -5
  2. package/package.json +8 -7
package/README.md CHANGED
@@ -137,9 +137,31 @@ The exact package-manager prefix is generated for npm, pnpm, Yarn, or Bun.
137
137
 
138
138
  ```bash
139
139
  cd cli
140
- npm install
141
- npm run typecheck
142
- npm test
143
- npm run build
144
- node dist/cli.js --help
140
+ bun install
141
+ bun run typecheck
142
+ bun test
143
+ bun run build
144
+ bun dist/cli.js --help
145
+ ```
146
+
147
+ ## Publishing to npm
148
+
149
+ The CLI uses Bun for development and publishing. The published package remains
150
+ compatible with both `bunx` and `npx`.
151
+
152
+ ```bash
153
+ cd cli
154
+ bun install
155
+ bun publish --dry-run
156
+ bun publish
157
+ ```
158
+
159
+ `prepublishOnly` automatically runs the typecheck, tests, and build before
160
+ publishing.
161
+
162
+ After publishing:
163
+
164
+ ```bash
165
+ bunx capstart@latest --help
166
+ npx capstart@latest --help
145
167
  ```
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "capstart",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Add Capacitor to existing web framework projects.",
5
5
  "type": "module",
6
+ "packageManager": "bun@1.3.9",
6
7
  "bin": {
7
8
  "capstart": "./dist/cli.js"
8
9
  },
@@ -27,20 +28,20 @@
27
28
  },
28
29
  "scripts": {
29
30
  "build": "tsup src/cli.ts --format esm --dts --clean",
30
- "dev": "node --import tsx src/cli.ts",
31
- "test": "node --import tsx --test test/**/*.test.ts",
32
- "typecheck": "tsc --noEmit"
31
+ "dev": "bun src/cli.ts",
32
+ "test": "bun test",
33
+ "typecheck": "tsc --noEmit",
34
+ "prepublishOnly": "bun run typecheck && bun test && bun run build"
33
35
  },
34
36
  "dependencies": {
35
37
  "@clack/prompts": "^1.0.0",
36
- "commander": "^14.0.2",
38
+ "commander": "^15.0.0",
37
39
  "picocolors": "^1.1.1",
38
40
  "ts-morph": "^27.0.2"
39
41
  },
40
42
  "devDependencies": {
41
- "@types/node": "^24.10.1",
43
+ "@types/node": "^25.0.0",
42
44
  "tsup": "^8.5.1",
43
- "tsx": "^4.21.0",
44
45
  "typescript": "^5.9.3"
45
46
  },
46
47
  "engines": {