@gigadrive/network-config 3.4.1 → 3.4.3
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/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -0
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs-adapter.js +19 -0
- package/dist/nextjs-adapter.js.map +1 -1
- package/dist/nextjs-adapter.mjs +19 -0
- package/dist/nextjs-adapter.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -395,6 +395,15 @@ var createAdapterV2Config = Effect4.fn("nextjs.createAdapterV2Config")(function*
|
|
|
395
395
|
sharedFilePathMap[pathService.join(repoRoot, sourcePath)] = targetPath;
|
|
396
396
|
}
|
|
397
397
|
const sharedArtifacts = Object.keys(sharedFilePathMap).length > 0 ? [{ id: "next-shared", filePathMap: sharedFilePathMap }] : [];
|
|
398
|
+
const executablePathByOutputId = new Map(
|
|
399
|
+
[
|
|
400
|
+
...manifest.outputs.pages,
|
|
401
|
+
...manifest.outputs.pagesApi,
|
|
402
|
+
...manifest.outputs.appPages,
|
|
403
|
+
...manifest.outputs.appRoutes,
|
|
404
|
+
...manifest.outputs.middleware ? [manifest.outputs.middleware] : []
|
|
405
|
+
].map((output) => [output.id, output.edgeRuntime?.modulePath ?? output.filePath])
|
|
406
|
+
);
|
|
398
407
|
const entrypoints = manifest.entrypoints.map((entrypoint) => {
|
|
399
408
|
const filePathMap = {};
|
|
400
409
|
for (const [targetPath, sourcePath] of Object.entries({
|
|
@@ -405,6 +414,14 @@ var createAdapterV2Config = Effect4.fn("nextjs.createAdapterV2Config")(function*
|
|
|
405
414
|
if ((artifactUseCount.get(identity) ?? 0) >= 2) continue;
|
|
406
415
|
filePathMap[pathService.join(repoRoot, sourcePath)] = targetPath;
|
|
407
416
|
}
|
|
417
|
+
for (const executablePath of new Set(
|
|
418
|
+
entrypoint.outputIds.flatMap((outputId) => {
|
|
419
|
+
const executablePath2 = executablePathByOutputId.get(outputId);
|
|
420
|
+
return executablePath2 ? [executablePath2] : [];
|
|
421
|
+
})
|
|
422
|
+
)) {
|
|
423
|
+
filePathMap[pathService.join(repoRoot, executablePath)] = executablePath;
|
|
424
|
+
}
|
|
408
425
|
filePathMap[pathService.join(repoRoot, entrypoint.filePath)] = entrypoint.filePath;
|
|
409
426
|
return {
|
|
410
427
|
displayName: entrypoint.id,
|
|
@@ -421,6 +438,8 @@ var createAdapterV2Config = Effect4.fn("nextjs.createAdapterV2Config")(function*
|
|
|
421
438
|
},
|
|
422
439
|
package: {
|
|
423
440
|
trace: false,
|
|
441
|
+
includeProjectFiles: false,
|
|
442
|
+
preserveSymlinks: true,
|
|
424
443
|
rootOverwrite: repoRoot,
|
|
425
444
|
filePathMap,
|
|
426
445
|
...sharedArtifacts.length > 0 ? { sharedArtifactIds: sharedArtifacts.map((artifact) => artifact.id) } : {}
|