mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
fix(@angular/cli): update build-optimizer to latest
Also fixes linting errors. Seems like tslint was updated.
This commit is contained in:
parent
cb0cc08865
commit
593fe60fb6
1986
package-lock.json
generated
1986
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -40,7 +40,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/angular/angular-cli",
|
"homepage": "https://github.com/angular/angular-cli",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular-devkit/build-optimizer": "0.0.10",
|
"@angular-devkit/build-optimizer": "0.0.13",
|
||||||
"autoprefixer": "^6.5.3",
|
"autoprefixer": "^6.5.3",
|
||||||
"chalk": "^2.0.1",
|
"chalk": "^2.0.1",
|
||||||
"circular-dependency-plugin": "^3.0.0",
|
"circular-dependency-plugin": "^3.0.0",
|
||||||
|
@ -9,7 +9,7 @@ import {RemoveChange, Change} from './change';
|
|||||||
* @param max The maximum number of items to return.
|
* @param max The maximum number of items to return.
|
||||||
* @return all nodes of kind, or [] if none is found
|
* @return all nodes of kind, or [] if none is found
|
||||||
*/
|
*/
|
||||||
export function findNodes(node: ts.Node, kind: ts.SyntaxKind, max: number = Infinity): ts.Node[] {
|
export function findNodes(node: ts.Node, kind: ts.SyntaxKind, max = Infinity): ts.Node[] {
|
||||||
if (!node || max == 0) {
|
if (!node || max == 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/angular/angular-cli",
|
"homepage": "https://github.com/angular/angular-cli",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular-devkit/build-optimizer": "0.0.10",
|
"@angular-devkit/build-optimizer": "0.0.13",
|
||||||
"@ngtools/json-schema": "1.1.0",
|
"@ngtools/json-schema": "1.1.0",
|
||||||
"@ngtools/webpack": "1.6.0-rc.5",
|
"@ngtools/webpack": "1.6.0-rc.5",
|
||||||
"autoprefixer": "^6.5.3",
|
"autoprefixer": "^6.5.3",
|
||||||
|
@ -87,7 +87,7 @@ export class TypeScriptFileRefactor {
|
|||||||
findAstNodes(node: ts.Node | null,
|
findAstNodes(node: ts.Node | null,
|
||||||
kind: ts.SyntaxKind,
|
kind: ts.SyntaxKind,
|
||||||
recursive = false,
|
recursive = false,
|
||||||
max: number = Infinity): ts.Node[] {
|
max = Infinity): ts.Node[] {
|
||||||
if (max == 0) {
|
if (max == 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user