nitro-nightly 3.0.1-20251210-205305-4754f28d → 3.0.1-20251210-210244-79340a52

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.
@@ -83,7 +83,6 @@ const getRollupConfig = (nitro) => {
83
83
  extensions: base.extensions,
84
84
  preferBuiltins: !!nitro.options.node,
85
85
  rootDir: nitro.options.rootDir,
86
- modulePaths: nitro.options.nodeModulesDirs,
87
86
  mainFields: ["main"],
88
87
  exportConditions: nitro.options.exportConditions
89
88
  }),
package/dist/_nitro.mjs CHANGED
@@ -19,7 +19,7 @@ import { joinURL, parseURL, withBase, withLeadingSlash, withTrailingSlash, witho
19
19
  import { pathToFileURL } from "node:url";
20
20
  import fsp, { readFile } from "node:fs/promises";
21
21
  import { defu } from "defu";
22
- import { pkgDir, runtimeDir } from "nitro/meta";
22
+ import { runtimeDir } from "nitro/meta";
23
23
  import { colors } from "consola/utils";
24
24
  import { hash } from "ohash";
25
25
  import zlib from "node:zlib";
@@ -96,7 +96,6 @@ const NitroDefaults = {
96
96
  tsconfigPath: "tsconfig.json",
97
97
  tsConfig: void 0
98
98
  },
99
- nodeModulesDirs: [],
100
99
  hooks: {},
101
100
  commands: {},
102
101
  framework: {
@@ -310,12 +309,6 @@ async function resolvePathOptions(options) {
310
309
  options.output.dir = resolveNitroPath(options.output.dir || NitroDefaults.output.dir, options, options.rootDir) + "/";
311
310
  options.output.publicDir = resolveNitroPath(options.output.publicDir || NitroDefaults.output.publicDir, options, options.rootDir) + "/";
312
311
  options.output.serverDir = resolveNitroPath(options.output.serverDir || NitroDefaults.output.serverDir, options, options.rootDir) + "/";
313
- options.nodeModulesDirs.push(resolve(options.rootDir, "node_modules"));
314
- options.nodeModulesDirs.push(resolve(options.workspaceDir, "node_modules"));
315
- options.nodeModulesDirs.push(resolve(pkgDir, "dist/node_modules"));
316
- options.nodeModulesDirs.push(resolve(pkgDir, "node_modules"));
317
- options.nodeModulesDirs.push(resolve(pkgDir, ".."));
318
- options.nodeModulesDirs = [...new Set(options.nodeModulesDirs.map((dir) => resolve(options.rootDir, dir) + "/"))];
319
312
  options.plugins = options.plugins.map((p) => resolveNitroPath(p, options));
320
313
  if (options.serverDir) options.scanDirs.unshift(options.serverDir);
321
314
  options.scanDirs = options.scanDirs.map((dir) => resolve(options.rootDir, dir));
package/dist/_nitro2.mjs CHANGED
@@ -134,7 +134,7 @@ async function writeTypes(nitro) {
134
134
  if (!isAbsolute(path)) {
135
135
  const resolvedPath = resolveModulePath(from, {
136
136
  try: true,
137
- from: nitro.options.nodeModulesDirs,
137
+ from: nitro.options.rootDir,
138
138
  conditions: [
139
139
  "type",
140
140
  "node",
package/dist/_presets.mjs CHANGED
@@ -605,7 +605,7 @@ async function cloudflareDevModule(nitro) {
605
605
  alias: { "cloudflare:workers": resolve(presetsDir, "cloudflare/runtime/shims/workers.dev.mjs") }
606
606
  });
607
607
  if (!await resolveModulePath("wrangler", {
608
- from: nitro.options.nodeModulesDirs,
608
+ from: nitro.options.rootDir,
609
609
  try: true
610
610
  })) {
611
611
  nitro.logger.warn("Wrangler is not installed. Please install it using `npx nypm i wrangler` to enable dev emulation.");
@@ -3035,7 +3035,6 @@ interface NitroOptions extends PresetOptions {
3035
3035
  tsconfigPath: string;
3036
3036
  };
3037
3037
  hooks: NestedHooks<NitroHooks>;
3038
- nodeModulesDirs: string[];
3039
3038
  commands: {
3040
3039
  preview: string;
3041
3040
  deploy: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitro-nightly",
3
- "version": "3.0.1-20251210-205305-4754f28d",
3
+ "version": "3.0.1-20251210-210244-79340a52",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "homepage": "https://nitro.build",
6
6
  "repository": "nitrojs/nitro",