vercel 25.0.2-canary.0 → 25.1.1-canary.0
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 +219 -138
- package/package.json +12 -12
package/dist/index.js
CHANGED
@@ -202740,7 +202740,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
202740
202740
|
// and package.json can be served as static files
|
202741
202741
|
frontendBuilder = {
|
202742
202742
|
use: '@vercel/static',
|
202743
|
-
src: '!{api/**,package.json}',
|
202743
|
+
src: '!{api/**,package.json,middleware.[jt]s}',
|
202744
202744
|
config: {
|
202745
202745
|
zeroConfig: true,
|
202746
202746
|
},
|
@@ -202790,7 +202790,13 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
202790
202790
|
}
|
202791
202791
|
exports.detectBuilders = detectBuilders;
|
202792
202792
|
function maybeGetApiBuilder(fileName, apiMatches, options) {
|
202793
|
-
|
202793
|
+
const middleware = fileName === 'middleware.js' || fileName === 'middleware.ts';
|
202794
|
+
// Root-level Middleware file is handled by `@vercel/next`, so don't
|
202795
|
+
// schedule a separate Builder when "nextjs" framework is selected
|
202796
|
+
if (middleware && options.projectSettings?.framework === 'nextjs') {
|
202797
|
+
return null;
|
202798
|
+
}
|
202799
|
+
if (!(fileName.startsWith('api/') || middleware)) {
|
202794
202800
|
return null;
|
202795
202801
|
}
|
202796
202802
|
if (fileName.includes('/.')) {
|
@@ -202809,11 +202815,14 @@ function maybeGetApiBuilder(fileName, apiMatches, options) {
|
|
202809
202815
|
return src === fileName || minimatch_1.default(fileName, src);
|
202810
202816
|
});
|
202811
202817
|
const { fnPattern, func } = getFunction(fileName, options);
|
202812
|
-
const use =
|
202818
|
+
const use = func?.runtime || match?.use;
|
202813
202819
|
if (!use) {
|
202814
202820
|
return null;
|
202815
202821
|
}
|
202816
202822
|
const config = { zeroConfig: true };
|
202823
|
+
if (middleware) {
|
202824
|
+
config.middleware = true;
|
202825
|
+
}
|
202817
202826
|
if (fnPattern && func) {
|
202818
202827
|
config.functions = { [fnPattern]: func };
|
202819
202828
|
if (func.includeFiles) {
|
@@ -202843,6 +202852,7 @@ function getFunction(fileName, { functions = {} }) {
|
|
202843
202852
|
function getApiMatches() {
|
202844
202853
|
const config = { zeroConfig: true };
|
202845
202854
|
return [
|
202855
|
+
{ src: 'middleware.[jt]s', use: `@vercel/node`, config },
|
202846
202856
|
{ src: 'api/**/*.js', use: `@vercel/node`, config },
|
202847
202857
|
{ src: 'api/**/*.mjs', use: `@vercel/node`, config },
|
202848
202858
|
{ src: 'api/**/*.ts', use: `@vercel/node`, config },
|
@@ -203387,7 +203397,7 @@ function sortFilesBySegmentCount(fileA, fileB) {
|
|
203387
203397
|
/***/ }),
|
203388
203398
|
|
203389
203399
|
/***/ 1182:
|
203390
|
-
/***/ (function(__unused_webpack_module, exports,
|
203400
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_981719__) {
|
203391
203401
|
|
203392
203402
|
"use strict";
|
203393
203403
|
|
@@ -203396,8 +203406,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
203396
203406
|
};
|
203397
203407
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203398
203408
|
exports.detectFileSystemAPI = void 0;
|
203399
|
-
const semver_1 = __importDefault(
|
203400
|
-
const _1 =
|
203409
|
+
const semver_1 = __importDefault(__nested_webpack_require_981719__(2879));
|
203410
|
+
const _1 = __nested_webpack_require_981719__(2855);
|
203401
203411
|
const enableFileSystemApiFrameworks = new Set(['solidstart']);
|
203402
203412
|
/**
|
203403
203413
|
* If the Deployment can be built with the new File System API,
|
@@ -203841,7 +203851,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
203841
203851
|
/***/ }),
|
203842
203852
|
|
203843
203853
|
/***/ 2397:
|
203844
|
-
/***/ (function(__unused_webpack_module, exports,
|
203854
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997652__) {
|
203845
203855
|
|
203846
203856
|
"use strict";
|
203847
203857
|
|
@@ -203849,8 +203859,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
203849
203859
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
203850
203860
|
};
|
203851
203861
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203852
|
-
const assert_1 = __importDefault(
|
203853
|
-
const into_stream_1 = __importDefault(
|
203862
|
+
const assert_1 = __importDefault(__nested_webpack_require_997652__(2357));
|
203863
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_997652__(6130));
|
203854
203864
|
class FileBlob {
|
203855
203865
|
constructor({ mode = 0o100644, contentType, data }) {
|
203856
203866
|
assert_1.default(typeof mode === 'number');
|
@@ -203885,7 +203895,7 @@ exports.default = FileBlob;
|
|
203885
203895
|
/***/ }),
|
203886
203896
|
|
203887
203897
|
/***/ 9331:
|
203888
|
-
/***/ (function(__unused_webpack_module, exports,
|
203898
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_999170__) {
|
203889
203899
|
|
203890
203900
|
"use strict";
|
203891
203901
|
|
@@ -203893,11 +203903,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
203893
203903
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
203894
203904
|
};
|
203895
203905
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203896
|
-
const assert_1 = __importDefault(
|
203897
|
-
const fs_extra_1 = __importDefault(
|
203898
|
-
const multistream_1 = __importDefault(
|
203899
|
-
const path_1 = __importDefault(
|
203900
|
-
const async_sema_1 = __importDefault(
|
203906
|
+
const assert_1 = __importDefault(__nested_webpack_require_999170__(2357));
|
203907
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_999170__(5392));
|
203908
|
+
const multistream_1 = __importDefault(__nested_webpack_require_999170__(8179));
|
203909
|
+
const path_1 = __importDefault(__nested_webpack_require_999170__(5622));
|
203910
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_999170__(5758));
|
203901
203911
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
203902
203912
|
class FileFsRef {
|
203903
203913
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -203963,7 +203973,7 @@ exports.default = FileFsRef;
|
|
203963
203973
|
/***/ }),
|
203964
203974
|
|
203965
203975
|
/***/ 5187:
|
203966
|
-
/***/ (function(__unused_webpack_module, exports,
|
203976
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1001974__) {
|
203967
203977
|
|
203968
203978
|
"use strict";
|
203969
203979
|
|
@@ -203971,11 +203981,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
203971
203981
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
203972
203982
|
};
|
203973
203983
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203974
|
-
const assert_1 = __importDefault(
|
203975
|
-
const node_fetch_1 = __importDefault(
|
203976
|
-
const multistream_1 = __importDefault(
|
203977
|
-
const async_retry_1 = __importDefault(
|
203978
|
-
const async_sema_1 = __importDefault(
|
203984
|
+
const assert_1 = __importDefault(__nested_webpack_require_1001974__(2357));
|
203985
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_1001974__(2197));
|
203986
|
+
const multistream_1 = __importDefault(__nested_webpack_require_1001974__(8179));
|
203987
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_1001974__(3691));
|
203988
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1001974__(5758));
|
203979
203989
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
203980
203990
|
class BailableError extends Error {
|
203981
203991
|
constructor(...args) {
|
@@ -204056,7 +204066,7 @@ exports.default = FileRef;
|
|
204056
204066
|
/***/ }),
|
204057
204067
|
|
204058
204068
|
/***/ 1611:
|
204059
|
-
/***/ (function(__unused_webpack_module, exports,
|
204069
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1005375__) {
|
204060
204070
|
|
204061
204071
|
"use strict";
|
204062
204072
|
|
@@ -204065,11 +204075,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204065
204075
|
};
|
204066
204076
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204067
204077
|
exports.isSymbolicLink = void 0;
|
204068
|
-
const path_1 = __importDefault(
|
204069
|
-
const debug_1 = __importDefault(
|
204070
|
-
const file_fs_ref_1 = __importDefault(
|
204071
|
-
const fs_extra_1 =
|
204072
|
-
const stream_to_buffer_1 = __importDefault(
|
204078
|
+
const path_1 = __importDefault(__nested_webpack_require_1005375__(5622));
|
204079
|
+
const debug_1 = __importDefault(__nested_webpack_require_1005375__(1868));
|
204080
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1005375__(9331));
|
204081
|
+
const fs_extra_1 = __nested_webpack_require_1005375__(5392);
|
204082
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1005375__(2560));
|
204073
204083
|
const S_IFMT = 61440; /* 0170000 type of file */
|
204074
204084
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
204075
204085
|
function isSymbolicLink(mode) {
|
@@ -204142,7 +204152,7 @@ exports.default = download;
|
|
204142
204152
|
/***/ }),
|
204143
204153
|
|
204144
204154
|
/***/ 5706:
|
204145
|
-
/***/ (function(__unused_webpack_module, exports,
|
204155
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1008832__) {
|
204146
204156
|
|
204147
204157
|
"use strict";
|
204148
204158
|
|
@@ -204151,7 +204161,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204151
204161
|
};
|
204152
204162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204153
204163
|
exports.getGlobFs = void 0;
|
204154
|
-
const fs_1 = __importDefault(
|
204164
|
+
const fs_1 = __importDefault(__nested_webpack_require_1008832__(5747));
|
204155
204165
|
function normalizePath(path) {
|
204156
204166
|
// on windows, this will return a path like
|
204157
204167
|
// D:/c/package.json
|
@@ -204221,14 +204231,14 @@ exports.getGlobFs = getGlobFs;
|
|
204221
204231
|
/***/ }),
|
204222
204232
|
|
204223
204233
|
/***/ 3838:
|
204224
|
-
/***/ ((__unused_webpack_module, exports,
|
204234
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1011288__) => {
|
204225
204235
|
|
204226
204236
|
"use strict";
|
204227
204237
|
|
204228
204238
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204229
|
-
const path_1 =
|
204230
|
-
const os_1 =
|
204231
|
-
const fs_extra_1 =
|
204239
|
+
const path_1 = __nested_webpack_require_1011288__(5622);
|
204240
|
+
const os_1 = __nested_webpack_require_1011288__(2087);
|
204241
|
+
const fs_extra_1 = __nested_webpack_require_1011288__(5392);
|
204232
204242
|
async function getWritableDirectory() {
|
204233
204243
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
204234
204244
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -204241,7 +204251,7 @@ exports.default = getWritableDirectory;
|
|
204241
204251
|
/***/ }),
|
204242
204252
|
|
204243
204253
|
/***/ 4240:
|
204244
|
-
/***/ (function(__unused_webpack_module, exports,
|
204254
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1011868__) {
|
204245
204255
|
|
204246
204256
|
"use strict";
|
204247
204257
|
|
@@ -204249,13 +204259,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204249
204259
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
204250
204260
|
};
|
204251
204261
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204252
|
-
const path_1 = __importDefault(
|
204253
|
-
const assert_1 = __importDefault(
|
204254
|
-
const glob_1 = __importDefault(
|
204255
|
-
const util_1 =
|
204256
|
-
const fs_extra_1 =
|
204257
|
-
const normalize_path_1 =
|
204258
|
-
const file_fs_ref_1 = __importDefault(
|
204262
|
+
const path_1 = __importDefault(__nested_webpack_require_1011868__(5622));
|
204263
|
+
const assert_1 = __importDefault(__nested_webpack_require_1011868__(2357));
|
204264
|
+
const glob_1 = __importDefault(__nested_webpack_require_1011868__(1104));
|
204265
|
+
const util_1 = __nested_webpack_require_1011868__(1669);
|
204266
|
+
const fs_extra_1 = __nested_webpack_require_1011868__(5392);
|
204267
|
+
const normalize_path_1 = __nested_webpack_require_1011868__(6261);
|
204268
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1011868__(9331));
|
204259
204269
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
204260
204270
|
async function glob(pattern, opts, mountpoint) {
|
204261
204271
|
let options;
|
@@ -204301,7 +204311,7 @@ exports.default = glob;
|
|
204301
204311
|
/***/ }),
|
204302
204312
|
|
204303
204313
|
/***/ 7903:
|
204304
|
-
/***/ (function(__unused_webpack_module, exports,
|
204314
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1014064__) {
|
204305
204315
|
|
204306
204316
|
"use strict";
|
204307
204317
|
|
@@ -204310,9 +204320,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204310
204320
|
};
|
204311
204321
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204312
204322
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
204313
|
-
const semver_1 =
|
204314
|
-
const errors_1 =
|
204315
|
-
const debug_1 = __importDefault(
|
204323
|
+
const semver_1 = __nested_webpack_require_1014064__(2879);
|
204324
|
+
const errors_1 = __nested_webpack_require_1014064__(3983);
|
204325
|
+
const debug_1 = __importDefault(__nested_webpack_require_1014064__(1868));
|
204316
204326
|
const allOptions = [
|
204317
204327
|
{ major: 16, range: '16.x', runtime: 'nodejs16.x' },
|
204318
204328
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
@@ -204412,7 +204422,7 @@ exports.normalizePath = normalizePath;
|
|
204412
204422
|
/***/ }),
|
204413
204423
|
|
204414
204424
|
/***/ 7792:
|
204415
|
-
/***/ (function(__unused_webpack_module, exports,
|
204425
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1018067__) {
|
204416
204426
|
|
204417
204427
|
"use strict";
|
204418
204428
|
|
@@ -204421,9 +204431,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204421
204431
|
};
|
204422
204432
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204423
204433
|
exports.readConfigFile = void 0;
|
204424
|
-
const js_yaml_1 = __importDefault(
|
204425
|
-
const toml_1 = __importDefault(
|
204426
|
-
const fs_extra_1 =
|
204434
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_1018067__(6540));
|
204435
|
+
const toml_1 = __importDefault(__nested_webpack_require_1018067__(9434));
|
204436
|
+
const fs_extra_1 = __nested_webpack_require_1018067__(5392);
|
204427
204437
|
async function readFileOrNull(file) {
|
204428
204438
|
try {
|
204429
204439
|
const data = await fs_extra_1.readFile(file);
|
@@ -204478,7 +204488,7 @@ exports.default = rename;
|
|
204478
204488
|
/***/ }),
|
204479
204489
|
|
204480
204490
|
/***/ 1442:
|
204481
|
-
/***/ (function(__unused_webpack_module, exports,
|
204491
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1019860__) {
|
204482
204492
|
|
204483
204493
|
"use strict";
|
204484
204494
|
|
@@ -204487,17 +204497,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204487
204497
|
};
|
204488
204498
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204489
204499
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runCustomInstallCommand = exports.getEnvForPackageManager = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
204490
|
-
const assert_1 = __importDefault(
|
204491
|
-
const fs_extra_1 = __importDefault(
|
204492
|
-
const path_1 = __importDefault(
|
204493
|
-
const async_sema_1 = __importDefault(
|
204494
|
-
const cross_spawn_1 = __importDefault(
|
204495
|
-
const semver_1 =
|
204496
|
-
const util_1 =
|
204497
|
-
const debug_1 = __importDefault(
|
204498
|
-
const errors_1 =
|
204499
|
-
const node_version_1 =
|
204500
|
-
const read_config_file_1 =
|
204500
|
+
const assert_1 = __importDefault(__nested_webpack_require_1019860__(2357));
|
204501
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1019860__(5392));
|
204502
|
+
const path_1 = __importDefault(__nested_webpack_require_1019860__(5622));
|
204503
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1019860__(5758));
|
204504
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_1019860__(7618));
|
204505
|
+
const semver_1 = __nested_webpack_require_1019860__(2879);
|
204506
|
+
const util_1 = __nested_webpack_require_1019860__(1669);
|
204507
|
+
const debug_1 = __importDefault(__nested_webpack_require_1019860__(1868));
|
204508
|
+
const errors_1 = __nested_webpack_require_1019860__(3983);
|
204509
|
+
const node_version_1 = __nested_webpack_require_1019860__(7903);
|
204510
|
+
const read_config_file_1 = __nested_webpack_require_1019860__(7792);
|
204501
204511
|
// Only allow one `runNpmInstall()` invocation to run concurrently
|
204502
204512
|
const runNpmInstallSema = new async_sema_1.default(1);
|
204503
204513
|
function spawnAsync(command, args, opts = {}) {
|
@@ -204912,7 +204922,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
204912
204922
|
/***/ }),
|
204913
204923
|
|
204914
204924
|
/***/ 2560:
|
204915
|
-
/***/ (function(__unused_webpack_module, exports,
|
204925
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1038081__) {
|
204916
204926
|
|
204917
204927
|
"use strict";
|
204918
204928
|
|
@@ -204920,7 +204930,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204920
204930
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
204921
204931
|
};
|
204922
204932
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204923
|
-
const end_of_stream_1 = __importDefault(
|
204933
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1038081__(687));
|
204924
204934
|
function streamToBuffer(stream) {
|
204925
204935
|
return new Promise((resolve, reject) => {
|
204926
204936
|
const buffers = [];
|
@@ -204949,7 +204959,7 @@ exports.default = streamToBuffer;
|
|
204949
204959
|
/***/ }),
|
204950
204960
|
|
204951
204961
|
/***/ 1148:
|
204952
|
-
/***/ (function(__unused_webpack_module, exports,
|
204962
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1039149__) {
|
204953
204963
|
|
204954
204964
|
"use strict";
|
204955
204965
|
|
@@ -204957,9 +204967,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
204957
204967
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
204958
204968
|
};
|
204959
204969
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
204960
|
-
const path_1 = __importDefault(
|
204961
|
-
const fs_extra_1 = __importDefault(
|
204962
|
-
const ignore_1 = __importDefault(
|
204970
|
+
const path_1 = __importDefault(__nested_webpack_require_1039149__(5622));
|
204971
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1039149__(5392));
|
204972
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1039149__(3556));
|
204963
204973
|
function isCodedError(error) {
|
204964
204974
|
return (error !== null &&
|
204965
204975
|
error !== undefined &&
|
@@ -205016,13 +205026,13 @@ exports.default = default_1;
|
|
205016
205026
|
/***/ }),
|
205017
205027
|
|
205018
205028
|
/***/ 4678:
|
205019
|
-
/***/ ((__unused_webpack_module, exports,
|
205029
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1041523__) => {
|
205020
205030
|
|
205021
205031
|
"use strict";
|
205022
205032
|
|
205023
205033
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205024
205034
|
exports.getPlatformEnv = void 0;
|
205025
|
-
const errors_1 =
|
205035
|
+
const errors_1 = __nested_webpack_require_1041523__(3983);
|
205026
205036
|
/**
|
205027
205037
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
205028
205038
|
* Throws an error if *both* env vars are defined.
|
@@ -205047,10 +205057,57 @@ const getPlatformEnv = (name) => {
|
|
205047
205057
|
exports.getPlatformEnv = getPlatformEnv;
|
205048
205058
|
|
205049
205059
|
|
205060
|
+
/***/ }),
|
205061
|
+
|
205062
|
+
/***/ 1886:
|
205063
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1042560__) {
|
205064
|
+
|
205065
|
+
"use strict";
|
205066
|
+
|
205067
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
205068
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
205069
|
+
};
|
205070
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205071
|
+
exports.getProjectPaths = void 0;
|
205072
|
+
const detect_framework_1 = __nested_webpack_require_1042560__(5224);
|
205073
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_1042560__(8438));
|
205074
|
+
const MAX_DEPTH_TRAVERSE = 3;
|
205075
|
+
const getProjectPaths = async ({ fs, path, skipPaths, depth = MAX_DEPTH_TRAVERSE, }) => {
|
205076
|
+
if (depth === 0)
|
205077
|
+
return [];
|
205078
|
+
const allPaths = [];
|
205079
|
+
const topPath = path ?? './';
|
205080
|
+
if (path && skipPaths?.includes(path)) {
|
205081
|
+
return allPaths;
|
205082
|
+
}
|
205083
|
+
const framework = await detect_framework_1.detectFramework({
|
205084
|
+
fs: fs.chdir(topPath),
|
205085
|
+
frameworkList: frameworks_1.default,
|
205086
|
+
});
|
205087
|
+
if (framework !== null)
|
205088
|
+
allPaths.push(topPath);
|
205089
|
+
if (depth > 1) {
|
205090
|
+
const directoryContents = await fs.readdir(topPath);
|
205091
|
+
const childDirectories = directoryContents.filter(stat => stat.type === 'dir' && !skipPaths?.includes(stat.path));
|
205092
|
+
const paths = (await Promise.all(childDirectories.map(({ path }) => {
|
205093
|
+
return exports.getProjectPaths({
|
205094
|
+
fs,
|
205095
|
+
path,
|
205096
|
+
depth: depth - 1,
|
205097
|
+
skipPaths,
|
205098
|
+
});
|
205099
|
+
}))).flat();
|
205100
|
+
return [...paths, ...allPaths];
|
205101
|
+
}
|
205102
|
+
return allPaths;
|
205103
|
+
};
|
205104
|
+
exports.getProjectPaths = getProjectPaths;
|
205105
|
+
|
205106
|
+
|
205050
205107
|
/***/ }),
|
205051
205108
|
|
205052
205109
|
/***/ 2855:
|
205053
|
-
/***/ (function(__unused_webpack_module, exports,
|
205110
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1044116__) {
|
205054
205111
|
|
205055
205112
|
"use strict";
|
205056
205113
|
|
@@ -205080,32 +205137,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
205080
205137
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
205081
205138
|
};
|
205082
205139
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205083
|
-
exports.
|
205084
|
-
exports.monorepoManagers = exports.getWorkspacePackagePaths = exports.getWorkspaces = void 0;
|
205085
|
-
const file_blob_1 = __importDefault(
|
205140
|
+
exports.isStaticRuntime = exports.isOfficialRuntime = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.getProjectPaths = exports.detectFramework = exports.detectFileSystemAPI = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.EdgeFunction = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPlatformEnv = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = 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.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
205141
|
+
exports.monorepoManagers = exports.getWorkspacePackagePaths = exports.getWorkspaces = exports.workspaceManagers = void 0;
|
205142
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1044116__(2397));
|
205086
205143
|
exports.FileBlob = file_blob_1.default;
|
205087
|
-
const file_fs_ref_1 = __importDefault(
|
205144
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1044116__(9331));
|
205088
205145
|
exports.FileFsRef = file_fs_ref_1.default;
|
205089
|
-
const file_ref_1 = __importDefault(
|
205146
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1044116__(5187));
|
205090
205147
|
exports.FileRef = file_ref_1.default;
|
205091
|
-
const lambda_1 =
|
205148
|
+
const lambda_1 = __nested_webpack_require_1044116__(6721);
|
205092
205149
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
205093
205150
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
205094
205151
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
205095
|
-
const nodejs_lambda_1 =
|
205152
|
+
const nodejs_lambda_1 = __nested_webpack_require_1044116__(7049);
|
205096
205153
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
205097
|
-
const prerender_1 =
|
205154
|
+
const prerender_1 = __nested_webpack_require_1044116__(2850);
|
205098
205155
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
205099
|
-
const download_1 = __importStar(
|
205156
|
+
const download_1 = __importStar(__nested_webpack_require_1044116__(1611));
|
205100
205157
|
exports.download = download_1.default;
|
205101
205158
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
205102
|
-
const get_writable_directory_1 = __importDefault(
|
205159
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1044116__(3838));
|
205103
205160
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
205104
|
-
const glob_1 = __importDefault(
|
205161
|
+
const glob_1 = __importDefault(__nested_webpack_require_1044116__(4240));
|
205105
205162
|
exports.glob = glob_1.default;
|
205106
|
-
const rename_1 = __importDefault(
|
205163
|
+
const rename_1 = __importDefault(__nested_webpack_require_1044116__(6718));
|
205107
205164
|
exports.rename = rename_1.default;
|
205108
|
-
const run_user_scripts_1 =
|
205165
|
+
const run_user_scripts_1 = __nested_webpack_require_1044116__(1442);
|
205109
205166
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
205110
205167
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
205111
205168
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -205124,38 +205181,40 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
205124
205181
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
205125
205182
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
205126
205183
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
205127
|
-
const node_version_1 =
|
205184
|
+
const node_version_1 = __nested_webpack_require_1044116__(7903);
|
205128
205185
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
205129
205186
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
205130
|
-
const stream_to_buffer_1 = __importDefault(
|
205187
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1044116__(2560));
|
205131
205188
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
205132
|
-
const debug_1 = __importDefault(
|
205189
|
+
const debug_1 = __importDefault(__nested_webpack_require_1044116__(1868));
|
205133
205190
|
exports.debug = debug_1.default;
|
205134
|
-
const get_ignore_filter_1 = __importDefault(
|
205191
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1044116__(1148));
|
205135
205192
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
205136
|
-
const get_platform_env_1 =
|
205193
|
+
const get_platform_env_1 = __nested_webpack_require_1044116__(4678);
|
205137
205194
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
205138
|
-
var edge_function_1 =
|
205195
|
+
var edge_function_1 = __nested_webpack_require_1044116__(8038);
|
205139
205196
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
205140
|
-
var detect_builders_1 =
|
205197
|
+
var detect_builders_1 = __nested_webpack_require_1044116__(4246);
|
205141
205198
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
205142
205199
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
205143
205200
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
205144
205201
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
205145
|
-
var detect_file_system_api_1 =
|
205202
|
+
var detect_file_system_api_1 = __nested_webpack_require_1044116__(1182);
|
205146
205203
|
Object.defineProperty(exports, "detectFileSystemAPI", ({ enumerable: true, get: function () { return detect_file_system_api_1.detectFileSystemAPI; } }));
|
205147
|
-
var detect_framework_1 =
|
205204
|
+
var detect_framework_1 = __nested_webpack_require_1044116__(5224);
|
205148
205205
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
205149
|
-
var
|
205206
|
+
var get_project_paths_1 = __nested_webpack_require_1044116__(1886);
|
205207
|
+
Object.defineProperty(exports, "getProjectPaths", ({ enumerable: true, get: function () { return get_project_paths_1.getProjectPaths; } }));
|
205208
|
+
var filesystem_1 = __nested_webpack_require_1044116__(461);
|
205150
205209
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
205151
|
-
var read_config_file_1 =
|
205210
|
+
var read_config_file_1 = __nested_webpack_require_1044116__(7792);
|
205152
205211
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
205153
|
-
var normalize_path_1 =
|
205212
|
+
var normalize_path_1 = __nested_webpack_require_1044116__(6261);
|
205154
205213
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
205155
|
-
__exportStar(
|
205156
|
-
__exportStar(
|
205157
|
-
__exportStar(
|
205158
|
-
__exportStar(
|
205214
|
+
__exportStar(__nested_webpack_require_1044116__(2564), exports);
|
205215
|
+
__exportStar(__nested_webpack_require_1044116__(2416), exports);
|
205216
|
+
__exportStar(__nested_webpack_require_1044116__(5748), exports);
|
205217
|
+
__exportStar(__nested_webpack_require_1044116__(3983), exports);
|
205159
205218
|
/**
|
205160
205219
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
205161
205220
|
*/
|
@@ -205173,20 +205232,20 @@ const isStaticRuntime = (name) => {
|
|
205173
205232
|
return exports.isOfficialRuntime('static', name);
|
205174
205233
|
};
|
205175
205234
|
exports.isStaticRuntime = isStaticRuntime;
|
205176
|
-
var workspace_managers_1 =
|
205235
|
+
var workspace_managers_1 = __nested_webpack_require_1044116__(4896);
|
205177
205236
|
Object.defineProperty(exports, "workspaceManagers", ({ enumerable: true, get: function () { return workspace_managers_1.workspaceManagers; } }));
|
205178
|
-
var get_workspaces_1 =
|
205237
|
+
var get_workspaces_1 = __nested_webpack_require_1044116__(9740);
|
205179
205238
|
Object.defineProperty(exports, "getWorkspaces", ({ enumerable: true, get: function () { return get_workspaces_1.getWorkspaces; } }));
|
205180
|
-
var get_workspace_package_paths_1 =
|
205239
|
+
var get_workspace_package_paths_1 = __nested_webpack_require_1044116__(1953);
|
205181
205240
|
Object.defineProperty(exports, "getWorkspacePackagePaths", ({ enumerable: true, get: function () { return get_workspace_package_paths_1.getWorkspacePackagePaths; } }));
|
205182
|
-
var monorepo_managers_1 =
|
205241
|
+
var monorepo_managers_1 = __nested_webpack_require_1044116__(6418);
|
205183
205242
|
Object.defineProperty(exports, "monorepoManagers", ({ enumerable: true, get: function () { return monorepo_managers_1.monorepoManagers; } }));
|
205184
205243
|
|
205185
205244
|
|
205186
205245
|
/***/ }),
|
205187
205246
|
|
205188
205247
|
/***/ 6721:
|
205189
|
-
/***/ (function(__unused_webpack_module, exports,
|
205248
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1055556__) {
|
205190
205249
|
|
205191
205250
|
"use strict";
|
205192
205251
|
|
@@ -205195,13 +205254,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
205195
205254
|
};
|
205196
205255
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205197
205256
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
205198
|
-
const assert_1 = __importDefault(
|
205199
|
-
const async_sema_1 = __importDefault(
|
205200
|
-
const yazl_1 =
|
205201
|
-
const minimatch_1 = __importDefault(
|
205202
|
-
const fs_extra_1 =
|
205203
|
-
const download_1 =
|
205204
|
-
const stream_to_buffer_1 = __importDefault(
|
205257
|
+
const assert_1 = __importDefault(__nested_webpack_require_1055556__(2357));
|
205258
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1055556__(5758));
|
205259
|
+
const yazl_1 = __nested_webpack_require_1055556__(1223);
|
205260
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1055556__(9566));
|
205261
|
+
const fs_extra_1 = __nested_webpack_require_1055556__(5392);
|
205262
|
+
const download_1 = __nested_webpack_require_1055556__(1611);
|
205263
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1055556__(2560));
|
205205
205264
|
class Lambda {
|
205206
205265
|
constructor(opts) {
|
205207
205266
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
@@ -205365,13 +205424,13 @@ exports.default = exports.monorepoManagers;
|
|
205365
205424
|
/***/ }),
|
205366
205425
|
|
205367
205426
|
/***/ 7049:
|
205368
|
-
/***/ ((__unused_webpack_module, exports,
|
205427
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1062066__) => {
|
205369
205428
|
|
205370
205429
|
"use strict";
|
205371
205430
|
|
205372
205431
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205373
205432
|
exports.NodejsLambda = void 0;
|
205374
|
-
const lambda_1 =
|
205433
|
+
const lambda_1 = __nested_webpack_require_1062066__(6721);
|
205375
205434
|
class NodejsLambda extends lambda_1.Lambda {
|
205376
205435
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
205377
205436
|
super(opts);
|
@@ -205508,13 +205567,13 @@ exports.buildsSchema = {
|
|
205508
205567
|
/***/ }),
|
205509
205568
|
|
205510
205569
|
/***/ 2564:
|
205511
|
-
/***/ ((__unused_webpack_module, exports,
|
205570
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1066411__) => {
|
205512
205571
|
|
205513
205572
|
"use strict";
|
205514
205573
|
|
205515
205574
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205516
205575
|
exports.shouldServe = void 0;
|
205517
|
-
const path_1 =
|
205576
|
+
const path_1 = __nested_webpack_require_1066411__(5622);
|
205518
205577
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
205519
205578
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
205520
205579
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -205546,7 +205605,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
205546
205605
|
/***/ }),
|
205547
205606
|
|
205548
205607
|
/***/ 1953:
|
205549
|
-
/***/ (function(__unused_webpack_module, exports,
|
205608
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1067420__) {
|
205550
205609
|
|
205551
205610
|
"use strict";
|
205552
205611
|
|
@@ -205555,11 +205614,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
205555
205614
|
};
|
205556
205615
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205557
205616
|
exports.getWorkspacePackagePaths = void 0;
|
205558
|
-
const path_1 = __importDefault(
|
205559
|
-
const js_yaml_1 = __importDefault(
|
205560
|
-
const glob_1 = __importDefault(
|
205561
|
-
const get_glob_fs_1 =
|
205562
|
-
const normalize_path_1 =
|
205617
|
+
const path_1 = __importDefault(__nested_webpack_require_1067420__(5622));
|
205618
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_1067420__(6540));
|
205619
|
+
const glob_1 = __importDefault(__nested_webpack_require_1067420__(1104));
|
205620
|
+
const get_glob_fs_1 = __nested_webpack_require_1067420__(5706);
|
205621
|
+
const normalize_path_1 = __nested_webpack_require_1067420__(6261);
|
205563
205622
|
const posixPath = path_1.default.posix;
|
205564
205623
|
async function getWorkspacePackagePaths({ fs, workspace, }) {
|
205565
205624
|
const { type, rootPath } = workspace;
|
@@ -205616,7 +205675,7 @@ async function getPnpmWorkspacePackagePaths({ fs, }) {
|
|
205616
205675
|
/***/ }),
|
205617
205676
|
|
205618
205677
|
/***/ 9740:
|
205619
|
-
/***/ (function(__unused_webpack_module, exports,
|
205678
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1069979__) {
|
205620
205679
|
|
205621
205680
|
"use strict";
|
205622
205681
|
|
@@ -205625,9 +205684,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
205625
205684
|
};
|
205626
205685
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
205627
205686
|
exports.getWorkspaces = void 0;
|
205628
|
-
const path_1 = __importDefault(
|
205629
|
-
const workspace_managers_1 =
|
205630
|
-
const detect_framework_1 =
|
205687
|
+
const path_1 = __importDefault(__nested_webpack_require_1069979__(5622));
|
205688
|
+
const workspace_managers_1 = __nested_webpack_require_1069979__(4896);
|
205689
|
+
const detect_framework_1 = __nested_webpack_require_1069979__(5224);
|
205631
205690
|
const MAX_DEPTH_TRAVERSE = 3;
|
205632
205691
|
const posixPath = path_1.default.posix;
|
205633
205692
|
async function getWorkspaces({ fs, depth = MAX_DEPTH_TRAVERSE, cwd = '/', }) {
|
@@ -205924,7 +205983,7 @@ module.exports = __webpack_require__(78761);
|
|
205924
205983
|
/******/ var __webpack_module_cache__ = {};
|
205925
205984
|
/******/
|
205926
205985
|
/******/ // The require function
|
205927
|
-
/******/ function
|
205986
|
+
/******/ function __nested_webpack_require_1171755__(moduleId) {
|
205928
205987
|
/******/ // Check if module is in cache
|
205929
205988
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
205930
205989
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -205939,7 +205998,7 @@ module.exports = __webpack_require__(78761);
|
|
205939
205998
|
/******/ // Execute the module function
|
205940
205999
|
/******/ var threw = true;
|
205941
206000
|
/******/ try {
|
205942
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
206001
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1171755__);
|
205943
206002
|
/******/ threw = false;
|
205944
206003
|
/******/ } finally {
|
205945
206004
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -205952,11 +206011,11 @@ module.exports = __webpack_require__(78761);
|
|
205952
206011
|
/************************************************************************/
|
205953
206012
|
/******/ /* webpack/runtime/compat */
|
205954
206013
|
/******/
|
205955
|
-
/******/
|
206014
|
+
/******/ __nested_webpack_require_1171755__.ab = __dirname + "/";/************************************************************************/
|
205956
206015
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
205957
206016
|
/******/ // startup
|
205958
206017
|
/******/ // Load entry module and return exports
|
205959
|
-
/******/ return
|
206018
|
+
/******/ return __nested_webpack_require_1171755__(2855);
|
205960
206019
|
/******/ })()
|
205961
206020
|
;
|
205962
206021
|
|
@@ -230811,6 +230870,7 @@ async function main(client) {
|
|
230811
230870
|
const argv = get_args_1.default(client.argv.slice(2), {
|
230812
230871
|
'--cwd': String,
|
230813
230872
|
'--prod': Boolean,
|
230873
|
+
'--yes': Boolean,
|
230814
230874
|
});
|
230815
230875
|
if (argv['--help']) {
|
230816
230876
|
help();
|
@@ -230821,29 +230881,40 @@ async function main(client) {
|
|
230821
230881
|
process.chdir(argv['--cwd']);
|
230822
230882
|
}
|
230823
230883
|
const cwd = process.cwd();
|
230884
|
+
// Build `target` influences which environment variables will be used
|
230885
|
+
const target = argv['--prod'] ? 'production' : 'preview';
|
230886
|
+
const yes = Boolean(argv['--yes']);
|
230824
230887
|
// TODO: read project settings from the API, fall back to local `project.json` if that fails
|
230825
230888
|
// Read project settings, and pull them from Vercel if necessary
|
230826
230889
|
let project = await project_settings_1.readProjectSettings(path_1.join(cwd, link_1.VERCEL_DIR));
|
230827
230890
|
const isTTY = process.stdin.isTTY;
|
230828
230891
|
while (!project?.settings) {
|
230829
|
-
|
230830
|
-
|
230831
|
-
|
230892
|
+
let confirmed = yes;
|
230893
|
+
if (!confirmed) {
|
230894
|
+
if (!isTTY) {
|
230895
|
+
client.output.print(`No Project Settings found locally. Run ${cli.getCommandName('pull --yes')} to retreive them.`);
|
230896
|
+
return 1;
|
230897
|
+
}
|
230898
|
+
confirmed = await confirm_1.default(`No Project Settings found locally. Run ${cli.getCommandName('pull')} for retrieving them?`, true);
|
230832
230899
|
}
|
230833
|
-
const confirmed = await confirm_1.default(`No Project Settings found locally. Run ${cli.getCommandName('pull')} for retrieving them?`, true);
|
230834
230900
|
if (!confirmed) {
|
230835
230901
|
client.output.print(`Aborted. No Project Settings retrieved.\n`);
|
230836
230902
|
return 0;
|
230837
230903
|
}
|
230838
|
-
|
230904
|
+
const { argv: originalArgv } = client;
|
230905
|
+
client.argv = [
|
230906
|
+
...originalArgv.slice(0, 2),
|
230907
|
+
'pull',
|
230908
|
+
`--environment`,
|
230909
|
+
target,
|
230910
|
+
];
|
230839
230911
|
const result = await pull_1.default(client);
|
230840
230912
|
if (result !== 0) {
|
230841
230913
|
return result;
|
230842
230914
|
}
|
230915
|
+
client.argv = originalArgv;
|
230843
230916
|
project = await project_settings_1.readProjectSettings(path_1.join(cwd, link_1.VERCEL_DIR));
|
230844
230917
|
}
|
230845
|
-
// Build `target` influences which environment variables will be used
|
230846
|
-
const target = argv['--prod'] ? 'production' : 'preview';
|
230847
230918
|
// TODO: load env vars from the API, fall back to local files if that fails
|
230848
230919
|
const envPath = await checkExists([
|
230849
230920
|
path_1.join(cwd, link_1.VERCEL_DIR, `.env.${target}.local`),
|
@@ -232424,6 +232495,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
232424
232495
|
};
|
232425
232496
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
232426
232497
|
const path_1 = __webpack_require__(85622);
|
232498
|
+
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
232427
232499
|
const server_1 = __importDefault(__webpack_require__(18433));
|
232428
232500
|
const parse_listen_1 = __importDefault(__webpack_require__(1919));
|
232429
232501
|
const link_1 = __webpack_require__(67630);
|
@@ -232433,6 +232505,7 @@ const setup_and_link_1 = __importDefault(__webpack_require__(69532));
|
|
232433
232505
|
const get_system_env_values_1 = __importDefault(__webpack_require__(60272));
|
232434
232506
|
const pkg_name_1 = __webpack_require__(98106);
|
232435
232507
|
const param_1 = __importDefault(__webpack_require__(70330));
|
232508
|
+
const write_build_result_1 = __webpack_require__(28689);
|
232436
232509
|
async function dev(client, opts, args) {
|
232437
232510
|
const { output } = client;
|
232438
232511
|
const [dir = '.'] = args;
|
@@ -232499,6 +232572,14 @@ async function dev(client, opts, args) {
|
|
232499
232572
|
if (process.env.VERCEL_DEV_COMMAND) {
|
232500
232573
|
devCommand = process.env.VERCEL_DEV_COMMAND;
|
232501
232574
|
}
|
232575
|
+
// If there is no Development Command, we must delete the
|
232576
|
+
// v3 Build Output because it will incorrectly be detected by
|
232577
|
+
// @vercel/static-build in BuildOutputV3.getBuildOutputDirectory()
|
232578
|
+
if (!devCommand) {
|
232579
|
+
output.log(`Removing ${write_build_result_1.OUTPUT_DIR}`);
|
232580
|
+
const outputDir = path_1.join(cwd, write_build_result_1.OUTPUT_DIR);
|
232581
|
+
await fs_extra_1.default.remove(outputDir);
|
232582
|
+
}
|
232502
232583
|
const devServer = new server_1.default(cwd, {
|
232503
232584
|
output,
|
232504
232585
|
devCommand,
|
@@ -251865,7 +251946,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
251865
251946
|
/***/ ((module) => {
|
251866
251947
|
|
251867
251948
|
"use strict";
|
251868
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"25.
|
251949
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"25.1.1-canary.0\",\"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 --env node --verbose --runInBand --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn test test/dev/\",\"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\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"4.1.1-canary.0\",\"@vercel/go\":\"2.0.2-canary.0\",\"@vercel/next\":\"3.0.2-canary.0\",\"@vercel/node\":\"2.1.1-canary.0\",\"@vercel/python\":\"3.0.2-canary.0\",\"@vercel/redwood\":\"1.0.2-canary.0\",\"@vercel/remix\":\"1.0.2-canary.0\",\"@vercel/ruby\":\"1.3.10-canary.0\",\"@vercel/static-build\":\"1.0.2-canary.0\",\"update-notifier\":\"5.1.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@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.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@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\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.0.2-canary.0\",\"@vercel/frameworks\":\"1.0.1\",\"@vercel/ncc\":\"0.24.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.4.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-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\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"4bf6295d7a1d6544f195d76a2a4aedb476fa7dc1\"}");
|
251869
251950
|
|
251870
251951
|
/***/ }),
|
251871
251952
|
|
@@ -251881,7 +251962,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
251881
251962
|
/***/ ((module) => {
|
251882
251963
|
|
251883
251964
|
"use strict";
|
251884
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.0.
|
251965
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.0.2-canary.0\",\"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\":\"yarn test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"yarn test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@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\":\"4.1.1-canary.0\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"4bf6295d7a1d6544f195d76a2a4aedb476fa7dc1\"}");
|
251885
251966
|
|
251886
251967
|
/***/ }),
|
251887
251968
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "25.
|
3
|
+
"version": "25.1.1-canary.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -42,15 +42,15 @@
|
|
42
42
|
"node": ">= 14"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@vercel/build-utils": "4.
|
46
|
-
"@vercel/go": "2.0.
|
47
|
-
"@vercel/next": "3.0.
|
48
|
-
"@vercel/node": "2.
|
49
|
-
"@vercel/python": "3.0.
|
50
|
-
"@vercel/redwood": "1.0.
|
51
|
-
"@vercel/remix": "1.0.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.0.
|
45
|
+
"@vercel/build-utils": "4.1.1-canary.0",
|
46
|
+
"@vercel/go": "2.0.2-canary.0",
|
47
|
+
"@vercel/next": "3.0.2-canary.0",
|
48
|
+
"@vercel/node": "2.1.1-canary.0",
|
49
|
+
"@vercel/python": "3.0.2-canary.0",
|
50
|
+
"@vercel/redwood": "1.0.2-canary.0",
|
51
|
+
"@vercel/remix": "1.0.2-canary.0",
|
52
|
+
"@vercel/ruby": "1.3.10-canary.0",
|
53
|
+
"@vercel/static-build": "1.0.2-canary.0",
|
54
54
|
"update-notifier": "5.1.0"
|
55
55
|
},
|
56
56
|
"devDependencies": {
|
@@ -94,7 +94,7 @@
|
|
94
94
|
"@types/which": "1.3.2",
|
95
95
|
"@types/write-json-file": "2.2.1",
|
96
96
|
"@types/yauzl-promise": "2.1.0",
|
97
|
-
"@vercel/client": "12.0.
|
97
|
+
"@vercel/client": "12.0.2-canary.0",
|
98
98
|
"@vercel/frameworks": "1.0.1",
|
99
99
|
"@vercel/ncc": "0.24.0",
|
100
100
|
"@zeit/fun": "0.11.2",
|
@@ -191,5 +191,5 @@
|
|
191
191
|
"<rootDir>/test/**/*.test.ts"
|
192
192
|
]
|
193
193
|
},
|
194
|
-
"gitHead": "
|
194
|
+
"gitHead": "4bf6295d7a1d6544f195d76a2a4aedb476fa7dc1"
|
195
195
|
}
|