build: update npm dependencies

This commit is contained in:
Olivier Combe
2017-09-25 10:43:45 +02:00
committed by Alex Rickabaugh
parent 2d5ef15e08
commit df91fd032d
79 changed files with 1259 additions and 1222 deletions

View File

@ -76,4 +76,4 @@ export default {
},
banner: banner,
plugins: [{resolveId: resolve}, commonjs()]
}
};

View File

@ -6,7 +6,6 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/* tslint:disable:no-console */
// Must be imported first, because Angular decorators throw on load.
import 'reflect-metadata';
@ -19,6 +18,7 @@ import {__NGTOOLS_PRIVATE_API_2} from '@angular/compiler-cli';
const glob = require('glob');
/* tslint:disable:no-console */
/**
* Main method.
* Standalone program that executes codegen using the ngtools API and tests that files were

View File

@ -6,7 +6,6 @@
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/* tslint:disable:no-console */
// Must be imported first, because Angular decorators throw on load.
import 'reflect-metadata';
@ -17,6 +16,7 @@ import * as assert from 'assert';
import {tsc} from '@angular/tsc-wrapped/src/tsc';
import {AngularCompilerOptions, CodeGenerator, CompilerHostContext, NodeCompilerHostContext} from '@angular/compiler-cli';
/* tslint:disable:no-console */
/**
* Main method.
* Standalone program that executes the real codegen and tests that

View File

@ -90,7 +90,7 @@ export class CompilerHost implements AotCompilerHost {
this.moduleFileNames.set(key, result);
}
return result;
};
}
/**
* We want a moduleId that will appear in import statements in the generated code.

View File

@ -203,9 +203,11 @@ class TypeCheckingHost implements ts.CompilerHost {
}
writeFile: ts.WriteFileCallback =
() => { throw new Error('Unexpected write in diagnostic program'); };
() => { throw new Error('Unexpected write in diagnostic program'); }
getCurrentDirectory(): string { return this.host.getCurrentDirectory(); }
getCurrentDirectory(): string {
return this.host.getCurrentDirectory();
}
getDirectories(path: string): string[] { return this.host.getDirectories(path); }

View File

@ -302,7 +302,6 @@ class _NodeEmitterVisitor implements StatementVisitor, ExpressionVisitor {
ts.createConditional(
expr.condition.visitExpression(this, null), expr.trueCase.visitExpression(this, null),
expr.falseCase !.visitExpression(this, null)));
;
}
visitNotExpr(expr: NotExpr): RecordedNode<ts.PrefixUnaryExpression> {

View File

@ -378,14 +378,15 @@ function createProgramWithStubsHost(
}
return originalHost.readFile(fileName);
}
getDefaultLibFileName = (options: ts.CompilerOptions) =>
originalHost.getDefaultLibFileName(options);
originalHost.getDefaultLibFileName(options)
getCurrentDirectory = () => originalHost.getCurrentDirectory();
getCanonicalFileName = (fileName: string) => originalHost.getCanonicalFileName(fileName);
useCaseSensitiveFileNames = () => originalHost.useCaseSensitiveFileNames();
getNewLine = () => originalHost.getNewLine();
realPath = (p: string) => p;
fileExists = (fileName: string) =>
this.generatedFiles.has(fileName) || originalHost.fileExists(fileName);
this.generatedFiles.has(fileName) || originalHost.fileExists(fileName)
};
}