fix(@angular/cli): update build-optimizer to latest

Also fixes linting errors. Seems like tslint was updated.
This commit is contained in:
Hans Larsen 2017-08-09 15:43:38 -07:00 committed by Hans
parent cb0cc08865
commit 593fe60fb6
5 changed files with 1341 additions and 653 deletions

1986
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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 [];
} }

View File

@ -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",

View File

@ -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 [];
} }