Two cleanups, one cause each. The root tsconfig.json carried the compilerOptions directly with no `include`, which made `tsc -b` treat the whole repository as one project: it ignored each package's `outDir` and emitted .js/.d.ts next to every source file, which then got committed. So every typecheck dirtied the tree and the build output was in git. The root is now a solution file that only references the real projects, shared options moved to tsconfig.base.json, and the six emitted files are removed from the index. Output goes to packages/ts-types/dist, which was already gitignored. @sinclair/typebox is now pinned exactly rather than by caret range. It is load-bearing in a way a range should not be allowed near: continuum-backend's Elysia requires it at runtime without declaring it as a dependency at all, and @continuum/ts-types resolves its own copy from here, so two different versions mean two structurally incompatible TSchema types and nothing from this package validates anything there. Worth recording what that looked like, because the error pointed elsewhere. Elysia accepts `TSchema | StandardSchemaV1Like`; when the TSchema branch failed on the version skew, TypeScript reported the *other* branch's failure, `'~standard' is missing`. That reads as "Elysia wants a Standard Schema validator, TypeBox is wrong here", which is not true - Elysia is TypeBox-native and Standard Schema is just the alternative for Zod/Valibot users. The fix was only ever to make the versions match. 0.34.52 rather than 0.33.x because Elysia 1.4 calls `t.Module`, which 0.34 introduced. continuum-backend pins the identical version and tests/dependency_identity.test.ts there fails if the two ever drift again.
17 lines
252 B
Plaintext
17 lines
252 B
Plaintext
node_modules/
|
|
dist/
|
|
target/
|
|
*.log
|
|
.env
|
|
bun.lockb
|
|
bun.lock
|
|
Cargo.lock
|
|
*.tsbuildinfo
|
|
|
|
# Personal study files, not part of the real schema build.
|
|
/examples/
|
|
|
|
# Emitted by `tsc -b` into each package's dist/ - never commit build output.
|
|
*.js.map
|
|
*.d.ts.map
|