@travetto/registry
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -18,3 +18,3 @@ { | ||
"scripts": {}, | ||
"version": "0.0.22" | ||
"version": "0.0.23" | ||
} |
@@ -71,10 +71,14 @@ import * as ts from 'typescript'; | ||
transformer: TransformUtil.importingVisitor<IState>((file: ts.SourceFile) => { | ||
let fileRoot = file.fileName.split(process.cwd() + SEP)[1]; | ||
let ns = '@app'; | ||
if (fileRoot.startsWith(`node_modules${SEP}`)) { | ||
fileRoot = fileRoot.split(`node_modules${SEP}`).pop()!; | ||
if (fileRoot.startsWith('@')) { | ||
const [ns1, ns2, ...rest] = fileRoot.split(SEP); | ||
ns = `${ns1}.${ns2}`; | ||
fileRoot = rest.join(SEP); | ||
let fileRoot = file.fileName; | ||
if (fileRoot.includes(process.cwd())) { | ||
fileRoot = file.fileName.split(process.cwd() + SEP)[1]; | ||
let ns = '@app'; | ||
if (fileRoot.startsWith(`node_modules${SEP}`)) { | ||
fileRoot = fileRoot.split(`node_modules${SEP}`).pop()!; | ||
if (fileRoot.startsWith('@')) { | ||
const [ns1, ns2, ...rest] = fileRoot.split(SEP); | ||
ns = `${ns1}.${ns2}`; | ||
fileRoot = rest.join(SEP); | ||
} | ||
} | ||
@@ -81,0 +85,0 @@ } |
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
17018
480