vercel 27.0.1 → 27.0.2
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 +12 -23
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -220121,12 +220121,13 @@ async function matches(fs, framework) {
|
|
220121
220121
|
return result.every(res => res === true);
|
220122
220122
|
}
|
220123
220123
|
async function detectFramework({ fs, frameworkList, }) {
|
220124
|
-
|
220125
|
-
if (await matches(fs,
|
220126
|
-
return
|
220124
|
+
const result = await Promise.all(frameworkList.map(async (frameworkMatch) => {
|
220125
|
+
if (await matches(fs, frameworkMatch)) {
|
220126
|
+
return frameworkMatch.slug;
|
220127
220127
|
}
|
220128
|
-
|
220129
|
-
|
220128
|
+
return null;
|
220129
|
+
}));
|
220130
|
+
return result.find(res => res !== null) ?? null;
|
220130
220131
|
}
|
220131
220132
|
exports.detectFramework = detectFramework;
|
220132
220133
|
//# sourceMappingURL=detect-framework.js.map
|
@@ -230957,8 +230958,7 @@ async function main(client) {
|
|
230957
230958
|
const buildResults = new Map();
|
230958
230959
|
const overrides = [];
|
230959
230960
|
const repoRootPath = cwd;
|
230960
|
-
const
|
230961
|
-
const corepackShimDir = await corepack_1.initCorepack({ cwd, rootPackageJsonPath });
|
230961
|
+
const corepackShimDir = await corepack_1.initCorepack({ repoRootPath });
|
230962
230962
|
for (const build of builds) {
|
230963
230963
|
if (typeof build.src !== 'string')
|
230964
230964
|
continue;
|
@@ -237542,7 +237542,7 @@ const main = async () => {
|
|
237542
237542
|
// * a subcommand (as in: `vercel ls`)
|
237543
237543
|
const targetOrSubcommand = argv._[2];
|
237544
237544
|
// Currently no beta commands - add here as needed
|
237545
|
-
const betaCommands = [
|
237545
|
+
const betaCommands = [];
|
237546
237546
|
if (betaCommands.includes(targetOrSubcommand)) {
|
237547
237547
|
console.log(`${chalk_1.default.grey(`${pkg_name_1.getTitleName()} CLI ${pkg_1.default.version} ${targetOrSubcommand} (beta) — https://vercel.com/feedback`)}`);
|
237548
237548
|
}
|
@@ -238422,13 +238422,13 @@ const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
|
238422
238422
|
const errors_ts_1 = __webpack_require__(60156);
|
238423
238423
|
const link_1 = __webpack_require__(67630);
|
238424
238424
|
const read_json_file_1 = __importDefault(__webpack_require__(16898));
|
238425
|
-
async function initCorepack({
|
238425
|
+
async function initCorepack({ repoRootPath, }) {
|
238426
238426
|
if (process.env.ENABLE_EXPERIMENTAL_COREPACK !== '1') {
|
238427
238427
|
// Since corepack is experimental, we need to exit early
|
238428
238428
|
// unless the user explicitly enables it with the env var.
|
238429
238429
|
return null;
|
238430
238430
|
}
|
238431
|
-
const pkg = await read_json_file_1.default(path_1.join(
|
238431
|
+
const pkg = await read_json_file_1.default(path_1.join(repoRootPath, 'package.json'));
|
238432
238432
|
if (pkg instanceof errors_ts_1.CantParseJSONFile) {
|
238433
238433
|
console.warn('Warning: Could not enable corepack because package.json is invalid JSON');
|
238434
238434
|
}
|
@@ -238437,16 +238437,13 @@ async function initCorepack({ cwd, rootPackageJsonPath, }) {
|
|
238437
238437
|
}
|
238438
238438
|
else {
|
238439
238439
|
console.log(`Detected ENABLE_EXPERIMENTAL_COREPACK=1 and "${pkg.packageManager}" in package.json`);
|
238440
|
-
const corepackRootDir = path_1.join(
|
238440
|
+
const corepackRootDir = path_1.join(repoRootPath, link_1.VERCEL_DIR, 'cache', 'corepack');
|
238441
238441
|
const corepackHomeDir = path_1.join(corepackRootDir, 'home');
|
238442
238442
|
const corepackShimDir = path_1.join(corepackRootDir, 'shim');
|
238443
238443
|
await fs_extra_1.default.mkdirp(corepackHomeDir);
|
238444
238444
|
await fs_extra_1.default.mkdirp(corepackShimDir);
|
238445
238445
|
process.env.COREPACK_HOME = corepackHomeDir;
|
238446
238446
|
process.env.PATH = `${corepackShimDir}${path_1.delimiter}${process.env.PATH}`;
|
238447
|
-
process.env.DEBUG = process.env.DEBUG
|
238448
|
-
? `corepack,${process.env.DEBUG}`
|
238449
|
-
: 'corepack';
|
238450
238447
|
const pkgManagerName = pkg.packageManager.split('@')[0];
|
238451
238448
|
// We must explicitly call `corepack enable npm` since `corepack enable`
|
238452
238449
|
// doesn't work with npm. See https://github.com/nodejs/corepack/pull/24
|
@@ -238470,14 +238467,6 @@ function cleanupCorepack(corepackShimDir) {
|
|
238470
238467
|
if (process.env.PATH) {
|
238471
238468
|
process.env.PATH = process.env.PATH.replace(`${corepackShimDir}${path_1.delimiter}`, '');
|
238472
238469
|
}
|
238473
|
-
if (process.env.DEBUG) {
|
238474
|
-
if (process.env.DEBUG === 'corepack') {
|
238475
|
-
delete process.env.DEBUG;
|
238476
|
-
}
|
238477
|
-
else {
|
238478
|
-
process.env.DEBUG = process.env.DEBUG.replace('corepack,', '');
|
238479
|
-
}
|
238480
|
-
}
|
238481
238470
|
}
|
238482
238471
|
exports.cleanupCorepack = cleanupCorepack;
|
238483
238472
|
|
@@ -252287,7 +252276,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
252287
252276
|
/***/ ((module) => {
|
252288
252277
|
|
252289
252278
|
"use strict";
|
252290
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.0.
|
252279
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"27.0.2\",\"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\":\"5.0.1\",\"@vercel/go\":\"2.0.5\",\"@vercel/hydrogen\":\"0.0.2\",\"@vercel/next\":\"3.1.4\",\"@vercel/node\":\"2.4.2\",\"@vercel/python\":\"3.0.5\",\"@vercel/redwood\":\"1.0.6\",\"@vercel/remix\":\"1.0.7\",\"@vercel/ruby\":\"1.3.13\",\"@vercel/static-build\":\"1.0.5\",\"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.1.0\",\"@vercel/frameworks\":\"1.1.0\",\"@vercel/fs-detectors\":\"1.0.2\",\"@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\",\"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\":\"fb4f4773253a6307e385ea582a94b1aa85781dc9\"}");
|
252291
252280
|
|
252292
252281
|
/***/ }),
|
252293
252282
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "27.0.
|
3
|
+
"version": "27.0.2",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@vercel/go": "2.0.5",
|
47
47
|
"@vercel/hydrogen": "0.0.2",
|
48
48
|
"@vercel/next": "3.1.4",
|
49
|
-
"@vercel/node": "2.4.
|
49
|
+
"@vercel/node": "2.4.2",
|
50
50
|
"@vercel/python": "3.0.5",
|
51
51
|
"@vercel/redwood": "1.0.6",
|
52
52
|
"@vercel/remix": "1.0.7",
|
@@ -98,7 +98,7 @@
|
|
98
98
|
"@types/yauzl-promise": "2.1.0",
|
99
99
|
"@vercel/client": "12.1.0",
|
100
100
|
"@vercel/frameworks": "1.1.0",
|
101
|
-
"@vercel/fs-detectors": "1.0.
|
101
|
+
"@vercel/fs-detectors": "1.0.2",
|
102
102
|
"@vercel/ncc": "0.24.0",
|
103
103
|
"@zeit/fun": "0.11.2",
|
104
104
|
"@zeit/source-map-support": "0.6.2",
|
@@ -195,5 +195,5 @@
|
|
195
195
|
"<rootDir>/test/**/*.test.ts"
|
196
196
|
]
|
197
197
|
},
|
198
|
-
"gitHead": "
|
198
|
+
"gitHead": "fb4f4773253a6307e385ea582a94b1aa85781dc9"
|
199
199
|
}
|