vercel 28.14.1 → 28.15.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 +76 -5
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -191891,10 +191891,15 @@ async function main(client) {
|
|
191891
191891
|
project = await (0, project_settings_1.readProjectSettings)((0, path_1.join)(cwd, link_1.VERCEL_DIR));
|
191892
191892
|
}
|
191893
191893
|
// Delete output directory from potential previous build
|
191894
|
+
const defaultOutputDir = (0, path_1.join)(cwd, write_build_result_1.OUTPUT_DIR);
|
191894
191895
|
const outputDir = argv['--output']
|
191895
191896
|
? (0, path_1.resolve)(argv['--output'])
|
191896
|
-
:
|
191897
|
-
await
|
191897
|
+
: defaultOutputDir;
|
191898
|
+
await Promise.all([
|
191899
|
+
fs_extra_1.default.remove(outputDir),
|
191900
|
+
// Also delete `.vercel/output`, in case the script is targeting Build Output API directly
|
191901
|
+
outputDir !== defaultOutputDir ? fs_extra_1.default.remove(defaultOutputDir) : undefined,
|
191902
|
+
]);
|
191898
191903
|
const buildsJson = {
|
191899
191904
|
'//': 'This file was generated by the `vercel build` command. It is not part of the Build Output API.',
|
191900
191905
|
target,
|
@@ -192100,6 +192105,20 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
192100
192105
|
}
|
192101
192106
|
try {
|
192102
192107
|
const { builder, pkg: builderPkg } = builderWithPkg;
|
192108
|
+
for (const key of [
|
192109
|
+
'buildCommand',
|
192110
|
+
'installCommand',
|
192111
|
+
'outputDirectory',
|
192112
|
+
'nodeVersion',
|
192113
|
+
]) {
|
192114
|
+
const value = projectSettings[key];
|
192115
|
+
if (typeof value === 'string') {
|
192116
|
+
const envKey = `VERCEL_PROJECT_SETTINGS_` +
|
192117
|
+
key.replace(/[A-Z]/g, letter => `_${letter}`).toUpperCase();
|
192118
|
+
process.env[envKey] = value;
|
192119
|
+
output.debug(`Setting env ${envKey} to "${value}"`);
|
192120
|
+
}
|
192121
|
+
}
|
192103
192122
|
const buildConfig = isZeroConfig
|
192104
192123
|
? {
|
192105
192124
|
outputDirectory: projectSettings.outputDirectory ?? undefined,
|
@@ -200214,6 +200233,57 @@ async function installBuilders(buildersDir, buildersToAdd, output) {
|
|
200214
200233
|
}
|
200215
200234
|
|
200216
200235
|
|
200236
|
+
/***/ }),
|
200237
|
+
|
200238
|
+
/***/ 14556:
|
200239
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
200240
|
+
|
200241
|
+
"use strict";
|
200242
|
+
|
200243
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
200244
|
+
exports.merge = void 0;
|
200245
|
+
const path_1 = __webpack_require__(85622);
|
200246
|
+
const error_utils_1 = __webpack_require__(39799);
|
200247
|
+
const fs_extra_1 = __webpack_require__(36365);
|
200248
|
+
/**
|
200249
|
+
* Merge a directory into another directory. A `move` file operation is preferred,
|
200250
|
+
* falling back to a recursive `move` of contents within the source directory.
|
200251
|
+
*/
|
200252
|
+
async function merge(source, destination) {
|
200253
|
+
const destStat = await (0, fs_extra_1.stat)(destination).catch(err => err);
|
200254
|
+
if ((0, error_utils_1.isErrnoException)(destStat)) {
|
200255
|
+
if (destStat.code === 'ENOENT') {
|
200256
|
+
// Destination does not exist, so move directly
|
200257
|
+
await (0, fs_extra_1.move)(source, destination);
|
200258
|
+
return;
|
200259
|
+
}
|
200260
|
+
// Some other kind of error, bail
|
200261
|
+
throw destStat;
|
200262
|
+
}
|
200263
|
+
else if (destStat.isDirectory()) {
|
200264
|
+
// Destination is already a directory, so merge contents recursively
|
200265
|
+
const contents = await (0, fs_extra_1.readdir)(source).catch(err => err);
|
200266
|
+
if ((0, error_utils_1.isErrnoException)(contents)) {
|
200267
|
+
// If source is not a directory, then fall through to rm + move
|
200268
|
+
if (contents.code !== 'ENOTDIR') {
|
200269
|
+
// Any other error then bail
|
200270
|
+
throw contents;
|
200271
|
+
}
|
200272
|
+
}
|
200273
|
+
else {
|
200274
|
+
await Promise.all(contents.map(name => merge((0, path_1.join)(source, name), (0, path_1.join)(destination, name))));
|
200275
|
+
// Source should be empty at this point
|
200276
|
+
await (0, fs_extra_1.rmdir)(source);
|
200277
|
+
return;
|
200278
|
+
}
|
200279
|
+
}
|
200280
|
+
// Destination is not a directory, or dest is a dir + source is not, so overwrite
|
200281
|
+
await (0, fs_extra_1.remove)(destination);
|
200282
|
+
await (0, fs_extra_1.move)(source, destination);
|
200283
|
+
}
|
200284
|
+
exports.merge = merge;
|
200285
|
+
|
200286
|
+
|
200217
200287
|
/***/ }),
|
200218
200288
|
|
200219
200289
|
/***/ 21481:
|
@@ -200487,6 +200557,7 @@ const mime_types_1 = __importDefault(__webpack_require__(92981));
|
|
200487
200557
|
const path_1 = __webpack_require__(85622);
|
200488
200558
|
const build_utils_1 = __webpack_require__(63445);
|
200489
200559
|
const promisepipe_1 = __importDefault(__webpack_require__(79860));
|
200560
|
+
const merge_1 = __webpack_require__(14556);
|
200490
200561
|
const unzip_1 = __webpack_require__(37585);
|
200491
200562
|
const link_1 = __webpack_require__(49347);
|
200492
200563
|
const client_1 = __webpack_require__(40521);
|
@@ -200764,7 +200835,7 @@ async function mergeBuilderOutput(outputDir, buildResult) {
|
|
200764
200835
|
// so no need to do anything
|
200765
200836
|
return;
|
200766
200837
|
}
|
200767
|
-
await
|
200838
|
+
await (0, merge_1.merge)(buildResult.buildOutputPath, outputDir);
|
200768
200839
|
}
|
200769
200840
|
/**
|
200770
200841
|
* Attempts to return the file extension (i.e. `.html`) from the given
|
@@ -214588,7 +214659,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
214588
214659
|
/***/ ((module) => {
|
214589
214660
|
|
214590
214661
|
"use strict";
|
214591
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.
|
214662
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.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 --bail\",\"test-unit\":\"pnpm test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"pnpm test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"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\":\"6.1.0\",\"@vercel/go\":\"2.3.1\",\"@vercel/hydrogen\":\"0.0.47\",\"@vercel/next\":\"3.3.21\",\"@vercel/node\":\"2.9.0\",\"@vercel/python\":\"3.1.43\",\"@vercel/redwood\":\"1.0.54\",\"@vercel/remix\":\"1.2.10\",\"@vercel/ruby\":\"1.3.59\",\"@vercel/static-build\":\"1.3.2\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@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/ini\":\"1.3.31\",\"@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\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/qs\":\"6.9.7\",\"@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.3.5\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.3.0\",\"@vercel/fs-detectors\":\"3.7.8\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/routing-utils\":\"2.1.8\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"4.3.2\",\"ansi-regex\":\"5.0.1\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"boxen\":\"4.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"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\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jest-matcher-utils\":\"29.3.1\",\"json5\":\"2.2.1\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"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.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"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\":\"6.0.1\",\"stripe\":\"5.1.0\",\"supports-hyperlinks\":\"2.2.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\":\"10.9.1\",\"typescript\":\"4.9.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"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\"]}}");
|
214592
214663
|
|
214593
214664
|
/***/ }),
|
214594
214665
|
|
@@ -214596,7 +214667,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.14.1\",\"pref
|
|
214596
214667
|
/***/ ((module) => {
|
214597
214668
|
|
214598
214669
|
"use strict";
|
214599
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.
|
214670
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.5\",\"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\":\"pnpm 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\":\"pnpm test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.5\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"6.1.0\",\"@vercel/routing-utils\":\"2.1.8\",\"@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.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
|
214600
214671
|
|
214601
214672
|
/***/ }),
|
214602
214673
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.
|
3
|
+
"version": "28.15.0",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -41,16 +41,16 @@
|
|
41
41
|
"node": ">= 14"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
-
"@vercel/build-utils": "6.0
|
45
|
-
"@vercel/go": "2.3.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.3.
|
48
|
-
"@vercel/node": "2.
|
49
|
-
"@vercel/python": "3.1.
|
50
|
-
"@vercel/redwood": "1.0.
|
51
|
-
"@vercel/remix": "1.2.
|
52
|
-
"@vercel/ruby": "1.3.
|
53
|
-
"@vercel/static-build": "1.3.
|
44
|
+
"@vercel/build-utils": "6.1.0",
|
45
|
+
"@vercel/go": "2.3.1",
|
46
|
+
"@vercel/hydrogen": "0.0.47",
|
47
|
+
"@vercel/next": "3.3.21",
|
48
|
+
"@vercel/node": "2.9.0",
|
49
|
+
"@vercel/python": "3.1.43",
|
50
|
+
"@vercel/redwood": "1.0.54",
|
51
|
+
"@vercel/remix": "1.2.10",
|
52
|
+
"@vercel/ruby": "1.3.59",
|
53
|
+
"@vercel/static-build": "1.3.2"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@alex_neo/jest-expect-message": "1.0.5",
|
@@ -93,10 +93,10 @@
|
|
93
93
|
"@types/which": "1.3.2",
|
94
94
|
"@types/write-json-file": "2.2.1",
|
95
95
|
"@types/yauzl-promise": "2.1.0",
|
96
|
-
"@vercel/client": "12.3.
|
96
|
+
"@vercel/client": "12.3.5",
|
97
97
|
"@vercel/error-utils": "1.0.8",
|
98
98
|
"@vercel/frameworks": "1.3.0",
|
99
|
-
"@vercel/fs-detectors": "3.7.
|
99
|
+
"@vercel/fs-detectors": "3.7.8",
|
100
100
|
"@vercel/fun": "1.0.4",
|
101
101
|
"@vercel/ncc": "0.24.0",
|
102
102
|
"@vercel/routing-utils": "2.1.8",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "a4d16c681a7e85f64a2d78432d499c599b398bde"
|
199
199
|
}
|