create-nexusts 0.9.9 → 0.9.10

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 (3) hide show
  1. package/README.md +4 -4
  2. package/index.js +10 -12
  3. package/package.json +3 -4
package/README.md CHANGED
@@ -7,9 +7,9 @@ The official scaffolder for [NexusTS](https://github.com/nexus-ts/nexusts). Crea
7
7
  ## Quick start
8
8
 
9
9
  ```bash
10
- # All three forms are equivalent:
11
- bun create nexusts@latest my-app
10
+ # Create a new NexusTS project:
12
11
  bun create nexusts@latest my-app
12
+ # Or:
13
13
  bunx create-nexusts@latest my-app
14
14
  ```
15
15
 
@@ -30,7 +30,7 @@ Your app will be running at `http://localhost:3000`.
30
30
  | `--style` | `nest` | Routing style: `nest`, `adonis`, `functional` |
31
31
  | `--view` | `rendu` | View engine: `rendu`, `edge`, `eta`, `inertia`, `none` |
32
32
  | `--orm` | `drizzle` | ORM: `drizzle`, `prisma`, `kysely`, `none` |
33
- | `--db` | `bun-sqlite` | Database: `bun-sqlite`, `postgres`, `mysql`, `none` |
33
+ | `--db` | `sqlite` | Database: `sqlite`, `postgres`, `mysql`, `none` |
34
34
 
35
35
  ### Examples
36
36
 
@@ -61,7 +61,7 @@ my-app/
61
61
  │ └── main.ts # Bootstrap (listens on PORT)
62
62
  ├── app.config.ts # Framework config (loaded at boot)
63
63
  ├── package.json # @nexusts/core + your chosen add-ons
64
- ├── tsconfig.json # Legacy decorators (Bun 1.3 compatible)
64
+ ├── tsconfig.json # Standard decorators (Bun 1.3 default)
65
65
  └── README.md # Project-specific README
66
66
  ```
67
67
 
package/index.js CHANGED
@@ -2,16 +2,15 @@
2
2
  /**
3
3
  * create-nexusts — scaffold a new NexusTS project.
4
4
  *
5
- * Usage (all three forms work identically):
6
- * npm create nexusts@latest
7
- * npx create-nexusts@latest
5
+ * Usage:
6
+ * bun create nexusts@latest
8
7
  * bunx create-nexusts@latest
9
8
  *
10
9
  * Examples:
11
- * npm create nexusts@latest my-app
12
- * npm create nexusts@latest my-app --view rendu --orm drizzle --db bun-sqlite
10
+ * bun create nexusts@latest my-app
11
+ * bun create nexusts@latest my-app --view rendu --orm drizzle --db bun-sqlite
13
12
  *
14
- * Internally calls `npx @nexusts/core init` in the new directory to
13
+ * Internally calls `bunx @nexusts/core init` in the new directory to
15
14
  * do the heavy lifting.
16
15
  */
17
16
 
@@ -28,11 +27,11 @@ if (!name || name === "-h" || name === "--help" || name === "-?") {
28
27
  create-nexusts — scaffold a new NexusTS project
29
28
 
30
29
  Usage:
31
- npm create nexusts@latest [name] [options]
30
+ bun create nexusts@latest [name] [options]
32
31
 
33
32
  Examples:
34
- npm create nexusts@latest my-app
35
- npm create nexusts@latest my-app --view rendu --orm drizzle --db bun-sqlite
33
+ bun create nexusts@latest my-app
34
+ bun create nexusts@latest my-app --view rendu --orm drizzle --db bun-sqlite
36
35
 
37
36
  Options:
38
37
  --style <nest|adonis|functional> Routing style (default: nest)
@@ -71,9 +70,8 @@ writeFileSync(
71
70
 
72
71
  console.log(`\n ✦ Scaffolding ${name}...\n`);
73
72
 
74
- // Detect the runner we were invoked through.
75
- const isBun = typeof Bun !== "undefined";
76
- const runner = isBun ? "bunx" : "npx";
73
+ // Bun is always the runner.
74
+ const runner = "bunx";
77
75
 
78
76
  // Determine if we're running inside the monorepo (local development).
79
77
  // If so, use the local CLI directly instead of downloading from npm.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-nexusts",
3
- "version": "0.9.9",
4
- "description": "Scaffold a new NexusTS project — npm create nexusts@latest, bunx create-nexusts, or npx create-nexusts",
3
+ "version": "0.9.10",
4
+ "description": "Scaffold a new NexusTS project — bun create nexusts@latest or bunx create-nexusts",
5
5
  "bin": {
6
6
  "create-nexusts": "index.js"
7
7
  },
@@ -27,8 +27,7 @@
27
27
  "url": "https://github.com/nexus-ts/nexusts/issues"
28
28
  },
29
29
  "engines": {
30
- "node": ">=18",
31
- "bun": ">=1.0"
30
+ "bun": ">=1.3.10"
32
31
  },
33
32
  "keywords": [
34
33
  "nexusts",