Skip to content

Commit c885981

Browse files
alan-agius4clydin
authored andcommitted
build: remove vendored typescript from build optimizer
1 parent 0933fd0 commit c885981

File tree

13 files changed

+9
-133983
lines changed

13 files changed

+9
-133983
lines changed

packages/angular_devkit/build_optimizer/BUILD.bazel

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ ts_library(
3434
module_name = "@angular-devkit/build-optimizer",
3535
module_root = "src/index.d.ts",
3636
deps = [
37-
"//packages/angular_devkit/build_optimizer/third_party/github.com/Microsoft/TypeScript",
3837
"@npm//@types/node",
3938
"@npm//@types/webpack",
4039
"@npm//@types/webpack-sources",
4140
"@npm//source-map",
4241
"@npm//tslib",
42+
"@npm//typescript",
4343
],
4444
)
4545

@@ -50,9 +50,9 @@ ts_library(
5050
# @external_begin
5151
deps = [
5252
":build_optimizer",
53-
"//packages/angular_devkit/build_optimizer/third_party/github.com/Microsoft/TypeScript",
5453
"//packages/angular_devkit/core",
5554
"@npm//source-map",
55+
"@npm//typescript",
5656
],
5757
# @external_end
5858
)
@@ -66,15 +66,6 @@ jasmine_node_test(
6666
],
6767
)
6868

69-
jasmine_node_test(
70-
name = "no_typescript_runtime_dep_test",
71-
srcs = ["no_typescript_runtime_dep_spec.js"],
72-
deps = [
73-
":build_optimizer",
74-
"@npm//jasmine",
75-
],
76-
)
77-
7869
# @external_begin
7970
pkg_npm(
8071
name = "npm_package",

packages/angular_devkit/build_optimizer/no_typescript_runtime_dep_spec.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/angular_devkit/build_optimizer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"loader-utils": "2.0.0",
1313
"source-map": "0.7.3",
1414
"tslib": "2.0.1",
15+
"typescript": "~4.0.0-dev.20200721",
1516
"webpack-sources": "1.4.3"
1617
}
1718
}

packages/angular_devkit/build_optimizer/src/helpers/ast-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import * as tslib from 'tslib';
9-
import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
9+
import * as ts from 'typescript';
1010

1111
const pureFunctionComment = '@__PURE__';
1212

packages/angular_devkit/build_optimizer/src/helpers/transform-javascript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { RawSourceMap } from 'source-map';
9-
import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
9+
import * as ts from 'typescript';
1010

1111
export type TransformerFactoryCreator = (
1212
program?: ts.Program,

packages/angular_devkit/build_optimizer/src/transforms/prefix-classes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
8+
import * as ts from 'typescript';
99
import { addPureComment } from '../helpers/ast-utils';
1010

1111
export function testPrefixClasses(content: string) {

packages/angular_devkit/build_optimizer/src/transforms/prefix-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
8+
import * as ts from 'typescript';
99
import { addPureComment, getCleanHelperName, hasPureComment } from '../helpers/ast-utils';
1010

1111
export function getPrefixFunctionsTransformer(): ts.TransformerFactory<ts.SourceFile> {

packages/angular_devkit/build_optimizer/src/transforms/scrub-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
8+
import * as ts from 'typescript';
99
import { collectDeepNodes } from '../helpers/ast-utils';
1010

1111
export function testScrubFile(content: string) {

packages/angular_devkit/build_optimizer/src/transforms/wrap-enums.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import * as ts from '../../third_party/github.com/Microsoft/TypeScript/lib/typescript';
8+
import * as ts from 'typescript';
99
import { addPureComment } from '../helpers/ast-utils';
1010

1111
function isBlockLike(node: ts.Node): node is ts.BlockLike {

packages/angular_devkit/build_optimizer/third_party/github.com/Microsoft/TypeScript/BUILD.bazel

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)