Skip to content

Commit ce04b80

Browse files
authored
fix(angular): should find the tsconfig at root of project #14379 (#14514)
1 parent 61f7a9a commit ce04b80

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/angular/src/builders/webpack-dev-server/webpack-dev-server.impl.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ import type { Schema } from './schema';
1414
import { createTmpTsConfigForBuildableLibs } from '../utilities/buildable-libs';
1515
import { from } from 'rxjs';
1616
import { switchMap } from 'rxjs/operators';
17+
import { getRootTsConfigPath } from 'nx/src/utils/typescript';
1718

1819
export function executeWebpackDevServerBuilder(
1920
rawOptions: Schema,
2021
context: import('@angular-devkit/architect').BuilderContext
2122
) {
22-
process.env.NX_TSCONFIG_PATH = joinPathFragments(
23-
context.workspaceRoot,
24-
'tsconfig.base.json'
25-
);
23+
process.env.NX_TSCONFIG_PATH = getRootTsConfigPath();
2624

2725
const options = normalizeOptions(rawOptions);
2826

0 commit comments

Comments
 (0)