[Angular] TS 7 prep: drop baseUrl from tsconfig.base.json and remove ignoreDeprecations: "6.0" #1164

Closed
opened 2026-10-02 04:44:19 +00:00 by spikerj · 1 comment
Owner

Why

baseUrl is deprecated in TS 6 and is a hard error in TS 7. We currently hide the warning with ignoreDeprecations: "6.0".

What changes for us

  • tsconfig.base.json:15 — "baseUrl": "./". paths resolve relative to the tsconfig without it; check whether entries need a ./ prefix (they're written libraries/...).
  • Remove ignoreDeprecations: "6.0" from tsconfig.base.json (~L140), tsconfig.json, projects/spikersoft/tsconfig.json — and any other per-project tsconfig that carries it — once nothing else needs it.
  • Note e2e route-coverage ts-node invocations also pass ignoreDeprecations (see local CI repro notes).

Acceptance criteria

  • nx run-many -t typecheck, lint, test-all, app build and build-storybook green with no TS deprecation warnings
  • no ignoreDeprecations left (or each remaining one justified in a comment)

Size: S. Part of the TS 7 tracking ticket.

Links: Part of #1163.


Filed from the 2026-10-02 spikersoft-angular pnpm outdated changelog review.

## Why `baseUrl` is deprecated in TS 6 and is a **hard error in TS 7**. We currently hide the warning with `ignoreDeprecations: "6.0"`. ## What changes for us - `tsconfig.base.json:15` — `"baseUrl": "./"`. `paths` resolve relative to the tsconfig without it; check whether entries need a `./` prefix (they're written `libraries/...`). - Remove `ignoreDeprecations: "6.0"` from `tsconfig.base.json` (~L140), `tsconfig.json`, `projects/spikersoft/tsconfig.json` — and any other per-project tsconfig that carries it — once nothing else needs it. - Note `e2e` route-coverage ts-node invocations also pass `ignoreDeprecations` (see local CI repro notes). ## Acceptance criteria - [ ] `nx run-many -t typecheck`, `lint`, `test-all`, app build and `build-storybook` green with no TS deprecation warnings - [ ] no `ignoreDeprecations` left (or each remaining one justified in a comment) Size: **S**. Part of the TS 7 tracking ticket. **Links:** Part of #1163. --- _Filed from the 2026-10-02 spikersoft-angular `pnpm outdated` changelog review._
spikerj added the enhancement label 2026-10-02 04:44:19 +00:00
Author
Owner

Tracker sweep 2026-10-06. Closing: done by spikerj/spikersoft-angular#1423 (merged 2026-10-02, commit eb741752f).

The PR said "Closes spikersoft-issues#1164", but Gitea only auto-closes issues in the same repo, so this one stayed open. Checked against angular master:

  • baseUrl: gone from every tsconfig. All tsconfig.base.json path targets are now ./libraries/…. Two wildcard mappings, libraries/* and projects/*, keep the 44 bare imports and the routes.ts deep imports resolving the same way as before.
  • ignoreDeprecations: git grep ignoreDeprecations origin/master finds nothing. That covers all 120 tsconfigs, the scripts and the workflows, including the e2e route-coverage ts-node call.
  • Verification in the PR: typecheck:all, lint and the production build passed. test-all showed only failures that also happen on master.

One acceptance item isn't listed in the PR: build-storybook. No workflow in .gitea/workflows builds Storybook either, so nothing has checked it since this change. If build-storybook fails on the path changes, please open a new issue in spikerj/spikersoft-angular. The wider TS 7 tracker stays #1163.

**Tracker sweep 2026-10-06. Closing: done by spikerj/spikersoft-angular#1423 (merged 2026-10-02, commit eb741752f).** The PR said "Closes spikersoft-issues#1164", but Gitea only auto-closes issues in the same repo, so this one stayed open. Checked against angular `master`: - **`baseUrl`:** gone from every tsconfig. All `tsconfig.base.json` path targets are now `./libraries/…`. Two wildcard mappings, `libraries/*` and `projects/*`, keep the 44 bare imports and the `routes.ts` deep imports resolving the same way as before. - **`ignoreDeprecations`:** `git grep ignoreDeprecations origin/master` finds nothing. That covers all 120 tsconfigs, the scripts and the workflows, including the e2e route-coverage ts-node call. - **Verification in the PR:** `typecheck:all`, `lint` and the production build passed. `test-all` showed only failures that also happen on master. One acceptance item isn't listed in the PR: `build-storybook`. No workflow in `.gitea/workflows` builds Storybook either, so nothing has checked it since this change. If `build-storybook` fails on the path changes, please open a new issue in spikerj/spikersoft-angular. The wider TS 7 tracker stays #1163.
Sign in to join this conversation.