vercel 23.1.3-canary.32 → 23.1.3-canary.33
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 +22 -24
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -249680,16 +249680,16 @@ async function main(client) {
|
|
249680
249680
|
return 1;
|
249681
249681
|
}
|
249682
249682
|
const buildState = { ...project.settings };
|
249683
|
-
|
249684
|
-
|
249683
|
+
console.log(`Retrieved Project Settings:`);
|
249684
|
+
console.log(chalk_1.default.dim(` - ${chalk_1.default.bold(`Framework Preset:`)} ${framework.name}`));
|
249685
249685
|
for (let field of fields) {
|
249686
249686
|
const defaults = framework.settings[field.value];
|
249687
249687
|
if (defaults) {
|
249688
|
-
|
249688
|
+
console.log(chalk_1.default.dim(` - ${chalk_1.default.bold(`${field.name}:`)} ${`${project.settings[field.value]
|
249689
249689
|
? project.settings[field.value] + ` (override)`
|
249690
249690
|
: is_setting_value_1.isSettingValue(defaults)
|
249691
249691
|
? defaults.value
|
249692
|
-
: chalk_1.default.italic(`${defaults.placeholder}`)}`}
|
249692
|
+
: chalk_1.default.italic(`${defaults.placeholder}`)}`}`));
|
249693
249693
|
}
|
249694
249694
|
if (field.value != 'buildCommand') {
|
249695
249695
|
buildState[field.value] = project.settings[field.value]
|
@@ -249702,9 +249702,9 @@ async function main(client) {
|
|
249702
249702
|
}
|
249703
249703
|
}
|
249704
249704
|
if (loadedEnvFiles.length > 0) {
|
249705
|
-
|
249705
|
+
console.log(`Loaded Environment Variables from ${loadedEnvFiles.length} ${pluralize_1.default('file', loadedEnvFiles.length)}:`);
|
249706
249706
|
for (let envFile of loadedEnvFiles) {
|
249707
|
-
|
249707
|
+
console.log(chalk_1.default.dim(` - ${envFile.path}`));
|
249708
249708
|
}
|
249709
249709
|
}
|
249710
249710
|
// Load plugins
|
@@ -249730,10 +249730,10 @@ async function main(client) {
|
|
249730
249730
|
return logger(...args);
|
249731
249731
|
};
|
249732
249732
|
if ((plugins === null || plugins === void 0 ? void 0 : plugins.pluginCount) && (plugins === null || plugins === void 0 ? void 0 : plugins.pluginCount) > 0) {
|
249733
|
-
|
249733
|
+
console.log(`Loaded ${plugins.pluginCount} CLI ${pluralize_1.default('Plugin', plugins.pluginCount)}`);
|
249734
249734
|
// preBuild Plugins
|
249735
249735
|
if (plugins.preBuildPlugins.length > 0) {
|
249736
|
-
|
249736
|
+
console.log(`Running ${plugins.pluginCount} CLI ${pluralize_1.default('Plugin', plugins.pluginCount)} before Build Command:`);
|
249737
249737
|
for (let item of plugins.preBuildPlugins) {
|
249738
249738
|
const { name, plugin, color } = item;
|
249739
249739
|
if (typeof plugin.preBuild === 'function') {
|
@@ -249763,7 +249763,7 @@ async function main(client) {
|
|
249763
249763
|
// Clean the output directory
|
249764
249764
|
fs_extra_1.default.removeSync(path_1.join(cwd, OUTPUT_DIR));
|
249765
249765
|
if (typeof buildState.buildCommand === 'string') {
|
249766
|
-
|
249766
|
+
console.log(`Running Build Command: ${cmd_1.default(buildState.buildCommand)}`);
|
249767
249767
|
await build_utils_1.execCommand(buildState.buildCommand, {
|
249768
249768
|
...spawnOpts,
|
249769
249769
|
// Yarn v2 PnP mode may be activated, so force
|
@@ -249814,7 +249814,7 @@ async function main(client) {
|
|
249814
249814
|
? path_1.join(cwd, outputDir, path_1.relative(cwd, f))
|
249815
249815
|
: f.replace(distDir, outputDir))));
|
249816
249816
|
client.output.stopSpinner();
|
249817
|
-
|
249817
|
+
console.log(`Copied ${files.length.toLocaleString()} files from ${param_1.default(distDir)} to ${param_1.default(outputDir)} ${copyStamp()}`);
|
249818
249818
|
const buildManifestPath = path_1.join(cwd, OUTPUT_DIR, 'build-manifest.json');
|
249819
249819
|
const routesManifestPath = path_1.join(cwd, OUTPUT_DIR, 'routes-manifest.json');
|
249820
249820
|
if (!fs_extra_1.default.existsSync(buildManifestPath)) {
|
@@ -249972,7 +249972,7 @@ async function main(client) {
|
|
249972
249972
|
}
|
249973
249973
|
// Build Plugins
|
249974
249974
|
if ((plugins === null || plugins === void 0 ? void 0 : plugins.buildPlugins) && plugins.buildPlugins.length > 0) {
|
249975
|
-
|
249975
|
+
console.log(`Running ${plugins.pluginCount} CLI ${pluralize_1.default('Plugin', plugins.pluginCount)} after Build Command:`);
|
249976
249976
|
for (let item of plugins.buildPlugins) {
|
249977
249977
|
const { name, plugin, color } = item;
|
249978
249978
|
if (typeof plugin.build === 'function') {
|
@@ -250000,7 +250000,7 @@ async function main(client) {
|
|
250000
250000
|
}
|
250001
250001
|
}
|
250002
250002
|
}
|
250003
|
-
|
250003
|
+
console.log(`${emoji_1.prependEmoji(`Build Completed in ${chalk_1.default.bold(OUTPUT_DIR)} ${chalk_1.default.gray(buildStamp())}`, emoji_1.emoji('success'))}`);
|
250004
250004
|
return 0;
|
250005
250005
|
}
|
250006
250006
|
exports.default = main;
|
@@ -250028,9 +250028,9 @@ async function runPackageJsonScript(client, destPath, scriptNames, spawnOpts) {
|
|
250028
250028
|
env.YARN_NODE_LINKER = 'node-modules';
|
250029
250029
|
}
|
250030
250030
|
}
|
250031
|
-
|
250031
|
+
console.log(`Running Build Command: ${cmd_1.default(opts.prettyCommand)}\n`);
|
250032
250032
|
await build_utils_1.spawnAsync(cliType, ['run', scriptName], opts);
|
250033
|
-
|
250033
|
+
console.log(); // give it some room
|
250034
250034
|
client.output.debug(`Script complete [${Date.now() - runScriptTime}ms]`);
|
250035
250035
|
return true;
|
250036
250036
|
}
|
@@ -256350,15 +256350,13 @@ const main = async () => {
|
|
256350
256350
|
// * a path to deploy (as in: `vercel path/`)
|
256351
256351
|
// * a subcommand (as in: `vercel ls`)
|
256352
256352
|
const targetOrSubcommand = argv._[2];
|
256353
|
-
|
256354
|
-
|
256355
|
-
|
256356
|
-
|
256357
|
-
|
256358
|
-
|
256359
|
-
|
256360
|
-
? ' — https://vercel.com/feedback'
|
256361
|
-
: ''}`)}\n`);
|
256353
|
+
const isBuildOrDev = targetOrSubcommand === 'build' || targetOrSubcommand === 'dev';
|
256354
|
+
if (isBuildOrDev) {
|
256355
|
+
console.log(`${chalk_1.default.grey(`${pkg_name_1.getTitleName()} CLI ${pkg_1.default.version} ${targetOrSubcommand} (beta) — https://vercel.com/feedback`)}`);
|
256356
|
+
}
|
256357
|
+
else {
|
256358
|
+
output.print(`${chalk_1.default.grey(`${pkg_name_1.getTitleName()} CLI ${pkg_1.default.version}${isCanary ? ' — https://vercel.com/feedback' : ''}`)}\n`);
|
256359
|
+
}
|
256362
256360
|
// Handle `--version` directly
|
256363
256361
|
if (!targetOrSubcommand && argv['--version']) {
|
256364
256362
|
console.log(pkg_1.default.version);
|
@@ -270274,7 +270272,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270274
270272
|
/***/ ((module) => {
|
270275
270273
|
|
270276
270274
|
"use strict";
|
270277
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270275
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.33\",\"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.18\",\"@vercel/go\":\"1.2.4-canary.4\",\"@vercel/node\":\"1.12.2-canary.6\",\"@vercel/python\":\"2.0.6-canary.5\",\"@vercel/ruby\":\"1.2.8-canary.4\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.7\",\"vercel-plugin-node\":\"1.12.2-canary.9\"},\"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.11\",\"@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\":\"43056bde1f65ad48c3c1aeeab56eb5f66e2e66f8\"}");
|
270278
270276
|
|
270279
270277
|
/***/ }),
|
270280
270278
|
|
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.33",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -184,5 +184,5 @@
|
|
184
184
|
"<rootDir>/test/**/*.test.ts"
|
185
185
|
]
|
186
186
|
},
|
187
|
-
"gitHead": "
|
187
|
+
"gitHead": "43056bde1f65ad48c3c1aeeab56eb5f66e2e66f8"
|
188
188
|
}
|