Skip to content

Commit 315b182

Browse files
committed
refactor(ng-dev): remove 'typescript-local' support from 'sync-module-bazel'
Removes the logic and interface definitions for handling the 'typescript-local' dependency alias, as it is no longer used.
1 parent 016d493 commit 315b182

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ng-dev/misc/sync-module-bazel/cli.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ async function handler() {
3434
// Read package.json
3535
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8')) as PackageJson;
3636
const pnpmVersion = packageJson.engines?.pnpm;
37-
const tsVersion =
38-
packageJson.dependencies?.typescript ||
39-
packageJson.devDependencies?.typescript ||
40-
packageJson.dependencies?.['typescript-local']?.replace('npm:typescript@', '');
37+
const tsVersion = packageJson.dependencies?.typescript || packageJson.devDependencies?.typescript;
4138

4239
// Read .nvmrc
4340
let nvmrcVersion: string | undefined;

ng-dev/misc/sync-module-bazel/sync-module-bazel.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export interface PackageJson {
1515
};
1616
dependencies?: {
1717
typescript?: string;
18-
'typescript-local'?: string;
1918
};
2019
devDependencies?: {
2120
typescript?: string;

0 commit comments

Comments
 (0)