@travetto/compiler
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -22,3 +22,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.29" | ||
"version": "0.0.30" | ||
} |
@@ -32,5 +32,6 @@ import * as ts from 'typescript'; | ||
if (ident && ident.escapedText in patterns) { | ||
const { path } = state.imports.get(ident.escapedText! as string)!; | ||
const res = state.imports.get(ident.escapedText! as string)!; | ||
const path = res && res.path; | ||
const packages = patterns[ident.escapedText as string]; | ||
if (path.includes('@travetto') || (!path.includes('node_modules') && AppInfo.PACKAGE === '@travetto')) { | ||
if (path && (path.includes('@travetto') || (!path.includes('node_modules') && AppInfo.PACKAGE === '@travetto'))) { | ||
let pkg = ''; | ||
@@ -37,0 +38,0 @@ if (!path.includes('node_modules')) { |
26705
729