From 127393683cb06bb534e0268dd205ebe94d862af6 Mon Sep 17 00:00:00 2001 From: CRT Date: Thu, 27 Aug 2026 10:22:54 +0000 Subject: [PATCH] 0.1.1: drop baseUrl from the setup the README tells people to copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- my-registry/README.md | 4 +++- my-registry/package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/my-registry/README.md b/my-registry/README.md index aa4ab87..166f46a 100644 --- a/my-registry/README.md +++ b/my-registry/README.md @@ -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: diff --git a/my-registry/package.json b/my-registry/package.json index 0ed4dd6..29afcb1 100644 --- a/my-registry/package.json +++ b/my-registry/package.json @@ -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",