You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two pre-launch first-touch fixes so a newcomer following the docs reaches a
working app under a stock toolchain.
1. `meta migrate baseline` greenfield trap (cli). An offline baseline (no
--from-db) recorded the metadata's DESIRED schema as already-applied, so on an
empty/new database no CREATE TABLE was ever emitted and the generated server
500'd "no such table" -- while the CLI reported success at every step.
- runBaseline now introspects the target --db and REFUSES (exit 2, writes no
snapshot) when it proves the DB is empty; every other offline baseline still
writes the snapshot but WARNs that it emits no DDL.
- The no-snapshot hint, the `meta gen` success hint, and `meta migrate --help`
now route to the working `meta migrate --from-db --db <url> --dialect <d>
--slug init --apply` path instead of the `baseline` trap.
2. nodenext-safe generated imports (codegen-ts). Generated relative imports were
un-extensioned (`./Author`, `../db`), failing TS2835 under a stock `tsc --init`
(nodenext) config; the repo's own bundler tsconfig masked it.
- The `extStyle` default flips to "js" and `meta init` scaffolds
`extStyle: "js"` + `.js`-extensioned owned-generator imports. `.js`
specifiers resolve under both nodenext and bundler, so this is strictly more
compatible.
- relativeModuleSpecifier now extension-styles a relative dbImport too
(`../db` -> `../db.js`), guarded against double-extension and bare packages.
Gated by a new nodenext compile gate (real generated output, zero TS2835), a
greenfield baseline-guard suite, and a jiti config-load regression for the
scaffolded `.js` imports. Docs (ports/typescript.md) updated to match.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeGSV3StPCcJGZNNJ4ZfAb
0 commit comments