nitropack-nightly 2.11.13-20250517-084929.f68545af → 2.11.13-20250611-074019.d42faba0
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/dist/core/index.mjs
CHANGED
|
@@ -1180,7 +1180,7 @@ async function writeTypes(nitro) {
|
|
|
1180
1180
|
relative(typesDir, runtimeDir)
|
|
1181
1181
|
);
|
|
1182
1182
|
const resolvedImportPathMap = /* @__PURE__ */ new Map();
|
|
1183
|
-
for (const i of allImports
|
|
1183
|
+
for (const i of allImports) {
|
|
1184
1184
|
if (resolvedImportPathMap.has(i.from)) {
|
|
1185
1185
|
continue;
|
|
1186
1186
|
}
|
package/dist/meta/index.mjs
CHANGED
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
import workerdProcess from "#workerd/node:process";
|
|
5
5
|
|
|
6
|
+
import { env as WorkerEnv } from "cloudflare:workers";
|
|
7
|
+
|
|
6
8
|
import { Process as UnenvProcess } from "unenv/node/internal/process/process";
|
|
7
9
|
import { env as UnenvEnv } from "unenv/node/internal/process/env";
|
|
8
10
|
import { hrtime as UnenvHrTime } from "unenv/node/internal/process/hrtime";
|
|
9
11
|
|
|
12
|
+
// Polyfill for unenv (without Node.js compatibility)
|
|
13
|
+
globalThis.__env__ = WorkerEnv;
|
|
14
|
+
|
|
10
15
|
const mixedProcess = new UnenvProcess({
|
|
11
16
|
env: UnenvEnv,
|
|
12
17
|
hrtime: UnenvHrTime,
|
package/package.json
CHANGED