Commit eb05201
fix(build): unblock mvn test — drop tsconfig baseUrl, add frontend.skip (RAN-27) (#66)
Two related fixes so `mvn test` / `mvn package` run green from a clean
checkout:
1. src/main/frontend/tsconfig.json: remove `"baseUrl": "."`.
TypeScript 5.7 emits TS5101 (`Option 'baseUrl' is deprecated and
will stop functioning in TypeScript 7.0`), which aborts `tsc -b`
inside frontend-maven-plugin's `npm-build` execution and kills
every Maven build. Since TS 4.1, `paths` resolves relative to
the tsconfig's own location, so the existing `"@/*": ["./src/*"]`
mapping keeps working untouched — and Vite already resolves the
same alias via `resolve.alias` in `vite.config.ts`.
2. pom.xml: add a `<frontend.skip>` property (default `false`) and
wire `<skip>${frontend.skip}</skip>` into the frontend-maven-plugin
configuration. Backend-only contributors can now run
`mvn test -Dfrontend.skip=true` and bypass the npm toolchain
entirely while CI and release builds continue to bundle the SPA.
Acceptance
- `mvn test` green from a clean checkout on main
- `mvn test -Dfrontend.skip=true` skips the npm executions (verified
locally: all three executions short-circuit, BUILD SUCCESS)
- `npm run build` under `src/main/frontend/` no longer errors on
TS5101 (the previously blocking diagnostic)
Subsumes RAN-11 / PR #64 (same tsconfig change) and is the complete
fix for the blocker.
Co-authored-by: Paperclip <noreply@paperclip.ing>1 parent d3692cd commit eb05201
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
| |||
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| 257 | + | |
249 | 258 | | |
250 | 259 | | |
251 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
0 commit comments