Skip to content

Commit ace770d

Browse files
fix(spec): the ui-html-page-div-refused entry states when dev and start compile (#20664)
Closes #20649 The `ui-html-page-div-refused` migration entry's `why:` line no longer says `dev` and `start` always run `objectstack compile` first. It now states the condition the CLI implements. The entry file and its generated copy in `migrations/registry.ts` are the two places the sentence lived. Clause-②: no 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Sfe5YjBLwB9J3y8fvm2xq1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 139bef8 commit ace770d

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
fix(spec): the `ui-html-page-div-refused` migration entry states when `dev` and `start` compile (#20649)
6+
7+
Clause-②: no
8+
9+
The entry's `reason`, which `objectstack migrate meta` prints as its `why:`
10+
line, said `dev` and `start` run `objectstack compile` first. They run it before
11+
they boot only when the artifact is missing or `--compile` is passed, and `dev`'s
12+
watch mode runs it when a watched file changes. The text now says so. No schema
13+
accepts or refuses anything it did not before.

‎packages/spec/src/migrations/entries/semantic/18.ui-html-page-div-refused.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const entry: SemanticMigration = {
3131
'An html page\'s source is a JSX string, not a keyed document: `objectstack migrate meta` '
3232
+ 'rewrites stored metadata by key and cannot rewrite a tag inside authored source, so the '
3333
+ 'move is by hand, and which wrapper keeps a page\'s layout is the author\'s call. '
34-
+ '`objectstack validate`, `objectstack compile` (which `dev` and `start` run first) and '
34+
+ '`objectstack validate`, `objectstack compile` (which `dev` and `start` run before they '
35+
+ 'boot only when the artifact is missing or `--compile` is passed, and `dev`\'s watch mode '
36+
+ 'when a watched file changes) and '
3537
+ '`objectstack lint` check that source against an SDUI component manifest: the '
3638
+ '`sdui.manifest.json` in the directory the command runs in, then the copy '
3739
+ '`@objectstack/console` ships. The second lookup asked for a file the console package '

‎packages/spec/src/migrations/registry.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17452,7 +17452,9 @@ const step18: MigrationStep = {
1745217452
'An html page\'s source is a JSX string, not a keyed document: `objectstack migrate meta` '
1745317453
+ 'rewrites stored metadata by key and cannot rewrite a tag inside authored source, so the '
1745417454
+ 'move is by hand, and which wrapper keeps a page\'s layout is the author\'s call. '
17455-
+ '`objectstack validate`, `objectstack compile` (which `dev` and `start` run first) and '
17455+
+ '`objectstack validate`, `objectstack compile` (which `dev` and `start` run before they '
17456+
+ 'boot only when the artifact is missing or `--compile` is passed, and `dev`\'s watch mode '
17457+
+ 'when a watched file changes) and '
1745617458
+ '`objectstack lint` check that source against an SDUI component manifest: the '
1745717459
+ '`sdui.manifest.json` in the directory the command runs in, then the copy '
1745817460
+ '`@objectstack/console` ships. The second lookup asked for a file the console package '

0 commit comments

Comments
 (0)