vercel 28.15.0 → 28.15.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 +41 -12
- package/package.json +14 -14
package/dist/index.js
CHANGED
@@ -189252,13 +189252,25 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
189252
189252
|
if (!hasBuildPipeline) {
|
189253
189253
|
throw new MissingBuildPipeline();
|
189254
189254
|
}
|
189255
|
+
if (projectPath === '/') {
|
189256
|
+
return {
|
189257
|
+
monorepoManager: 'turbo',
|
189258
|
+
buildCommand: 'npx turbo run build',
|
189259
|
+
installCommand: packageManager ? `${packageManager} install` : null,
|
189260
|
+
commandForIgnoringBuildStep: 'npx turbo-ignore',
|
189261
|
+
};
|
189262
|
+
}
|
189255
189263
|
return {
|
189256
189264
|
monorepoManager: 'turbo',
|
189257
|
-
buildCommand:
|
189265
|
+
buildCommand: projectPath
|
189266
|
+
? `cd ${relativeToRoot} && npx turbo run build --filter={${projectPath}}...`
|
189267
|
+
: null,
|
189258
189268
|
installCommand: packageManager === 'npm'
|
189259
189269
|
? `${packageManager} install --prefix=${relativeToRoot}`
|
189260
|
-
:
|
189261
|
-
|
189270
|
+
: packageManager
|
189271
|
+
? `${packageManager} install`
|
189272
|
+
: null,
|
189273
|
+
commandForIgnoringBuildStep: 'npx turbo-ignore',
|
189262
189274
|
};
|
189263
189275
|
}
|
189264
189276
|
else if (monorepoManager === 'nx') {
|
@@ -189293,12 +189305,23 @@ async function getMonorepoDefaultSettings(projectName, projectPath, relativeToRo
|
|
189293
189305
|
throw new MissingBuildTarget();
|
189294
189306
|
}
|
189295
189307
|
}
|
189308
|
+
if (projectPath === '/') {
|
189309
|
+
return {
|
189310
|
+
monorepoManager: 'nx',
|
189311
|
+
buildCommand: 'npx nx build',
|
189312
|
+
installCommand: packageManager ? `${packageManager} install` : null,
|
189313
|
+
};
|
189314
|
+
}
|
189296
189315
|
return {
|
189297
189316
|
monorepoManager: 'nx',
|
189298
|
-
buildCommand:
|
189317
|
+
buildCommand: projectName
|
189318
|
+
? `cd ${relativeToRoot} && npx nx build ${projectName}`
|
189319
|
+
: null,
|
189299
189320
|
installCommand: packageManager === 'npm'
|
189300
189321
|
? `${packageManager} install --prefix=${relativeToRoot}`
|
189301
|
-
:
|
189322
|
+
: packageManager
|
189323
|
+
? `${packageManager} install`
|
189324
|
+
: null,
|
189302
189325
|
};
|
189303
189326
|
}
|
189304
189327
|
// TODO (@Ethan-Arrowood) - Revisit rush support when we can test it better
|
@@ -200318,8 +200341,12 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
|
|
200318
200341
|
}
|
200319
200342
|
const { monorepoManager, ...commands } = result;
|
200320
200343
|
output.log(`Automatically detected ${(0, title_1.default)(monorepoManager)} monorepo manager. Attempting to assign default settings.`);
|
200321
|
-
|
200322
|
-
|
200344
|
+
if (commands.buildCommand) {
|
200345
|
+
setCommand('buildCommand', commands.buildCommand);
|
200346
|
+
}
|
200347
|
+
if (commands.installCommand) {
|
200348
|
+
setCommand('installCommand', commands.installCommand);
|
200349
|
+
}
|
200323
200350
|
if (commands.commandForIgnoringBuildStep) {
|
200324
200351
|
setCommand('commandForIgnoringBuildStep', commands.commandForIgnoringBuildStep);
|
200325
200352
|
}
|
@@ -200787,11 +200814,13 @@ async function writeLambda(outputDir, lambda, path, functionConfiguration, lambd
|
|
200787
200814
|
else {
|
200788
200815
|
throw new Error('Malformed `Lambda` - no "files" present');
|
200789
200816
|
}
|
200817
|
+
const cron = functionConfiguration?.cron ?? lambda.cron;
|
200790
200818
|
const memory = functionConfiguration?.memory ?? lambda.memory;
|
200791
200819
|
const maxDuration = functionConfiguration?.maxDuration ?? lambda.maxDuration;
|
200792
200820
|
const config = {
|
200793
200821
|
...lambda,
|
200794
200822
|
handler: (0, build_utils_1.normalizePath)(lambda.handler),
|
200823
|
+
cron,
|
200795
200824
|
memory,
|
200796
200825
|
maxDuration,
|
200797
200826
|
type: undefined,
|
@@ -203236,7 +203265,7 @@ exports.default = isURL;
|
|
203236
203265
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
203237
203266
|
const mime_types_1 = __webpack_require__(92981);
|
203238
203267
|
function getMimeType(fileName) {
|
203239
|
-
return (0, mime_types_1.
|
203268
|
+
return (0, mime_types_1.contentType)(fileName) || 'application/octet-stream';
|
203240
203269
|
}
|
203241
203270
|
exports.default = getMimeType;
|
203242
203271
|
|
@@ -204990,11 +205019,11 @@ class DevServer {
|
|
204990
205019
|
body = `${json}\n`;
|
204991
205020
|
}
|
204992
205021
|
else if (accept.includes('html')) {
|
204993
|
-
res.setHeader('content-type', 'text/html');
|
205022
|
+
res.setHeader('content-type', 'text/html; charset=utf-8');
|
204994
205023
|
body = (0, redirect_1.default)({ location, statusCode });
|
204995
205024
|
}
|
204996
205025
|
else {
|
204997
|
-
res.setHeader('content-type', 'text/plain');
|
205026
|
+
res.setHeader('content-type', 'text/plain; charset=utf-8');
|
204998
205027
|
body = `Redirecting to ${location} (${statusCode})\n`;
|
204999
205028
|
}
|
205000
205029
|
res.end(body);
|
@@ -214659,7 +214688,7 @@ module.exports = JSON.parse("[[[0,44],\"disallowed_STD3_valid\"],[[45,46],\"vali
|
|
214659
214688
|
/***/ ((module) => {
|
214660
214689
|
|
214661
214690
|
"use strict";
|
214662
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.
|
214691
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.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 --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.2.0\",\"@vercel/go\":\"2.3.2\",\"@vercel/hydrogen\":\"0.0.48\",\"@vercel/next\":\"3.4.0\",\"@vercel/node\":\"2.9.1\",\"@vercel/python\":\"3.1.44\",\"@vercel/redwood\":\"1.1.0\",\"@vercel/remix\":\"1.2.11\",\"@vercel/ruby\":\"1.3.60\",\"@vercel/static-build\":\"1.3.3\"},\"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.6\",\"@vercel/error-utils\":\"1.0.8\",\"@vercel/frameworks\":\"1.3.0\",\"@vercel/fs-detectors\":\"3.7.9\",\"@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\"]}}");
|
214663
214692
|
|
214664
214693
|
/***/ }),
|
214665
214694
|
|
@@ -214667,7 +214696,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.15.0\",\"pref
|
|
214667
214696
|
/***/ ((module) => {
|
214668
214697
|
|
214669
214698
|
"use strict";
|
214670
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.
|
214699
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.3.6\",\"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.2.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\"}}");
|
214671
214700
|
|
214672
214701
|
/***/ }),
|
214673
214702
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "28.15.
|
3
|
+
"version": "28.15.1",
|
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.
|
45
|
-
"@vercel/go": "2.3.
|
46
|
-
"@vercel/hydrogen": "0.0.
|
47
|
-
"@vercel/next": "3.
|
48
|
-
"@vercel/node": "2.9.
|
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.2.0",
|
45
|
+
"@vercel/go": "2.3.2",
|
46
|
+
"@vercel/hydrogen": "0.0.48",
|
47
|
+
"@vercel/next": "3.4.0",
|
48
|
+
"@vercel/node": "2.9.1",
|
49
|
+
"@vercel/python": "3.1.44",
|
50
|
+
"@vercel/redwood": "1.1.0",
|
51
|
+
"@vercel/remix": "1.2.11",
|
52
|
+
"@vercel/ruby": "1.3.60",
|
53
|
+
"@vercel/static-build": "1.3.3"
|
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.6",
|
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.9",
|
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": "a585969dd3b77a4ed36d6a2ca11b34f9050489f1"
|
199
199
|
}
|