2.0 KiB
2.0 KiB
WRNexusJS 0.7.0 R3 — Workspace Repair and Typecheck Isolation
Problem
Applying a source ZIP over an existing Git checkout cannot delete files or change the Git index. Two local focused-typecheck files and two previously tracked environment files therefore survived earlier archive updates:
focus-shims.d.tstsconfig.focus.jsonexamples/basic-app/.envexamples/basic-app/.env.uat
The ambient declarations in focus-shims.d.ts replaced or weakened the installed Bun, Node.js, TypeScript, filesystem, child-process, Happy DOM, and tsup typings. That produced dozens of false implicit any, missing namespace member, and untyped Bun.serve errors.
Corrections
- Root
tsconfig.jsonnow has explicit include/exclude rules and always excludes focused-typecheck helper files. - Added
bun run repair:workspaceto:- remove the two temporary typecheck files;
- remove unsafe secret-like files and temporary shims from Git tracking;
- preserve local
.envfile contents; - ensure the required
.gitignorerules exist.
- Added
bun run check:workspacefor non-mutating CI/release verification. validate:0.7warns about local leftovers instead of allowing a TypeScript cascade, and verifies that the root typecheck excludes them.- The security audit blocks tracked typecheck shims and tracked environment files with the repair command in its error message.
- Release prepare/publish now runs
check:workspacebefore validation. - Package staging rejects
focus-shims.d.tsandtsconfig.focus.json. - Added an executable Git regression test proving local environment values are retained while unsafe files are removed from tracking.
Required one-time command for an existing checkout
bun run repair:workspace
Then review and commit the index changes:
git status
git add .gitignore package.json tsconfig.json scripts
git commit -m "fix(tooling): isolate temporary typecheck files and repair workspace state"
git push origin main