vercel 28.4.0 → 28.4.1
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 +58 -21
- package/package.json +5 -5
package/dist/index.js
CHANGED
@@ -216527,25 +216527,25 @@ class DetectorFilesystem {
|
|
216527
216527
|
if (!p) {
|
216528
216528
|
p = this._readdir(dirPath);
|
216529
216529
|
this.readdirCache.set(dirPath, p);
|
216530
|
-
|
216531
|
-
|
216532
|
-
|
216533
|
-
|
216534
|
-
|
216535
|
-
|
216536
|
-
|
216537
|
-
|
216538
|
-
|
216530
|
+
}
|
216531
|
+
const directoryContent = await p;
|
216532
|
+
const directoryFiles = new Set();
|
216533
|
+
for (const file of directoryContent) {
|
216534
|
+
if (file.type === 'file') {
|
216535
|
+
// we know this file exists, mark it as so on the filesystem
|
216536
|
+
this.fileCache.set(file.path, Promise.resolve(true));
|
216537
|
+
this.pathCache.set(file.path, Promise.resolve(true));
|
216538
|
+
directoryFiles.add(file.name);
|
216539
216539
|
}
|
216540
|
-
|
216541
|
-
|
216542
|
-
|
216543
|
-
|
216544
|
-
|
216545
|
-
|
216546
|
-
|
216547
|
-
|
216548
|
-
|
216540
|
+
}
|
216541
|
+
if (options?.potentialFiles) {
|
216542
|
+
// calculate the set of paths that truly do not exist
|
216543
|
+
const filesThatDoNotExist = options.potentialFiles.filter(path => !directoryFiles.has(path));
|
216544
|
+
for (const filePath of filesThatDoNotExist) {
|
216545
|
+
const fullFilePath = dirPath === '/' ? filePath : path_1.posix.join(dirPath, filePath);
|
216546
|
+
// we know this file does not exist, mark it as so on the filesystem
|
216547
|
+
this.fileCache.set(fullFilePath, Promise.resolve(false));
|
216548
|
+
this.pathCache.set(fullFilePath, Promise.resolve(false));
|
216549
216549
|
}
|
216550
216550
|
}
|
216551
216551
|
return p;
|
@@ -216863,6 +216863,9 @@ async function getWorkspacePackagePaths({ fs, workspace, }) {
|
|
216863
216863
|
case 'nx':
|
216864
216864
|
results = await getNxWorkspacePackagePaths({ fs: workspaceFs });
|
216865
216865
|
break;
|
216866
|
+
case 'rush':
|
216867
|
+
results = await getRushWorkspacePackagePaths({ fs: workspaceFs });
|
216868
|
+
break;
|
216866
216869
|
default:
|
216867
216870
|
throw new Error(`Unknown workspace implementation: ${type}`);
|
216868
216871
|
}
|
@@ -216909,6 +216912,19 @@ async function getPnpmWorkspacePackagePaths({ fs, }) {
|
|
216909
216912
|
const { packages = [] } = js_yaml_1.default.load(pnpmWorkspaceAsBuffer.toString());
|
216910
216913
|
return getPackagePaths(packages, fs);
|
216911
216914
|
}
|
216915
|
+
async function getRushWorkspacePackagePaths({ fs, }) {
|
216916
|
+
const rushWorkspaceAsBuffer = await fs.readFile('rush.json');
|
216917
|
+
const { projects = [] } = JSON.parse(rushWorkspaceAsBuffer.toString());
|
216918
|
+
if (Array.isArray(projects)) {
|
216919
|
+
const packages = projects
|
216920
|
+
.filter(proj => proj.projectFolder)
|
216921
|
+
.map(project => project.projectFolder);
|
216922
|
+
return getPackagePaths(packages, fs);
|
216923
|
+
}
|
216924
|
+
else {
|
216925
|
+
return [];
|
216926
|
+
}
|
216927
|
+
}
|
216912
216928
|
//# sourceMappingURL=get-workspace-package-paths.js.map
|
216913
216929
|
|
216914
216930
|
/***/ }),
|
@@ -217030,6 +217046,17 @@ exports.workspaceManagers = [
|
|
217030
217046
|
],
|
217031
217047
|
},
|
217032
217048
|
},
|
217049
|
+
{
|
217050
|
+
name: 'rush',
|
217051
|
+
slug: 'rush',
|
217052
|
+
detectors: {
|
217053
|
+
every: [
|
217054
|
+
{
|
217055
|
+
path: 'rush.json',
|
217056
|
+
},
|
217057
|
+
],
|
217058
|
+
},
|
217059
|
+
},
|
217033
217060
|
{
|
217034
217061
|
name: 'default',
|
217035
217062
|
slug: 'yarn',
|
@@ -237188,7 +237215,10 @@ function getLastCommit(directory) {
|
|
237188
237215
|
}
|
237189
237216
|
function isDirty(directory, output) {
|
237190
237217
|
return new Promise(resolve => {
|
237191
|
-
|
237218
|
+
// note: we specify the `--no-optional-locks` git flag so that `git status`
|
237219
|
+
// does not perform any "optional" operations such as optimizing the index
|
237220
|
+
// in the background: https://git-scm.com/docs/git-status#_background_refresh
|
237221
|
+
(0, child_process_1.exec)('git --no-optional-locks status -s', { cwd: directory }, function (err, stdout, stderr) {
|
237192
237222
|
let debugMessage = `Failed to determine if Git repo has been modified:`;
|
237193
237223
|
if (err || stderr) {
|
237194
237224
|
if (err)
|
@@ -248282,6 +248312,13 @@ const path_1 = __webpack_require__(85622);
|
|
248282
248312
|
// Write the project configuration to `.vercel/project.json`
|
248283
248313
|
// that is needed for `vercel build` and `vercel dev` commands
|
248284
248314
|
async function writeProjectSettings(cwd, project, org) {
|
248315
|
+
let analyticsId;
|
248316
|
+
if (project.analytics?.id &&
|
248317
|
+
(!project.analytics.disabledAt ||
|
248318
|
+
(project.analytics.enabledAt &&
|
248319
|
+
project.analytics.enabledAt > project.analytics.disabledAt))) {
|
248320
|
+
analyticsId = project.analytics.id;
|
248321
|
+
}
|
248285
248322
|
const projectLinkAndSettings = {
|
248286
248323
|
projectId: project.id,
|
248287
248324
|
orgId: org.id,
|
@@ -248295,7 +248332,7 @@ async function writeProjectSettings(cwd, project, org) {
|
|
248295
248332
|
rootDirectory: project.rootDirectory,
|
248296
248333
|
directoryListing: project.directoryListing,
|
248297
248334
|
nodeVersion: project.nodeVersion,
|
248298
|
-
analyticsId
|
248335
|
+
analyticsId,
|
248299
248336
|
},
|
248300
248337
|
};
|
248301
248338
|
const path = (0, path_1.join)(cwd, link_1.VERCEL_DIR, link_1.VERCEL_DIR_PROJECT);
|
@@ -249310,7 +249347,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
249310
249347
|
/***/ ((module) => {
|
249311
249348
|
|
249312
249349
|
"use strict";
|
249313
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.
|
249350
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.4.1\",\"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/\",\"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\":\"5.4.4\",\"@vercel/go\":\"2.2.7\",\"@vercel/hydrogen\":\"0.0.20\",\"@vercel/next\":\"3.1.28\",\"@vercel/node\":\"2.5.17\",\"@vercel/python\":\"3.1.16\",\"@vercel/redwood\":\"1.0.25\",\"@vercel/remix\":\"1.0.26\",\"@vercel/ruby\":\"1.3.33\",\"@vercel/static-build\":\"1.0.25\",\"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\",\"@swc/core\":\"1.2.218\",\"@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/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.2.6\",\"@vercel/frameworks\":\"1.1.6\",\"@vercel/fs-detectors\":\"3.4.0\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@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\",\"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-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.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\":\"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\":\"10.9.1\",\"typescript\":\"4.7.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\"]}}");
|
249314
249351
|
|
249315
249352
|
/***/ }),
|
249316
249353
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.4.
|
3
|
+
"version": "28.4.1",
|
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
|
"@vercel/build-utils": "5.4.4",
|
45
45
|
"@vercel/go": "2.2.7",
|
46
46
|
"@vercel/hydrogen": "0.0.20",
|
47
|
-
"@vercel/next": "3.1.
|
48
|
-
"@vercel/node": "2.5.
|
47
|
+
"@vercel/next": "3.1.28",
|
48
|
+
"@vercel/node": "2.5.17",
|
49
49
|
"@vercel/python": "3.1.16",
|
50
50
|
"@vercel/redwood": "1.0.25",
|
51
51
|
"@vercel/remix": "1.0.26",
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"@types/yauzl-promise": "2.1.0",
|
98
98
|
"@vercel/client": "12.2.6",
|
99
99
|
"@vercel/frameworks": "1.1.6",
|
100
|
-
"@vercel/fs-detectors": "3.
|
100
|
+
"@vercel/fs-detectors": "3.4.0",
|
101
101
|
"@vercel/fun": "1.0.4",
|
102
102
|
"@vercel/ncc": "0.24.0",
|
103
103
|
"@zeit/source-map-support": "0.6.2",
|
@@ -193,5 +193,5 @@
|
|
193
193
|
"<rootDir>/test/**/*.test.ts"
|
194
194
|
]
|
195
195
|
},
|
196
|
-
"gitHead": "
|
196
|
+
"gitHead": "51d968314f5914138defa2a9fe724324d53efdd1"
|
197
197
|
}
|