capstart 0.1.0 → 0.1.1
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/README.md +27 -5
- package/package.json +6 -5
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
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.1",
|
|
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,9 +28,10 @@
|
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
30
|
"build": "tsup src/cli.ts --format esm --dts --clean",
|
|
30
|
-
"dev": "
|
|
31
|
-
"test": "
|
|
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",
|
|
@@ -40,7 +42,6 @@
|
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@types/node": "^24.10.1",
|
|
42
44
|
"tsup": "^8.5.1",
|
|
43
|
-
"tsx": "^4.21.0",
|
|
44
45
|
"typescript": "^5.9.3"
|
|
45
46
|
},
|
|
46
47
|
"engines": {
|