create-ultimate 1.2.0 → 2.0.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/CLAUDE.md +12 -0
- package/package.json +3 -2
- package/src/bin.ts +5 -3
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# create-ultimate — boundary
|
|
2
|
+
|
|
3
|
+
Unlisted — sits above tier 5, may import anything below it. Its only real import is
|
|
4
|
+
`@ultimat3/cli` (the sideways edge declared in `scripts/lib/tiers.ts`).
|
|
5
|
+
|
|
6
|
+
| Rule | Detail |
|
|
7
|
+
|---|---|
|
|
8
|
+
| Scope | argv in, `dispatch({ argv: ['new', ...] })` out. Nothing else. |
|
|
9
|
+
| Templates | none here — they live in `@ultimat3/cli/templates` |
|
|
10
|
+
| Prompts | never; every choice is a flag with a default |
|
|
11
|
+
|
|
12
|
+
Commands: `bun test`, `bunx tsc --noEmit -p tsconfig.json`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ultimate",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "bunx create-ultimate myapp — scaffold an Ultimate monorepo",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
24
|
"!src/**/*.test.ts",
|
|
25
|
+
"CLAUDE.md",
|
|
25
26
|
"README.md",
|
|
26
27
|
"LICENSE"
|
|
27
28
|
],
|
|
@@ -33,6 +34,6 @@
|
|
|
33
34
|
"test": "bun test"
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
|
-
"@ultimat3/cli": "
|
|
37
|
+
"@ultimat3/cli": "2.0.0"
|
|
37
38
|
}
|
|
38
39
|
}
|
package/src/bin.ts
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
// `bunx create-ultimate myapp`. Delegates to `x new` so there is exactly one scaffolder: a second
|
|
3
3
|
// copy of the templates is a second thing to keep in sync, and it would drift by the first release.
|
|
4
4
|
|
|
5
|
+
// `writeLine`, not `process.stdout.write`: paired with the `process.exit` below, that combination
|
|
6
|
+
// truncates at the 64KB pipe buffer — and `bunx create-ultimate app` into an EXISTING directory
|
|
7
|
+
// emits one conflict finding per scaffolded file, which is exactly the payload that grows.
|
|
8
|
+
import { writeLine } from '@ultimat3/cli';
|
|
5
9
|
import { createApp } from './index';
|
|
6
10
|
|
|
7
11
|
const code = await createApp({
|
|
8
12
|
argv: Bun.argv.slice(2),
|
|
9
13
|
cwd: process.cwd(),
|
|
10
|
-
write:
|
|
11
|
-
process.stdout.write(`${line}\n`);
|
|
12
|
-
},
|
|
14
|
+
write: writeLine,
|
|
13
15
|
});
|
|
14
16
|
|
|
15
17
|
process.exit(code);
|