create-ultimate 10.0.0 → 11.1.0
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 +6 -1
- package/package.json +2 -2
- package/src/index.ts +3 -0
package/README.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# create-ultimate
|
|
2
2
|
|
|
3
3
|
```sh
|
|
4
|
-
bunx create-ultimate myapp && cd myapp && x dev
|
|
4
|
+
bunx create-ultimate myapp && cd myapp && bin/setup && x dev
|
|
5
5
|
```
|
|
6
6
|
|
|
7
|
+
`bin/setup` is the scaffold's own script and it is not optional: `x new` writes files and installs
|
|
8
|
+
nothing, so `x dev` on the tree it just wrote fails with `X_BUILD_FAILED`. The script installs the
|
|
9
|
+
dependencies, writes `.env.development.local`, generates and applies the first migration, and
|
|
10
|
+
seeds — idempotent, so it is safe to re-run after every pull.
|
|
11
|
+
|
|
7
12
|
Thin wrapper over `x new` — same templates, same flags, no second code path.
|
|
8
13
|
|
|
9
14
|
| Flag | Does |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ultimate",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "bunx create-ultimate myapp — scaffold an Ultimate monorepo",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"test": "bun test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@ultimat3/cli": "
|
|
37
|
+
"@ultimat3/cli": "11.1.0"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/index.ts
CHANGED
|
@@ -13,6 +13,9 @@ export interface CreateAppOptions {
|
|
|
13
13
|
export async function createApp(options: CreateAppOptions): Promise<number> {
|
|
14
14
|
return dispatch({
|
|
15
15
|
argv: ['new', ...options.argv],
|
|
16
|
+
// What the caller actually typed, so every `fix:` `x new` would have written names a command
|
|
17
|
+
// that runs HERE. `bunx`, not `npx`: this package is Bun-only and its `bin` needs a Bun.
|
|
18
|
+
invocation: 'bunx create-ultimate',
|
|
16
19
|
cwd: options.cwd,
|
|
17
20
|
env: Bun.env,
|
|
18
21
|
bunVersion: Bun.version,
|