@gigadrive/network-config 3.4.1 → 3.4.2
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/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -302,6 +302,10 @@ interface NormalizedConfigEntrypoint {
|
|
|
302
302
|
package?: {
|
|
303
303
|
/** Disable dependency tracing when the framework output is already self-contained. */
|
|
304
304
|
trace?: boolean;
|
|
305
|
+
/** Include the package root in addition to explicitly mapped files. Defaults to true. */
|
|
306
|
+
includeProjectFiles?: boolean;
|
|
307
|
+
/** Preserve mapped symbolic links instead of recursively copying their targets. */
|
|
308
|
+
preserveSymlinks?: boolean;
|
|
305
309
|
rootOverwrite?: string;
|
|
306
310
|
filePathMap?: FilePathMap;
|
|
307
311
|
includeFiles?: string[];
|
|
@@ -441,6 +445,8 @@ interface FrameworkDefaultConfig {
|
|
|
441
445
|
excludeFiles?: string[];
|
|
442
446
|
package?: {
|
|
443
447
|
trace?: boolean;
|
|
448
|
+
includeProjectFiles?: boolean;
|
|
449
|
+
preserveSymlinks?: boolean;
|
|
444
450
|
rootOverwrite?: string;
|
|
445
451
|
filePathMap?: Record<string, string>;
|
|
446
452
|
includeFiles?: string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -302,6 +302,10 @@ interface NormalizedConfigEntrypoint {
|
|
|
302
302
|
package?: {
|
|
303
303
|
/** Disable dependency tracing when the framework output is already self-contained. */
|
|
304
304
|
trace?: boolean;
|
|
305
|
+
/** Include the package root in addition to explicitly mapped files. Defaults to true. */
|
|
306
|
+
includeProjectFiles?: boolean;
|
|
307
|
+
/** Preserve mapped symbolic links instead of recursively copying their targets. */
|
|
308
|
+
preserveSymlinks?: boolean;
|
|
305
309
|
rootOverwrite?: string;
|
|
306
310
|
filePathMap?: FilePathMap;
|
|
307
311
|
includeFiles?: string[];
|
|
@@ -441,6 +445,8 @@ interface FrameworkDefaultConfig {
|
|
|
441
445
|
excludeFiles?: string[];
|
|
442
446
|
package?: {
|
|
443
447
|
trace?: boolean;
|
|
448
|
+
includeProjectFiles?: boolean;
|
|
449
|
+
preserveSymlinks?: boolean;
|
|
444
450
|
rootOverwrite?: string;
|
|
445
451
|
filePathMap?: Record<string, string>;
|
|
446
452
|
includeFiles?: string[];
|
package/dist/index.js
CHANGED
|
@@ -462,6 +462,15 @@ var createAdapterV2Config = import_effect4.Effect.fn("nextjs.createAdapterV2Conf
|
|
|
462
462
|
sharedFilePathMap[pathService.join(repoRoot, sourcePath)] = targetPath;
|
|
463
463
|
}
|
|
464
464
|
const sharedArtifacts = Object.keys(sharedFilePathMap).length > 0 ? [{ id: "next-shared", filePathMap: sharedFilePathMap }] : [];
|
|
465
|
+
const executablePathByOutputId = new Map(
|
|
466
|
+
[
|
|
467
|
+
...manifest.outputs.pages,
|
|
468
|
+
...manifest.outputs.pagesApi,
|
|
469
|
+
...manifest.outputs.appPages,
|
|
470
|
+
...manifest.outputs.appRoutes,
|
|
471
|
+
...manifest.outputs.middleware ? [manifest.outputs.middleware] : []
|
|
472
|
+
].map((output) => [output.id, output.edgeRuntime?.modulePath ?? output.filePath])
|
|
473
|
+
);
|
|
465
474
|
const entrypoints = manifest.entrypoints.map((entrypoint) => {
|
|
466
475
|
const filePathMap = {};
|
|
467
476
|
for (const [targetPath, sourcePath] of Object.entries({
|
|
@@ -472,6 +481,14 @@ var createAdapterV2Config = import_effect4.Effect.fn("nextjs.createAdapterV2Conf
|
|
|
472
481
|
if ((artifactUseCount.get(identity) ?? 0) >= 2) continue;
|
|
473
482
|
filePathMap[pathService.join(repoRoot, sourcePath)] = targetPath;
|
|
474
483
|
}
|
|
484
|
+
for (const executablePath of new Set(
|
|
485
|
+
entrypoint.outputIds.flatMap((outputId) => {
|
|
486
|
+
const executablePath2 = executablePathByOutputId.get(outputId);
|
|
487
|
+
return executablePath2 ? [executablePath2] : [];
|
|
488
|
+
})
|
|
489
|
+
)) {
|
|
490
|
+
filePathMap[pathService.join(repoRoot, executablePath)] = executablePath;
|
|
491
|
+
}
|
|
475
492
|
filePathMap[pathService.join(repoRoot, entrypoint.filePath)] = entrypoint.filePath;
|
|
476
493
|
return {
|
|
477
494
|
displayName: entrypoint.id,
|
|
@@ -488,6 +505,8 @@ var createAdapterV2Config = import_effect4.Effect.fn("nextjs.createAdapterV2Conf
|
|
|
488
505
|
},
|
|
489
506
|
package: {
|
|
490
507
|
trace: false,
|
|
508
|
+
includeProjectFiles: false,
|
|
509
|
+
preserveSymlinks: true,
|
|
491
510
|
rootOverwrite: repoRoot,
|
|
492
511
|
filePathMap,
|
|
493
512
|
...sharedArtifacts.length > 0 ? { sharedArtifactIds: sharedArtifacts.map((artifact) => artifact.id) } : {}
|