Automatic mode: leave SAFE-TS's own packages alone #58
Loading…
Reference in a new issue
No description provided.
Delete branch "evobug/auto-skip-safe-ts-packages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by the task behind #57:
node scripts/verify-packages.mjsfails on main at its Vite step.describe()in the test app calls std'smatch. Automatic mode (#52) analyzes every package an import resolves to innode_modules. Installed from npm, which is how every real project gets it,@evobug_com/safe-ts-stdwas analyzed like any library. Itsmatchthrows a bug guard (unreachable) for a variant the types rule out, so everymatch(...)call was reported and acheck: "error"build failed. This repo's own tests never saw it, because std is a workspace here and counts as project code.Fix: automatic mode skips
@evobug_com/safe-ts-*packages. They're written to SAFE-TS's rules, so their failures are Results.Test: the
autofixture gets a stand-in package in itsnode_moduleswhosematchthrows. I checked it both ways: under a plain package name,match()is reported asunhandled-failure(found in its code: argument check); under the@evobug_com/safe-ts-prefix it isn't.Docs: the libraries guide's "Which packages" paragraph, and the CHANGELOG under Fixed.
Verification:
verify-packages: all package checks pass, including the Vite build.npm run build, typecheck, typecheck:emit and docs-typecheck pass (367 docs examples compile).npm run test:docspasses.🤖 Generated with Claude Code