@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 CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- require('../dist/index.js');
2
+ import('../dist/index.mjs');
package/dist/index.js CHANGED
@@ -17141,17 +17141,8 @@ async function loadRouter(routerPath) {
17141
17141
  format: "cjs",
17142
17142
  write: false,
17143
17143
  // Keep the result in memory
17144
- logLevel: "silent",
17144
+ logLevel: "silent"
17145
17145
  // We will handle our own logging
17146
- external: [
17147
- "@igniter-js/*",
17148
- "@prisma/*",
17149
- "prisma",
17150
- "redis",
17151
- "ioredis",
17152
- "bullmq",
17153
- "@opentelemetry/*"
17154
- ]
17155
17146
  });
17156
17147
  const [outputFile] = result.outputFiles;
17157
17148
  if (!outputFile) {
@@ -17159,14 +17150,7 @@ async function loadRouter(routerPath) {
17159
17150
  }
17160
17151
  const compiledCode = outputFile.text;
17161
17152
  const routerModule = { exports: {} };
17162
- const projectRequire = (0, import_module.createRequire)(fullPath);
17163
- const requireFunc = (moduleName) => {
17164
- try {
17165
- return projectRequire(moduleName);
17166
- } catch (error) {
17167
- return require(moduleName);
17168
- }
17169
- };
17153
+ const requireFunc = (moduleName) => require(moduleName);
17170
17154
  const factory = new Function("exports", "require", "module", "__filename", "__dirname", compiledCode);
17171
17155
  factory(routerModule.exports, requireFunc, routerModule, fullPath, path7.dirname(fullPath));
17172
17156
  const moduleExports = routerModule.exports;
@@ -17187,7 +17171,7 @@ ${errorMessages}`;
17187
17171
  throw new RouterLoadError(`Failed to load router from ${routerPath}`, error);
17188
17172
  }
17189
17173
  }
17190
- var path7, import_esbuild, import_module, RouterLoadError;
17174
+ var path7, import_esbuild, RouterLoadError;
17191
17175
  var init_introspector = __esm({
17192
17176
  "src/adapters/build/introspector.ts"() {
17193
17177
  "use strict";
@@ -17195,7 +17179,6 @@ var init_introspector = __esm({
17195
17179
  import_esbuild = require("esbuild");
17196
17180
  init_logger();
17197
17181
  init_esm();
17198
- import_module = require("module");
17199
17182
  RouterLoadError = class extends Error {
17200
17183
  constructor(message, originalError) {
17201
17184
  super(message);