phecda-server 7.0.0-alpha.13 → 7.0.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.mjs +3 -0
- package/package.json +1 -1
- package/register/loader.mjs +3 -1
package/bin/cli.mjs
CHANGED
package/package.json
CHANGED
package/register/loader.mjs
CHANGED
|
@@ -51,6 +51,7 @@ if (!tsRet.error) {
|
|
|
51
51
|
if (!error)
|
|
52
52
|
tsconfig = options
|
|
53
53
|
}
|
|
54
|
+
|
|
54
55
|
const moduleResolutionCache = ts.createModuleResolutionCache(
|
|
55
56
|
ts.sys.getCurrentDirectory(),
|
|
56
57
|
x => x,
|
|
@@ -160,8 +161,9 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
160
161
|
return nextResolve(specifier)
|
|
161
162
|
|
|
162
163
|
// import/require from external library
|
|
163
|
-
if (context.parentURL.includes('/node_modules/'))
|
|
164
|
+
if (context.parentURL.includes('/node_modules/') && !context.parentURL.includes('phecda-server/register/index.mjs'))
|
|
164
165
|
return nextResolve(specifier)
|
|
166
|
+
|
|
165
167
|
const { resolvedModule } = ts.resolveModuleName(
|
|
166
168
|
specifier,
|
|
167
169
|
fileURLToPath(context.parentURL),
|