Skip to content

Commit

Permalink
fix(nx): consider ExportDeclaration with a moduleSpecifier only for d…
Browse files Browse the repository at this point in the history
…ependency calculation

Closes nrwl#1303
  • Loading branch information
dherges authored Apr 28, 2019
1 parent b288abd commit 1173329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/src/command-line/deps-calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class DepsCalculator {
}

private processNode(filePath: string, node: ts.Node): void {
if (ts.isImportDeclaration(node) || ts.isExportDeclaration(node)) {
if (ts.isImportDeclaration(node) || (ts.isExportDeclaration(node) && node.moduleSpecifier)) {
const imp = this.getStringLiteralValue(node.moduleSpecifier);
this.addDepIfNeeded(imp, filePath, DependencyType.es6Import);
return; // stop traversing downwards
Expand Down

0 comments on commit 1173329

Please sign in to comment.