@igniter-js/cli 0.2.69-alpha → 0.2.70
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/igniter +1 -1
- package/dist/index.js +3 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17095,7 +17095,6 @@ __export(introspector_exports, {
|
|
|
17095
17095
|
});
|
|
17096
17096
|
import * as path7 from "path";
|
|
17097
17097
|
import { build } from "esbuild";
|
|
17098
|
-
import { createRequire } from "module";
|
|
17099
17098
|
function introspectRouter(router) {
|
|
17100
17099
|
const logger6 = createChildLogger({ component: "router-introspector" });
|
|
17101
17100
|
logger6.debug("Starting router introspection");
|
|
@@ -17149,17 +17148,8 @@ async function loadRouter(routerPath) {
|
|
|
17149
17148
|
format: "cjs",
|
|
17150
17149
|
write: false,
|
|
17151
17150
|
// Keep the result in memory
|
|
17152
|
-
logLevel: "silent"
|
|
17151
|
+
logLevel: "silent"
|
|
17153
17152
|
// We will handle our own logging
|
|
17154
|
-
external: [
|
|
17155
|
-
"@igniter-js/*",
|
|
17156
|
-
"@prisma/*",
|
|
17157
|
-
"prisma",
|
|
17158
|
-
"redis",
|
|
17159
|
-
"ioredis",
|
|
17160
|
-
"bullmq",
|
|
17161
|
-
"@opentelemetry/*"
|
|
17162
|
-
]
|
|
17163
17153
|
});
|
|
17164
17154
|
const [outputFile] = result.outputFiles;
|
|
17165
17155
|
if (!outputFile) {
|
|
@@ -17167,14 +17157,7 @@ async function loadRouter(routerPath) {
|
|
|
17167
17157
|
}
|
|
17168
17158
|
const compiledCode = outputFile.text;
|
|
17169
17159
|
const routerModule = { exports: {} };
|
|
17170
|
-
const
|
|
17171
|
-
const requireFunc = (moduleName) => {
|
|
17172
|
-
try {
|
|
17173
|
-
return projectRequire(moduleName);
|
|
17174
|
-
} catch (error) {
|
|
17175
|
-
return __require(moduleName);
|
|
17176
|
-
}
|
|
17177
|
-
};
|
|
17160
|
+
const requireFunc = (moduleName) => __require(moduleName);
|
|
17178
17161
|
const factory = new Function("exports", "require", "module", "__filename", "__dirname", compiledCode);
|
|
17179
17162
|
factory(routerModule.exports, requireFunc, routerModule, fullPath, path7.dirname(fullPath));
|
|
17180
17163
|
const moduleExports = routerModule.exports;
|