Reference to tsconfig.spec.json created in new app with --minimal flag #30181
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Command
new
Is this a regression?
The previous version in which this bug was not present was
Description
When running
npx @angular/cli@next new
(currently@angular/[email protected]
) with the --minimal flag, the references array in tsconfig.json contains{"path": "./tsconfig.spec.json"}
, which doesn't exist.Minimal Reproduction
npx @angular/cli@next new tmp-app --minimal
tsconfig.json
expected result
tsconfig doesn't contain any references to testing-related files, because of the
new
flag.actual result
tsconfig.json
contains:vscode complains: "File '/xxx/xxx/tmp-app/tsconfig.spec.json' not found"
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: