@angular/tsc-wrapped
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@angular/tsc-wrapped", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Wraps the tsc CLI, allowing extensions.", | ||
@@ -14,3 +14,3 @@ "homepage": "https://github.com/angular/angular/tree/master/tools/tsc-wrapped", | ||
"dependencies": { | ||
"tsickle": "0.1.4" | ||
"tsickle": "0.1.6" | ||
}, | ||
@@ -17,0 +17,0 @@ "peerDependencies": { |
@@ -60,5 +60,4 @@ "use strict"; | ||
case ts.SyntaxKind.Constructor: | ||
isConstructor = true; | ||
// fallthrough | ||
case ts.SyntaxKind.MethodDeclaration: | ||
isConstructor = member.kind === ts.SyntaxKind.Constructor; | ||
var method = member; | ||
@@ -65,0 +64,0 @@ var methodDecorators = getDecorators(method.decorators); |
@@ -157,2 +157,4 @@ "use strict"; | ||
this.isFoldableWorker(binaryExpression.right, folding); | ||
default: | ||
return false; | ||
} | ||
@@ -159,0 +161,0 @@ case ts.SyntaxKind.PropertyAccessExpression: |
@@ -8,3 +8,4 @@ import * as ts from 'typescript'; | ||
trace: boolean; | ||
debug?: boolean; | ||
} | ||
export default Options; |
@@ -24,2 +24,3 @@ "use strict"; | ||
Symbols.prototype.buildImports = function () { | ||
var _this = this; | ||
var symbols = this._symbols; | ||
@@ -36,2 +37,11 @@ // Collect the imported symbols into this.symbols | ||
// An `import <identifier> = require(<module-specifier>); | ||
if (!externalReference.expression.parent) { | ||
// The `parent` field of a node is set by the TypeScript binder (run as | ||
// part of the type checker). Setting it here allows us to call `getText()` | ||
// even if the `SourceFile` was not type checked (which looks for `SourceFile` | ||
// in the parent chain). This doesn't damage the node as the binder unconditionally | ||
// sets the parent. | ||
externalReference.expression.parent = externalReference; | ||
externalReference.parent = _this.sourceFile; | ||
} | ||
var from_1 = stripQuotes(externalReference.expression.getText()); | ||
@@ -50,2 +60,7 @@ symbols.set(importEqualsDeclaration.name.text, { __symbolic: 'reference', module: from_1 }); | ||
} | ||
if (!importDecl.moduleSpecifier.parent) { | ||
// See note above in the `ImportEqualDeclaration` case. | ||
importDecl.moduleSpecifier.parent = importDecl; | ||
importDecl.parent = _this.sourceFile; | ||
} | ||
var from = stripQuotes(importDecl.moduleSpecifier.getText()); | ||
@@ -52,0 +67,0 @@ if (importDecl.importClause.name) { |
@@ -44,5 +44,7 @@ "use strict"; | ||
// Allow a directory containing tsconfig.json as the project value | ||
// Note, TS@next returns an empty array, while earlier versions throw | ||
try { | ||
this.readDirectory(project); | ||
project = path.join(project, 'tsconfig.json'); | ||
if (this.readDirectory(project).length > 0) { | ||
project = path.join(project, 'tsconfig.json'); | ||
} | ||
} | ||
@@ -49,0 +51,0 @@ catch (e) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
314121
2439
+ Addedtsickle@0.1.6(transitive)
- Removedtsickle@0.1.4(transitive)
Updatedtsickle@0.1.6