create-disposabl-app 0.20.21 → 0.20.22
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 +2 -2
- package/dist/disposabl.js +1 -1
- package/dist/index.js +9 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Create a Disposabl app for web, mobile, desktop, and developer tools.
|
|
|
4
4
|
|
|
5
5
|
## Get started
|
|
6
6
|
|
|
7
|
-
Install [Bun](https://bun.sh), [Git](https://git-scm.com), and [Node.js](https://nodejs.org) 24.8 or newer, then run:
|
|
7
|
+
Install [Bun](https://bun.sh) 1.4.4 or newer, [Git](https://git-scm.com), and [Node.js](https://nodejs.org) 24.8 or newer, then run:
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
bunx create-disposabl-app@latest
|
|
@@ -25,7 +25,7 @@ Use the app name you chose instead of `my-app`. Your website opens automatically
|
|
|
25
25
|
|
|
26
26
|
You can also launch setup with npm, pnpm, or Yarn 2+. The generated project still requires Bun. Tests need Node.js 22.22.3 or newer on Node 22, or Node.js 24.8 or newer.
|
|
27
27
|
|
|
28
|
-
Scaffolding
|
|
28
|
+
Scaffolding requires Bun's formatter so the initial commit passes formatting checks. `--skip-install` skips dependency installation; Bun is still required.
|
|
29
29
|
|
|
30
30
|
| Tool | Command |
|
|
31
31
|
| ---- | -------------------------------------- |
|
package/dist/disposabl.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1563,7 +1563,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
|
1563
1563
|
import { Command, CommanderError } from "commander";
|
|
1564
1564
|
import * as p2 from "@clack/prompts";
|
|
1565
1565
|
// package.json
|
|
1566
|
-
var version = "0.20.
|
|
1566
|
+
var version = "0.20.22";
|
|
1567
1567
|
|
|
1568
1568
|
// ../cli/telemetry.ts
|
|
1569
1569
|
var import_proper_lockfile2 = __toESM(require_proper_lockfile(), 1);
|
|
@@ -9228,12 +9228,14 @@ function validateAndroidArchitectures(values = defaultAndroidArchitectures) {
|
|
|
9228
9228
|
}
|
|
9229
9229
|
|
|
9230
9230
|
// scaffold.ts
|
|
9231
|
-
function
|
|
9231
|
+
function requireFormatter() {
|
|
9232
9232
|
if (spawnSync("bun", ["fmt", "--no-script", "--help"], {
|
|
9233
|
-
cwd: directory,
|
|
9234
9233
|
stdio: "ignore"
|
|
9235
9234
|
}).status !== 0)
|
|
9236
|
-
|
|
9235
|
+
throw new Error("Bun 1.4.4 or newer with fmt support is required. Install or upgrade Bun, then retry.");
|
|
9236
|
+
}
|
|
9237
|
+
function formatGenerated(directory, files = []) {
|
|
9238
|
+
requireFormatter();
|
|
9237
9239
|
try {
|
|
9238
9240
|
execFileSync("bun", ["fmt", "--no-script", ...files], {
|
|
9239
9241
|
cwd: directory,
|
|
@@ -9273,6 +9275,7 @@ async function createApp(template, destination, name, config, overwrite = false)
|
|
|
9273
9275
|
throw new Error("The bundled starter is missing " + folder + "/package.json. Rebuild the CLI.");
|
|
9274
9276
|
}
|
|
9275
9277
|
}
|
|
9278
|
+
requireFormatter();
|
|
9276
9279
|
if (overwrite)
|
|
9277
9280
|
await rm4(destination, { recursive: true, force: true });
|
|
9278
9281
|
await mkdir3(destination);
|
|
@@ -10040,8 +10043,8 @@ Setup complete.
|
|
|
10040
10043
|
if (spawnSync4("git", ["--version"], { stdio: "ignore" }).status !== 0)
|
|
10041
10044
|
throw new Error("Install Git first to create the app's initial commit.");
|
|
10042
10045
|
const hasBun = spawnSync4("bun", ["--version"], { stdio: "ignore" }).status === 0;
|
|
10043
|
-
if (!
|
|
10044
|
-
throw new Error("Install Bun
|
|
10046
|
+
if (!hasBun)
|
|
10047
|
+
throw new Error("Install Bun 1.4.4 or newer before creating an app. --skip-install skips dependency installation, not the required formatter.");
|
|
10045
10048
|
const template = fileURLToPath2(new URL("./templates/default", import.meta.url));
|
|
10046
10049
|
await createApp(template, directory, name, config, overwrite);
|
|
10047
10050
|
if (!options.skipInstall) {
|