vercel 25.1.1-canary.1 → 25.1.1-canary.10
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 +23 -8
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -231159,6 +231159,7 @@ const help = () => {
|
|
231159
231159
|
-A ${chalk_1.default.bold.underline('FILE')}, --local-config=${chalk_1.default.bold.underline('FILE')} Path to the local ${'`vercel.json`'} file
|
231160
231160
|
-Q ${chalk_1.default.bold.underline('DIR')}, --global-config=${chalk_1.default.bold.underline('DIR')} Path to the global ${'`.vercel`'} directory
|
231161
231161
|
--cwd [path] The current working directory
|
231162
|
+
--output [path] Directory where built assets should be written to
|
231162
231163
|
--prod Build a production deployment
|
231163
231164
|
-d, --debug Debug mode [off]
|
231164
231165
|
-y, --yes Skip the confirmation prompt
|
@@ -231185,6 +231186,7 @@ async function main(client) {
|
|
231185
231186
|
// Parse CLI args
|
231186
231187
|
const argv = get_args_1.default(client.argv.slice(2), {
|
231187
231188
|
'--cwd': String,
|
231189
|
+
'--output': String,
|
231188
231190
|
'--prod': Boolean,
|
231189
231191
|
'--yes': Boolean,
|
231190
231192
|
});
|
@@ -231324,7 +231326,9 @@ async function main(client) {
|
|
231324
231326
|
filesMap[path] = new build_utils_1.FileFsRef({ mode, fsPath });
|
231325
231327
|
}
|
231326
231328
|
// Delete output directory from potential previous build
|
231327
|
-
const outputDir =
|
231329
|
+
const outputDir = argv['--output']
|
231330
|
+
? path_1.resolve(argv['--output'])
|
231331
|
+
: path_1.join(cwd, write_build_result_1.OUTPUT_DIR);
|
231328
231332
|
await fs_extra_1.default.remove(outputDir);
|
231329
231333
|
const buildStamp = stamp_1.default();
|
231330
231334
|
// Create fresh new output directory
|
@@ -231334,6 +231338,7 @@ async function main(client) {
|
|
231334
231338
|
ops.push(fs_extra_1.default.writeJSON(path_1.join(outputDir, 'builds.json'), {
|
231335
231339
|
'//': 'This file was generated by the `vercel build` command. It is not part of the Build Output API.',
|
231336
231340
|
target,
|
231341
|
+
argv: process.argv,
|
231337
231342
|
builds: builds.map(build => {
|
231338
231343
|
const builderWithPkg = buildersWithPkgs.get(build.use);
|
231339
231344
|
if (!builderWithPkg) {
|
@@ -231342,6 +231347,7 @@ async function main(client) {
|
|
231342
231347
|
const { builder, pkg: builderPkg } = builderWithPkg;
|
231343
231348
|
return {
|
231344
231349
|
require: builderPkg.name,
|
231350
|
+
requirePath: builderWithPkg.path,
|
231345
231351
|
apiVersion: builder.version,
|
231346
231352
|
...build,
|
231347
231353
|
};
|
@@ -231469,7 +231475,8 @@ async function main(client) {
|
|
231469
231475
|
overrides: mergedOverrides,
|
231470
231476
|
};
|
231471
231477
|
await fs_extra_1.default.writeJSON(path_1.join(outputDir, 'config.json'), config, { spaces: 2 });
|
231472
|
-
|
231478
|
+
const relOutputDir = path_1.relative(cwd, outputDir);
|
231479
|
+
output.print(`${emoji_1.prependEmoji(`Build Completed in ${chalk_1.default.bold(relOutputDir.startsWith('..') ? outputDir : relOutputDir)} ${chalk_1.default.gray(buildStamp())}`, emoji_1.emoji('success'))}\n`);
|
231473
231480
|
return 0;
|
231474
231481
|
}
|
231475
231482
|
exports.default = main;
|
@@ -232922,9 +232929,11 @@ async function dev(client, opts, args) {
|
|
232922
232929
|
// v3 Build Output because it will incorrectly be detected by
|
232923
232930
|
// @vercel/static-build in BuildOutputV3.getBuildOutputDirectory()
|
232924
232931
|
if (!devCommand) {
|
232925
|
-
output.log(`Removing ${write_build_result_1.OUTPUT_DIR}`);
|
232926
232932
|
const outputDir = path_1.join(cwd, write_build_result_1.OUTPUT_DIR);
|
232927
|
-
await fs_extra_1.default.
|
232933
|
+
if (await fs_extra_1.default.pathExists(outputDir)) {
|
232934
|
+
output.log(`Removing ${write_build_result_1.OUTPUT_DIR}`);
|
232935
|
+
await fs_extra_1.default.remove(outputDir);
|
232936
|
+
}
|
232928
232937
|
}
|
232929
232938
|
const devServer = new server_1.default(cwd, {
|
232930
232939
|
output,
|
@@ -251022,8 +251031,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
251022
251031
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
251023
251032
|
};
|
251024
251033
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
251025
|
-
const
|
251026
|
-
const
|
251034
|
+
const fs_1 = __importDefault(__webpack_require__(35747));
|
251035
|
+
const path_1 = __webpack_require__(85622);
|
251036
|
+
let rootDir = __dirname;
|
251037
|
+
while (!fs_1.default.existsSync(path_1.join(rootDir, 'package.json'))) {
|
251038
|
+
rootDir = path_1.join(rootDir, '..');
|
251039
|
+
}
|
251040
|
+
const pkgPath = path_1.join(rootDir, 'package.json');
|
251041
|
+
const pkg = JSON.parse(fs_1.default.readFileSync(pkgPath, 'utf8'));
|
251027
251042
|
exports.default = pkg;
|
251028
251043
|
|
251029
251044
|
|
@@ -252413,7 +252428,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
252413
252428
|
/***/ ((module) => {
|
252414
252429
|
|
252415
252430
|
"use strict";
|
252416
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"25.1.1-canary.
|
252431
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"25.1.1-canary.10\",\"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.1\",\"@vercel/go\":\"2.0.2-canary.1\",\"@vercel/next\":\"3.0.5-canary.0\",\"@vercel/node\":\"2.2.1-canary.1\",\"@vercel/python\":\"3.0.2-canary.1\",\"@vercel/redwood\":\"1.0.2-canary.1\",\"@vercel/remix\":\"1.0.2-canary.1\",\"@vercel/ruby\":\"1.3.10-canary.1\",\"@vercel/static-build\":\"1.0.2-canary.1\",\"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/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\":\"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.1\",\"@vercel/frameworks\":\"1.0.2-canary.0\",\"@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\",\"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\",\"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\":\"b8b87b96da49fff38435d1e6ae123a721c8d7a4b\"}");
|
252417
252432
|
|
252418
252433
|
/***/ }),
|
252419
252434
|
|
@@ -252429,7 +252444,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
252429
252444
|
/***/ ((module) => {
|
252430
252445
|
|
252431
252446
|
"use strict";
|
252432
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.0.2-canary.1\",\"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.1\",\"@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\"}
|
252447
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.0.2-canary.1\",\"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.1\",\"@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\"}}");
|
252433
252448
|
|
252434
252449
|
/***/ }),
|
252435
252450
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "25.1.1-canary.
|
3
|
+
"version": "25.1.1-canary.10",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -44,8 +44,8 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@vercel/build-utils": "4.1.1-canary.1",
|
46
46
|
"@vercel/go": "2.0.2-canary.1",
|
47
|
-
"@vercel/next": "3.0.
|
48
|
-
"@vercel/node": "2.
|
47
|
+
"@vercel/next": "3.0.5-canary.0",
|
48
|
+
"@vercel/node": "2.2.1-canary.1",
|
49
49
|
"@vercel/python": "3.0.2-canary.1",
|
50
50
|
"@vercel/redwood": "1.0.2-canary.1",
|
51
51
|
"@vercel/remix": "1.0.2-canary.1",
|
@@ -194,5 +194,5 @@
|
|
194
194
|
"<rootDir>/test/**/*.test.ts"
|
195
195
|
]
|
196
196
|
},
|
197
|
-
"gitHead": "
|
197
|
+
"gitHead": "b8b87b96da49fff38435d1e6ae123a721c8d7a4b"
|
198
198
|
}
|