@humanonlyweb/create-nuxtflare 0.1.2 → 0.1.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/README.md CHANGED
@@ -13,7 +13,7 @@ bun create @humanonlyweb/nuxtflare@latest my-project
13
13
  Non-interactive with flags:
14
14
 
15
15
  ```bash
16
- bun create @humanonlyweb/nuxtflare@latest my-project -y \
16
+ bun create @humanonlyweb/nuxtflare@latest my-project -- -y \
17
17
  --name "My Project" \
18
18
  --domain myproject.com \
19
19
  --totp \
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import { basename as basename2, resolve as resolve2 } from "node:path";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@humanonlyweb/create-nuxtflare",
9
- version: "0.1.2",
9
+ version: "0.1.3",
10
10
  description: "Scaffold a Nuxt 5 + Cloudflare Workers + D1 + Effect v4 app with explicit auth, TOTP 2FA, and admin.",
11
11
  license: "MIT",
12
12
  repository: {
@@ -233,6 +233,8 @@ var values = new Map;
233
233
  var positionals = [];
234
234
  for (let i = 0;i < args.length; i++) {
235
235
  const arg = args[i];
236
+ if (arg === "--")
237
+ continue;
236
238
  if (VALUE_FLAGS.has(arg)) {
237
239
  const next = args[i + 1];
238
240
  if (!next || next.startsWith("-")) {
@@ -321,6 +323,10 @@ if (runGit) {
321
323
  }
322
324
  if (runInstall) {
323
325
  const installed = spawnSync("bun", ["install"], { cwd: targetDir, stdio: "inherit" });
326
+ if (installed.error) {
327
+ console.error("\nCould not run `bun install` (is Bun installed? https://bun.sh). Run `bun install` manually once Bun is available.");
328
+ process.exit(1);
329
+ }
324
330
  if (installed.status !== 0) {
325
331
  console.error("\n`bun install` failed. Fix the error above and rerun `bun install`.");
326
332
  process.exit(installed.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanonlyweb/create-nuxtflare",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Scaffold a Nuxt 5 + Cloudflare Workers + D1 + Effect v4 app with explicit auth, TOTP 2FA, and admin.",
5
5
  "license": "MIT",
6
6
  "repository": {