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 CHANGED
@@ -109,6 +109,9 @@ cli
109
109
  emitDecoratorMetadata: true,
110
110
  module: 'esnext',
111
111
  lib: ['esnext', 'DOM'],
112
+ paths: {
113
+
114
+ },
112
115
  strictPropertyInitialization: false,
113
116
  moduleResolution: 'bundler',
114
117
  strict: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-server",
3
- "version": "7.0.0-alpha.13",
3
+ "version": "7.0.0-alpha.14",
4
4
  "description": "server framework that provide IOC/type-reuse/http&rpc-adaptor",
5
5
  "author": "fgsreally",
6
6
  "license": "MIT",
@@ -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),