vercel 23.1.3-canary.61 → 23.1.3-canary.62
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.js +127 -258
- package/package.json +5 -5
package/dist/index.js
CHANGED
@@ -217409,7 +217409,6 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217409
217409
|
`api-routes-${pluginName}`);
|
217410
217410
|
await fs_extra_1.default.ensureDir(traceDir);
|
217411
217411
|
let newPathsRuntime = new Set();
|
217412
|
-
let linkersRuntime = [];
|
217413
217412
|
const entryDir = path_1.join('.output', 'server', 'pages');
|
217414
217413
|
const entryRoot = path_1.join(workPath, entryDir);
|
217415
217414
|
for (const entrypoint of Object.keys(entrypoints)) {
|
@@ -217516,56 +217515,22 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217516
217515
|
}
|
217517
217516
|
}
|
217518
217517
|
}
|
217519
|
-
const tracedFiles = [];
|
217520
|
-
const linkers = Object.entries(lambdaFiles).map(async ([relPath, file]) => {
|
217521
|
-
const newPath = path_1.join(traceDir, relPath);
|
217522
|
-
// The handler was already moved into position above.
|
217523
|
-
if (relPath === handlerFileBase) {
|
217524
|
-
return;
|
217525
|
-
}
|
217526
|
-
tracedFiles.push({ absolutePath: newPath, relativePath: relPath });
|
217527
|
-
const { fsPath, type } = file;
|
217528
|
-
if (fsPath) {
|
217529
|
-
await fs_extra_1.default.ensureDir(path_1.dirname(newPath));
|
217530
|
-
const isNewFile = newFilesEntrypoint.includes(fsPath);
|
217531
|
-
const isInsideNewDirectory = newDirectoriesEntrypoint.some(dirPath => {
|
217532
|
-
return fsPath.startsWith(dirPath);
|
217533
|
-
});
|
217534
|
-
// With this, we're making sure that files in the `workPath` that existed
|
217535
|
-
// before the Legacy Runtime was invoked (source files) are linked from
|
217536
|
-
// `.output` instead of copying there (the latter only happens if linking fails),
|
217537
|
-
// which is the fastest solution. However, files that are created fresh
|
217538
|
-
// by the Legacy Runtimes are always copied, because their link destinations
|
217539
|
-
// are likely to be overwritten every time an entrypoint is processed by
|
217540
|
-
// the Legacy Runtime. This is likely to overwrite the destination on subsequent
|
217541
|
-
// runs, but that's also how `workPath` used to work originally, without
|
217542
|
-
// the File System API (meaning that there was one `workPath` for all entrypoints).
|
217543
|
-
if (isNewFile || isInsideNewDirectory) {
|
217544
|
-
_1.debug(`Copying from ${fsPath} to ${newPath}`);
|
217545
|
-
await fs_extra_1.default.copy(fsPath, newPath);
|
217546
|
-
}
|
217547
|
-
else {
|
217548
|
-
await linkOrCopy(fsPath, newPath);
|
217549
|
-
}
|
217550
|
-
}
|
217551
|
-
else if (type === 'FileBlob') {
|
217552
|
-
const { data, mode } = file;
|
217553
|
-
await fs_extra_1.default.writeFile(newPath, data, { mode });
|
217554
|
-
}
|
217555
|
-
else {
|
217556
|
-
throw new Error(`Unknown file type: ${type}`);
|
217557
|
-
}
|
217558
|
-
});
|
217559
|
-
linkersRuntime = linkersRuntime.concat(linkers);
|
217560
217518
|
const nft = `${entry}.nft.json`;
|
217561
217519
|
const json = JSON.stringify({
|
217562
|
-
version:
|
217563
|
-
files:
|
217564
|
-
|
217565
|
-
|
217566
|
-
|
217567
|
-
|
217568
|
-
|
217520
|
+
version: 2,
|
217521
|
+
files: Object.keys(lambdaFiles)
|
217522
|
+
.map(file => {
|
217523
|
+
const { fsPath } = lambdaFiles[file];
|
217524
|
+
if (!fsPath) {
|
217525
|
+
throw new Error(`File "${file}" is missing valid \`fsPath\` property`);
|
217526
|
+
}
|
217527
|
+
// The handler was already moved into position above.
|
217528
|
+
if (file === handlerFileBase) {
|
217529
|
+
return;
|
217530
|
+
}
|
217531
|
+
return normalize_path_1.normalizePath(path_1.relative(path_1.dirname(nft), fsPath));
|
217532
|
+
})
|
217533
|
+
.filter(Boolean),
|
217569
217534
|
});
|
217570
217535
|
await fs_extra_1.default.ensureDir(path_1.dirname(nft));
|
217571
217536
|
await fs_extra_1.default.writeFile(nft, json);
|
@@ -217592,11 +217557,6 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217592
217557
|
allowQuery: output.allowQuery,
|
217593
217558
|
};
|
217594
217559
|
}
|
217595
|
-
// Instead of of waiting for all of the linking to be done for every
|
217596
|
-
// entrypoint before processing the next one, we immediately handle all
|
217597
|
-
// of them one after the other, while then waiting for the linking
|
217598
|
-
// to finish right here, before we clean up newly created files below.
|
217599
|
-
await Promise.all(linkersRuntime);
|
217600
217560
|
// A list of all the files that were created by the Legacy Runtime,
|
217601
217561
|
// which we'd like to remove from the File System.
|
217602
217562
|
const toRemove = Array.from(newPathsRuntime).map(path => {
|
@@ -217615,16 +217575,6 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217615
217575
|
};
|
217616
217576
|
}
|
217617
217577
|
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
217618
|
-
async function linkOrCopy(existingPath, newPath) {
|
217619
|
-
try {
|
217620
|
-
await fs_extra_1.default.createLink(existingPath, newPath);
|
217621
|
-
}
|
217622
|
-
catch (err) {
|
217623
|
-
if (err.code !== 'EEXIST') {
|
217624
|
-
await fs_extra_1.default.copyFile(existingPath, newPath);
|
217625
|
-
}
|
217626
|
-
}
|
217627
|
-
}
|
217628
217578
|
async function readJson(filePath) {
|
217629
217579
|
try {
|
217630
217580
|
const str = await fs_extra_1.default.readFile(filePath, 'utf8');
|
@@ -217645,7 +217595,7 @@ async function updateFunctionsManifest({ workPath, pages, }) {
|
|
217645
217595
|
const functionsManifestPath = path_1.join(workPath, '.output', 'functions-manifest.json');
|
217646
217596
|
const functionsManifest = await readJson(functionsManifestPath);
|
217647
217597
|
if (!functionsManifest.version)
|
217648
|
-
functionsManifest.version =
|
217598
|
+
functionsManifest.version = 2;
|
217649
217599
|
if (!functionsManifest.pages)
|
217650
217600
|
functionsManifest.pages = {};
|
217651
217601
|
for (const [pageKey, pageConfig] of Object.entries(pages)) {
|
@@ -217698,12 +217648,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
|
|
217698
217648
|
/***/ }),
|
217699
217649
|
|
217700
217650
|
/***/ 1868:
|
217701
|
-
/***/ ((__unused_webpack_module, exports,
|
217651
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_930713__) => {
|
217702
217652
|
|
217703
217653
|
"use strict";
|
217704
217654
|
|
217705
217655
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217706
|
-
const _1 =
|
217656
|
+
const _1 = __nested_webpack_require_930713__(2855);
|
217707
217657
|
function debug(message, ...additional) {
|
217708
217658
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217709
217659
|
console.log(message, ...additional);
|
@@ -217715,7 +217665,7 @@ exports.default = debug;
|
|
217715
217665
|
/***/ }),
|
217716
217666
|
|
217717
217667
|
/***/ 4246:
|
217718
|
-
/***/ (function(__unused_webpack_module, exports,
|
217668
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_931098__) {
|
217719
217669
|
|
217720
217670
|
"use strict";
|
217721
217671
|
|
@@ -217724,11 +217674,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217724
217674
|
};
|
217725
217675
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217726
217676
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217727
|
-
const minimatch_1 = __importDefault(
|
217728
|
-
const semver_1 =
|
217729
|
-
const path_1 =
|
217730
|
-
const frameworks_1 = __importDefault(
|
217731
|
-
const _1 =
|
217677
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_931098__(9566));
|
217678
|
+
const semver_1 = __nested_webpack_require_931098__(2879);
|
217679
|
+
const path_1 = __nested_webpack_require_931098__(5622);
|
217680
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_931098__(8438));
|
217681
|
+
const _1 = __nested_webpack_require_931098__(2855);
|
217732
217682
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217733
217683
|
// We need to sort the file paths by alphabet to make
|
217734
217684
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -218787,7 +218737,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218787
218737
|
/***/ }),
|
218788
218738
|
|
218789
218739
|
/***/ 2397:
|
218790
|
-
/***/ (function(__unused_webpack_module, exports,
|
218740
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970482__) {
|
218791
218741
|
|
218792
218742
|
"use strict";
|
218793
218743
|
|
@@ -218795,8 +218745,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218795
218745
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218796
218746
|
};
|
218797
218747
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218798
|
-
const assert_1 = __importDefault(
|
218799
|
-
const into_stream_1 = __importDefault(
|
218748
|
+
const assert_1 = __importDefault(__nested_webpack_require_970482__(2357));
|
218749
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_970482__(6130));
|
218800
218750
|
class FileBlob {
|
218801
218751
|
constructor({ mode = 0o100644, contentType, data }) {
|
218802
218752
|
assert_1.default(typeof mode === 'number');
|
@@ -218828,7 +218778,7 @@ exports.default = FileBlob;
|
|
218828
218778
|
/***/ }),
|
218829
218779
|
|
218830
218780
|
/***/ 9331:
|
218831
|
-
/***/ (function(__unused_webpack_module, exports,
|
218781
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_971934__) {
|
218832
218782
|
|
218833
218783
|
"use strict";
|
218834
218784
|
|
@@ -218836,11 +218786,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218836
218786
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218837
218787
|
};
|
218838
218788
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218839
|
-
const assert_1 = __importDefault(
|
218840
|
-
const fs_extra_1 = __importDefault(
|
218841
|
-
const multistream_1 = __importDefault(
|
218842
|
-
const path_1 = __importDefault(
|
218843
|
-
const async_sema_1 = __importDefault(
|
218789
|
+
const assert_1 = __importDefault(__nested_webpack_require_971934__(2357));
|
218790
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_971934__(5392));
|
218791
|
+
const multistream_1 = __importDefault(__nested_webpack_require_971934__(8179));
|
218792
|
+
const path_1 = __importDefault(__nested_webpack_require_971934__(5622));
|
218793
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_971934__(5758));
|
218844
218794
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218845
218795
|
class FileFsRef {
|
218846
218796
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218906,7 +218856,7 @@ exports.default = FileFsRef;
|
|
218906
218856
|
/***/ }),
|
218907
218857
|
|
218908
218858
|
/***/ 5187:
|
218909
|
-
/***/ (function(__unused_webpack_module, exports,
|
218859
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_974738__) {
|
218910
218860
|
|
218911
218861
|
"use strict";
|
218912
218862
|
|
@@ -218914,11 +218864,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218914
218864
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218915
218865
|
};
|
218916
218866
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218917
|
-
const assert_1 = __importDefault(
|
218918
|
-
const node_fetch_1 = __importDefault(
|
218919
|
-
const multistream_1 = __importDefault(
|
218920
|
-
const async_retry_1 = __importDefault(
|
218921
|
-
const async_sema_1 = __importDefault(
|
218867
|
+
const assert_1 = __importDefault(__nested_webpack_require_974738__(2357));
|
218868
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_974738__(2197));
|
218869
|
+
const multistream_1 = __importDefault(__nested_webpack_require_974738__(8179));
|
218870
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_974738__(3691));
|
218871
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_974738__(5758));
|
218922
218872
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218923
218873
|
class BailableError extends Error {
|
218924
218874
|
constructor(...args) {
|
@@ -218999,7 +218949,7 @@ exports.default = FileRef;
|
|
218999
218949
|
/***/ }),
|
219000
218950
|
|
219001
218951
|
/***/ 1611:
|
219002
|
-
/***/ (function(__unused_webpack_module, exports,
|
218952
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_978139__) {
|
219003
218953
|
|
219004
218954
|
"use strict";
|
219005
218955
|
|
@@ -219008,10 +218958,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219008
218958
|
};
|
219009
218959
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219010
218960
|
exports.isSymbolicLink = void 0;
|
219011
|
-
const path_1 = __importDefault(
|
219012
|
-
const debug_1 = __importDefault(
|
219013
|
-
const file_fs_ref_1 = __importDefault(
|
219014
|
-
const fs_extra_1 =
|
218961
|
+
const path_1 = __importDefault(__nested_webpack_require_978139__(5622));
|
218962
|
+
const debug_1 = __importDefault(__nested_webpack_require_978139__(1868));
|
218963
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_978139__(9331));
|
218964
|
+
const fs_extra_1 = __nested_webpack_require_978139__(5392);
|
219015
218965
|
const S_IFMT = 61440; /* 0170000 type of file */
|
219016
218966
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
219017
218967
|
function isSymbolicLink(mode) {
|
@@ -219073,14 +219023,14 @@ exports.default = download;
|
|
219073
219023
|
/***/ }),
|
219074
219024
|
|
219075
219025
|
/***/ 3838:
|
219076
|
-
/***/ ((__unused_webpack_module, exports,
|
219026
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_980964__) => {
|
219077
219027
|
|
219078
219028
|
"use strict";
|
219079
219029
|
|
219080
219030
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219081
|
-
const path_1 =
|
219082
|
-
const os_1 =
|
219083
|
-
const fs_extra_1 =
|
219031
|
+
const path_1 = __nested_webpack_require_980964__(5622);
|
219032
|
+
const os_1 = __nested_webpack_require_980964__(2087);
|
219033
|
+
const fs_extra_1 = __nested_webpack_require_980964__(5392);
|
219084
219034
|
async function getWritableDirectory() {
|
219085
219035
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
219086
219036
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -219093,7 +219043,7 @@ exports.default = getWritableDirectory;
|
|
219093
219043
|
/***/ }),
|
219094
219044
|
|
219095
219045
|
/***/ 4240:
|
219096
|
-
/***/ (function(__unused_webpack_module, exports,
|
219046
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_981544__) {
|
219097
219047
|
|
219098
219048
|
"use strict";
|
219099
219049
|
|
@@ -219101,13 +219051,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219101
219051
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219102
219052
|
};
|
219103
219053
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219104
|
-
const path_1 = __importDefault(
|
219105
|
-
const assert_1 = __importDefault(
|
219106
|
-
const glob_1 = __importDefault(
|
219107
|
-
const util_1 =
|
219108
|
-
const fs_extra_1 =
|
219109
|
-
const normalize_path_1 =
|
219110
|
-
const file_fs_ref_1 = __importDefault(
|
219054
|
+
const path_1 = __importDefault(__nested_webpack_require_981544__(5622));
|
219055
|
+
const assert_1 = __importDefault(__nested_webpack_require_981544__(2357));
|
219056
|
+
const glob_1 = __importDefault(__nested_webpack_require_981544__(1104));
|
219057
|
+
const util_1 = __nested_webpack_require_981544__(1669);
|
219058
|
+
const fs_extra_1 = __nested_webpack_require_981544__(5392);
|
219059
|
+
const normalize_path_1 = __nested_webpack_require_981544__(6261);
|
219060
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_981544__(9331));
|
219111
219061
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
219112
219062
|
async function glob(pattern, opts, mountpoint) {
|
219113
219063
|
let options;
|
@@ -219153,7 +219103,7 @@ exports.default = glob;
|
|
219153
219103
|
/***/ }),
|
219154
219104
|
|
219155
219105
|
/***/ 7903:
|
219156
|
-
/***/ (function(__unused_webpack_module, exports,
|
219106
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_983740__) {
|
219157
219107
|
|
219158
219108
|
"use strict";
|
219159
219109
|
|
@@ -219162,9 +219112,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219162
219112
|
};
|
219163
219113
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219164
219114
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
219165
|
-
const semver_1 =
|
219166
|
-
const errors_1 =
|
219167
|
-
const debug_1 = __importDefault(
|
219115
|
+
const semver_1 = __nested_webpack_require_983740__(2879);
|
219116
|
+
const errors_1 = __nested_webpack_require_983740__(3983);
|
219117
|
+
const debug_1 = __importDefault(__nested_webpack_require_983740__(1868));
|
219168
219118
|
const allOptions = [
|
219169
219119
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
219170
219120
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -219258,7 +219208,7 @@ exports.normalizePath = normalizePath;
|
|
219258
219208
|
/***/ }),
|
219259
219209
|
|
219260
219210
|
/***/ 7792:
|
219261
|
-
/***/ (function(__unused_webpack_module, exports,
|
219211
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_987608__) {
|
219262
219212
|
|
219263
219213
|
"use strict";
|
219264
219214
|
|
@@ -219267,9 +219217,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219267
219217
|
};
|
219268
219218
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219269
219219
|
exports.readConfigFile = void 0;
|
219270
|
-
const js_yaml_1 = __importDefault(
|
219271
|
-
const toml_1 = __importDefault(
|
219272
|
-
const fs_extra_1 =
|
219220
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_987608__(6540));
|
219221
|
+
const toml_1 = __importDefault(__nested_webpack_require_987608__(9434));
|
219222
|
+
const fs_extra_1 = __nested_webpack_require_987608__(5392);
|
219273
219223
|
async function readFileOrNull(file) {
|
219274
219224
|
try {
|
219275
219225
|
const data = await fs_extra_1.readFile(file);
|
@@ -219324,7 +219274,7 @@ exports.default = rename;
|
|
219324
219274
|
/***/ }),
|
219325
219275
|
|
219326
219276
|
/***/ 1442:
|
219327
|
-
/***/ (function(__unused_webpack_module, exports,
|
219277
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_989401__) {
|
219328
219278
|
|
219329
219279
|
"use strict";
|
219330
219280
|
|
@@ -219333,14 +219283,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219333
219283
|
};
|
219334
219284
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219335
219285
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
219336
|
-
const assert_1 = __importDefault(
|
219337
|
-
const fs_extra_1 = __importDefault(
|
219338
|
-
const path_1 = __importDefault(
|
219339
|
-
const debug_1 = __importDefault(
|
219340
|
-
const cross_spawn_1 = __importDefault(
|
219341
|
-
const util_1 =
|
219342
|
-
const errors_1 =
|
219343
|
-
const node_version_1 =
|
219286
|
+
const assert_1 = __importDefault(__nested_webpack_require_989401__(2357));
|
219287
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_989401__(5392));
|
219288
|
+
const path_1 = __importDefault(__nested_webpack_require_989401__(5622));
|
219289
|
+
const debug_1 = __importDefault(__nested_webpack_require_989401__(1868));
|
219290
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_989401__(7618));
|
219291
|
+
const util_1 = __nested_webpack_require_989401__(1669);
|
219292
|
+
const errors_1 = __nested_webpack_require_989401__(3983);
|
219293
|
+
const node_version_1 = __nested_webpack_require_989401__(7903);
|
219344
219294
|
function spawnAsync(command, args, opts = {}) {
|
219345
219295
|
return new Promise((resolve, reject) => {
|
219346
219296
|
const stderrLogs = [];
|
@@ -219651,7 +219601,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
219651
219601
|
/***/ }),
|
219652
219602
|
|
219653
219603
|
/***/ 2560:
|
219654
|
-
/***/ (function(__unused_webpack_module, exports,
|
219604
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1003391__) {
|
219655
219605
|
|
219656
219606
|
"use strict";
|
219657
219607
|
|
@@ -219659,7 +219609,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219659
219609
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219660
219610
|
};
|
219661
219611
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219662
|
-
const end_of_stream_1 = __importDefault(
|
219612
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1003391__(687));
|
219663
219613
|
function streamToBuffer(stream) {
|
219664
219614
|
return new Promise((resolve, reject) => {
|
219665
219615
|
const buffers = [];
|
@@ -219688,7 +219638,7 @@ exports.default = streamToBuffer;
|
|
219688
219638
|
/***/ }),
|
219689
219639
|
|
219690
219640
|
/***/ 1148:
|
219691
|
-
/***/ (function(__unused_webpack_module, exports,
|
219641
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1004459__) {
|
219692
219642
|
|
219693
219643
|
"use strict";
|
219694
219644
|
|
@@ -219696,9 +219646,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219696
219646
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219697
219647
|
};
|
219698
219648
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219699
|
-
const path_1 = __importDefault(
|
219700
|
-
const fs_extra_1 = __importDefault(
|
219701
|
-
const ignore_1 = __importDefault(
|
219649
|
+
const path_1 = __importDefault(__nested_webpack_require_1004459__(5622));
|
219650
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1004459__(5392));
|
219651
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1004459__(3556));
|
219702
219652
|
function isCodedError(error) {
|
219703
219653
|
return (error !== null &&
|
219704
219654
|
error !== undefined &&
|
@@ -219755,7 +219705,7 @@ exports.default = default_1;
|
|
219755
219705
|
/***/ }),
|
219756
219706
|
|
219757
219707
|
/***/ 2855:
|
219758
|
-
/***/ (function(__unused_webpack_module, exports,
|
219708
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1006841__) {
|
219759
219709
|
|
219760
219710
|
"use strict";
|
219761
219711
|
|
@@ -219786,29 +219736,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219786
219736
|
};
|
219787
219737
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219788
219738
|
exports.getInputHash = exports.getPlatformEnv = exports.isStaticRuntime = exports.isOfficialRuntime = exports.updateRoutesManifest = exports.updateFunctionsManifest = exports.convertRuntimeToPlugin = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
219789
|
-
const crypto_1 =
|
219790
|
-
const file_blob_1 = __importDefault(
|
219739
|
+
const crypto_1 = __nested_webpack_require_1006841__(6417);
|
219740
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1006841__(2397));
|
219791
219741
|
exports.FileBlob = file_blob_1.default;
|
219792
|
-
const file_fs_ref_1 = __importDefault(
|
219742
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1006841__(9331));
|
219793
219743
|
exports.FileFsRef = file_fs_ref_1.default;
|
219794
|
-
const file_ref_1 = __importDefault(
|
219744
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1006841__(5187));
|
219795
219745
|
exports.FileRef = file_ref_1.default;
|
219796
|
-
const lambda_1 =
|
219746
|
+
const lambda_1 = __nested_webpack_require_1006841__(6721);
|
219797
219747
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
219798
219748
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
219799
219749
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219800
|
-
const prerender_1 =
|
219750
|
+
const prerender_1 = __nested_webpack_require_1006841__(2850);
|
219801
219751
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219802
|
-
const download_1 = __importStar(
|
219752
|
+
const download_1 = __importStar(__nested_webpack_require_1006841__(1611));
|
219803
219753
|
exports.download = download_1.default;
|
219804
219754
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219805
|
-
const get_writable_directory_1 = __importDefault(
|
219755
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1006841__(3838));
|
219806
219756
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219807
|
-
const glob_1 = __importDefault(
|
219757
|
+
const glob_1 = __importDefault(__nested_webpack_require_1006841__(4240));
|
219808
219758
|
exports.glob = glob_1.default;
|
219809
|
-
const rename_1 = __importDefault(
|
219759
|
+
const rename_1 = __importDefault(__nested_webpack_require_1006841__(6718));
|
219810
219760
|
exports.rename = rename_1.default;
|
219811
|
-
const run_user_scripts_1 =
|
219761
|
+
const run_user_scripts_1 = __nested_webpack_require_1006841__(1442);
|
219812
219762
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219813
219763
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219814
219764
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219825,38 +219775,38 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
219825
219775
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219826
219776
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219827
219777
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219828
|
-
const node_version_1 =
|
219778
|
+
const node_version_1 = __nested_webpack_require_1006841__(7903);
|
219829
219779
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219830
219780
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219831
|
-
const errors_1 =
|
219832
|
-
const stream_to_buffer_1 = __importDefault(
|
219781
|
+
const errors_1 = __nested_webpack_require_1006841__(3983);
|
219782
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1006841__(2560));
|
219833
219783
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219834
|
-
const should_serve_1 = __importDefault(
|
219784
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_1006841__(2564));
|
219835
219785
|
exports.shouldServe = should_serve_1.default;
|
219836
|
-
const debug_1 = __importDefault(
|
219786
|
+
const debug_1 = __importDefault(__nested_webpack_require_1006841__(1868));
|
219837
219787
|
exports.debug = debug_1.default;
|
219838
|
-
const get_ignore_filter_1 = __importDefault(
|
219788
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1006841__(1148));
|
219839
219789
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
219840
|
-
var detect_builders_1 =
|
219790
|
+
var detect_builders_1 = __nested_webpack_require_1006841__(4246);
|
219841
219791
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219842
219792
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219843
219793
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219844
219794
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219845
|
-
var detect_framework_1 =
|
219795
|
+
var detect_framework_1 = __nested_webpack_require_1006841__(5224);
|
219846
219796
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
219847
|
-
var filesystem_1 =
|
219797
|
+
var filesystem_1 = __nested_webpack_require_1006841__(461);
|
219848
219798
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
219849
|
-
var read_config_file_1 =
|
219799
|
+
var read_config_file_1 = __nested_webpack_require_1006841__(7792);
|
219850
219800
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
219851
|
-
var normalize_path_1 =
|
219801
|
+
var normalize_path_1 = __nested_webpack_require_1006841__(6261);
|
219852
219802
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
219853
|
-
var convert_runtime_to_plugin_1 =
|
219803
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_1006841__(7276);
|
219854
219804
|
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219855
219805
|
Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
|
219856
219806
|
Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
|
219857
|
-
__exportStar(
|
219858
|
-
__exportStar(
|
219859
|
-
__exportStar(
|
219807
|
+
__exportStar(__nested_webpack_require_1006841__(2416), exports);
|
219808
|
+
__exportStar(__nested_webpack_require_1006841__(5748), exports);
|
219809
|
+
__exportStar(__nested_webpack_require_1006841__(3983), exports);
|
219860
219810
|
/**
|
219861
219811
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
219862
219812
|
*/
|
@@ -219909,7 +219859,7 @@ exports.getInputHash = getInputHash;
|
|
219909
219859
|
/***/ }),
|
219910
219860
|
|
219911
219861
|
/***/ 6721:
|
219912
|
-
/***/ (function(__unused_webpack_module, exports,
|
219862
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1017819__) {
|
219913
219863
|
|
219914
219864
|
"use strict";
|
219915
219865
|
|
@@ -219918,13 +219868,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219918
219868
|
};
|
219919
219869
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219920
219870
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
|
219921
|
-
const assert_1 = __importDefault(
|
219922
|
-
const async_sema_1 = __importDefault(
|
219923
|
-
const yazl_1 =
|
219924
|
-
const minimatch_1 = __importDefault(
|
219925
|
-
const fs_extra_1 =
|
219926
|
-
const download_1 =
|
219927
|
-
const stream_to_buffer_1 = __importDefault(
|
219871
|
+
const assert_1 = __importDefault(__nested_webpack_require_1017819__(2357));
|
219872
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1017819__(5758));
|
219873
|
+
const yazl_1 = __nested_webpack_require_1017819__(1223);
|
219874
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1017819__(9566));
|
219875
|
+
const fs_extra_1 = __nested_webpack_require_1017819__(5392);
|
219876
|
+
const download_1 = __nested_webpack_require_1017819__(1611);
|
219877
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1017819__(2560));
|
219928
219878
|
exports.FILES_SYMBOL = Symbol('files');
|
219929
219879
|
class Lambda {
|
219930
219880
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -220153,12 +220103,12 @@ exports.buildsSchema = {
|
|
220153
220103
|
/***/ }),
|
220154
220104
|
|
220155
220105
|
/***/ 2564:
|
220156
|
-
/***/ ((__unused_webpack_module, exports,
|
220106
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1026329__) => {
|
220157
220107
|
|
220158
220108
|
"use strict";
|
220159
220109
|
|
220160
220110
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220161
|
-
const path_1 =
|
220111
|
+
const path_1 = __nested_webpack_require_1026329__(5622);
|
220162
220112
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
220163
220113
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
220164
220114
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -220395,7 +220345,7 @@ module.exports = __webpack_require__(78761);
|
|
220395
220345
|
/******/ var __webpack_module_cache__ = {};
|
220396
220346
|
/******/
|
220397
220347
|
/******/ // The require function
|
220398
|
-
/******/ function
|
220348
|
+
/******/ function __nested_webpack_require_1126064__(moduleId) {
|
220399
220349
|
/******/ // Check if module is in cache
|
220400
220350
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
220401
220351
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -220410,7 +220360,7 @@ module.exports = __webpack_require__(78761);
|
|
220410
220360
|
/******/ // Execute the module function
|
220411
220361
|
/******/ var threw = true;
|
220412
220362
|
/******/ try {
|
220413
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
220363
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1126064__);
|
220414
220364
|
/******/ threw = false;
|
220415
220365
|
/******/ } finally {
|
220416
220366
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -220423,11 +220373,11 @@ module.exports = __webpack_require__(78761);
|
|
220423
220373
|
/************************************************************************/
|
220424
220374
|
/******/ /* webpack/runtime/compat */
|
220425
220375
|
/******/
|
220426
|
-
/******/
|
220376
|
+
/******/ __nested_webpack_require_1126064__.ab = __dirname + "/";/************************************************************************/
|
220427
220377
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
220428
220378
|
/******/ // startup
|
220429
220379
|
/******/ // Load entry module and return exports
|
220430
|
-
/******/ return
|
220380
|
+
/******/ return __nested_webpack_require_1126064__(2855);
|
220431
220381
|
/******/ })()
|
220432
220382
|
;
|
220433
220383
|
|
@@ -250339,7 +250289,6 @@ const nft_1 = __webpack_require__(49280);
|
|
250339
250289
|
const async_sema_1 = __importDefault(__webpack_require__(45758));
|
250340
250290
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
250341
250291
|
const console_1 = __webpack_require__(57082);
|
250342
|
-
const crypto_1 = __webpack_require__(76417);
|
250343
250292
|
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
250344
250293
|
const glob_1 = __importDefault(__webpack_require__(91104));
|
250345
250294
|
const path_1 = __webpack_require__(85622);
|
@@ -250769,29 +250718,11 @@ async function main(client) {
|
|
250769
250718
|
],
|
250770
250719
|
});
|
250771
250720
|
fileList.delete(path_1.relative(cwd, f));
|
250772
|
-
|
250773
|
-
|
250774
|
-
|
250775
|
-
|
250776
|
-
|
250777
|
-
distDir,
|
250778
|
-
nft: {
|
250779
|
-
version: 1,
|
250780
|
-
files: Array.from(fileList).map(fileListEntry => path_1.relative(dir, fileListEntry)),
|
250781
|
-
},
|
250782
|
-
});
|
250783
|
-
}
|
250784
|
-
}
|
250785
|
-
else {
|
250786
|
-
for (let f of nftFiles) {
|
250787
|
-
const json = await fs_extra_1.default.readJson(f);
|
250788
|
-
await resolveNftToOutput({
|
250789
|
-
client,
|
250790
|
-
baseDir,
|
250791
|
-
outputDir: OUTPUT_DIR,
|
250792
|
-
nftFileName: f,
|
250793
|
-
nft: json,
|
250794
|
-
distDir,
|
250721
|
+
const nftFileName = f.replace(ext, '.js.nft.json');
|
250722
|
+
client.output.debug(`Creating ${nftFileName}`);
|
250723
|
+
await fs_extra_1.default.writeJSON(nftFileName, {
|
250724
|
+
version: 2,
|
250725
|
+
files: Array.from(fileList).map(fileListEntry => path_1.relative(dir, fileListEntry)),
|
250795
250726
|
});
|
250796
250727
|
}
|
250797
250728
|
}
|
@@ -250805,14 +250736,7 @@ async function main(client) {
|
|
250805
250736
|
files: requiredServerFilesJson.files.map((i) => {
|
250806
250737
|
const originalPath = path_1.join(requiredServerFilesJson.appDir, i);
|
250807
250738
|
const relPath = path_1.join(OUTPUT_DIR, path_1.relative(distDir, originalPath));
|
250808
|
-
|
250809
|
-
const output = path_1.relative(baseDir, absolutePath);
|
250810
|
-
return relPath === output
|
250811
|
-
? relPath
|
250812
|
-
: {
|
250813
|
-
input: relPath,
|
250814
|
-
output,
|
250815
|
-
};
|
250739
|
+
return relPath;
|
250816
250740
|
}),
|
250817
250741
|
});
|
250818
250742
|
}
|
@@ -250937,61 +250861,6 @@ async function glob(pattern, options) {
|
|
250937
250861
|
});
|
250938
250862
|
});
|
250939
250863
|
}
|
250940
|
-
/**
|
250941
|
-
* Computes a hash for the given buf.
|
250942
|
-
*
|
250943
|
-
* @param {Buffer} file data
|
250944
|
-
* @return {String} hex digest
|
250945
|
-
*/
|
250946
|
-
function hash(buf) {
|
250947
|
-
return crypto_1.createHash('sha1').update(buf).digest('hex');
|
250948
|
-
}
|
250949
|
-
// resolveNftToOutput takes nft file and moves all of its trace files
|
250950
|
-
// into the specified directory + `inputs`, (renaming them to their hash + ext) and
|
250951
|
-
// subsequently updating the original nft file accordingly. This is done
|
250952
|
-
// to make the `.output` directory be self-contained, so that it works
|
250953
|
-
// properly with `vc --prebuilt`.
|
250954
|
-
async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, distDir, nft, }) {
|
250955
|
-
client.output.debug(`Processing and resolving ${nftFileName}`);
|
250956
|
-
await fs_extra_1.default.ensureDir(path_1.join(outputDir, 'inputs'));
|
250957
|
-
const newFilesList = [];
|
250958
|
-
// If `distDir` is a subdirectory, then the input has to be resolved to where the `.output` directory will be.
|
250959
|
-
const relNftFileName = path_1.relative(outputDir, nftFileName);
|
250960
|
-
const origNftFilename = path_1.join(distDir, relNftFileName);
|
250961
|
-
if (relNftFileName.startsWith('cache/')) {
|
250962
|
-
// No need to process the `cache/` directory.
|
250963
|
-
// Paths in it might also not be relative to `cache` itself.
|
250964
|
-
return;
|
250965
|
-
}
|
250966
|
-
for (let fileEntity of nft.files) {
|
250967
|
-
const relativeInput = typeof fileEntity === 'string' ? fileEntity : fileEntity.input;
|
250968
|
-
const fullInput = path_1.resolve(path_1.join(path_1.parse(origNftFilename).dir, relativeInput));
|
250969
|
-
// if the resolved path is NOT in the .output directory we move in it there
|
250970
|
-
if (!fullInput.includes(distDir)) {
|
250971
|
-
const { ext } = path_1.parse(fullInput);
|
250972
|
-
const raw = await fs_extra_1.default.readFile(fullInput);
|
250973
|
-
const newFilePath = path_1.join(outputDir, 'inputs', hash(raw) + ext);
|
250974
|
-
smartCopy(client, fullInput, newFilePath);
|
250975
|
-
// We have to use `baseDir` instead of `cwd`, because we want to
|
250976
|
-
// mount everything from there (especially `node_modules`).
|
250977
|
-
// This is important for NPM Workspaces where `node_modules` is not
|
250978
|
-
// in the directory of the workspace.
|
250979
|
-
const output = path_1.relative(baseDir, fullInput).replace('.output', '.next');
|
250980
|
-
newFilesList.push({
|
250981
|
-
input: path_1.relative(path_1.parse(nftFileName).dir, newFilePath),
|
250982
|
-
output,
|
250983
|
-
});
|
250984
|
-
}
|
250985
|
-
else {
|
250986
|
-
newFilesList.push(relativeInput);
|
250987
|
-
}
|
250988
|
-
}
|
250989
|
-
// Update the .nft.json with new input and output mapping
|
250990
|
-
await fs_extra_1.default.writeJSON(nftFileName, {
|
250991
|
-
...nft,
|
250992
|
-
files: newFilesList,
|
250993
|
-
});
|
250994
|
-
}
|
250995
250864
|
/**
|
250996
250865
|
* Files will only exist when `next export` was used.
|
250997
250866
|
*/
|
@@ -271195,7 +271064,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
271195
271064
|
/***/ ((module) => {
|
271196
271065
|
|
271197
271066
|
"use strict";
|
271198
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
271067
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.62\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.39\",\"@vercel/go\":\"1.2.4-canary.4\",\"@vercel/node\":\"1.12.2-canary.7\",\"@vercel/python\":\"2.1.2-canary.1\",\"@vercel/ruby\":\"1.2.10-canary.0\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.15\",\"vercel-plugin-node\":\"1.12.2-canary.31\"},\"devDependencies\":{\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@tootallnate/once\":\"1.1.2\",\"@types/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"11.11.0\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/progress\":\"2.0.3\",\"@types/psl\":\"1.1.0\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@vercel/frameworks\":\"0.5.1-canary.17\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.0\",\"@zeit/fun\":\"0.11.2\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.2.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-eager\":\"2.0.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"2c86ac654ccde97426127fd0a6ffd04253227c50\"}");
|
271199
271068
|
|
271200
271069
|
/***/ }),
|
271201
271070
|
|
@@ -271211,7 +271080,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
271211
271080
|
/***/ ((module) => {
|
271212
271081
|
|
271213
271082
|
"use strict";
|
271214
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
271083
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.40\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"12.0.4\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.39\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"2c86ac654ccde97426127fd0a6ffd04253227c50\"}");
|
271215
271084
|
|
271216
271085
|
/***/ }),
|
271217
271086
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "23.1.3-canary.
|
3
|
+
"version": "23.1.3-canary.62",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -43,14 +43,14 @@
|
|
43
43
|
"node": ">= 12"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@vercel/build-utils": "2.12.3-canary.
|
46
|
+
"@vercel/build-utils": "2.12.3-canary.39",
|
47
47
|
"@vercel/go": "1.2.4-canary.4",
|
48
48
|
"@vercel/node": "1.12.2-canary.7",
|
49
49
|
"@vercel/python": "2.1.2-canary.1",
|
50
50
|
"@vercel/ruby": "1.2.10-canary.0",
|
51
51
|
"update-notifier": "4.1.0",
|
52
|
-
"vercel-plugin-middleware": "0.0.0-canary.
|
53
|
-
"vercel-plugin-node": "1.12.2-canary.
|
52
|
+
"vercel-plugin-middleware": "0.0.0-canary.15",
|
53
|
+
"vercel-plugin-node": "1.12.2-canary.31"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@next/env": "11.1.2",
|
@@ -184,5 +184,5 @@
|
|
184
184
|
"<rootDir>/test/**/*.test.ts"
|
185
185
|
]
|
186
186
|
},
|
187
|
-
"gitHead": "
|
187
|
+
"gitHead": "2c86ac654ccde97426127fd0a6ffd04253227c50"
|
188
188
|
}
|