0.1.1: drop baseUrl from the setup the README tells people to copy

Found by installing 0.1.0 from npm into an empty directory and doing exactly
what the README says, which is the first time anyone has done that — until an
hour ago there was nothing on npm to install.

Everything held except one line. `bunx vibe3d init`, the `models.json` registry
entry, `vibe3d add @medieval-kit` (46 files), `three` and `@types/three`: all
correct. `@types/three` is genuinely not optional, confirmed by removing it and
watching three TS7016s land on the runtime files init had just written.

The Project setup block was wrong. I wrote it by copying this repository's own
`tsconfig.json`, which carries `"baseUrl": "."` — and this repository pins
typescript at ^5.9.2, so it never sees that a fresh `bun add -d typescript`
installs 7.0.2, where the option has been REMOVED:

    error TS5102: Option 'baseUrl' has been removed.

So the one instruction on the page that a reader cannot check against anything
else was the one that stopped them. `paths` resolves relative to the tsconfig
on its own and has since 4.1, so the block just loses the line; the same config
now typechecks the installed source clean on 7.0.2.

The lesson is the one this repo keeps relearning in a new costume: a setting
copied from a working project is evidence about THAT project. This one was
right here and wrong in the only place it was published to.

Verified after the change in the same clean project: tsc silent, and
`createModel()` from the npm-installed hand-cart builds 2044 triangles with its
floor at y = -0.0000 — so the wheels that started this whole thread are on the
ground in the published package too.
This commit is contained in:
CRTkafa 2026-08-27 10:22:54 +00:00
parent fdb25be320
commit 127393683c
2 changed files with 4 additions and 2 deletions

View file

@ -56,12 +56,14 @@ as well — in `tsconfig.json`:
"compilerOptions": {
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"baseUrl": ".",
"paths": { "@/*": ["./src/*"] }
}
}
```
No `baseUrl`: it was removed in TypeScript 7 and `paths` resolves relative to
this file on its own. Verified against a clean project on 7.0.2.
and in your bundler, because TypeScript's `paths` only teaches the type checker.
For Vite:

View file

@ -1,6 +1,6 @@
{
"name": "@medieval-kit/registry",
"version": "0.1.0",
"version": "0.1.1",
"description": "A lowpoly medieval procedural model library for Vibe3D and Three.js.",
"type": "module",
"license": "MIT",