vercel 23.1.3-canary.25 → 23.1.3-canary.26
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 +21 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -249499,6 +249499,8 @@ async function main(client) {
|
|
249499
249499
|
}
|
249500
249500
|
project = await project_settings_1.readProjectSettings(path_1.join(cwd, link_1.VERCEL_DIR));
|
249501
249501
|
}
|
249502
|
+
// If `rootDirectory` exists, then `baseDir` will be the repo's root directory.
|
249503
|
+
const baseDir = cwd;
|
249502
249504
|
cwd = project.settings.rootDirectory
|
249503
249505
|
? path_1.join(cwd, project.settings.rootDirectory)
|
249504
249506
|
: cwd;
|
@@ -249753,7 +249755,7 @@ async function main(client) {
|
|
249753
249755
|
fileList.delete(path_1.relative(cwd, f));
|
249754
249756
|
await resolveNftToOutput({
|
249755
249757
|
client,
|
249756
|
-
|
249758
|
+
baseDir,
|
249757
249759
|
outputDir: OUTPUT_DIR,
|
249758
249760
|
nftFileName: f.replace(ext, '.js.nft.json'),
|
249759
249761
|
nft: {
|
@@ -249768,7 +249770,7 @@ async function main(client) {
|
|
249768
249770
|
const json = await fs_extra_1.default.readJson(f);
|
249769
249771
|
await resolveNftToOutput({
|
249770
249772
|
client,
|
249771
|
-
|
249773
|
+
baseDir,
|
249772
249774
|
outputDir: OUTPUT_DIR,
|
249773
249775
|
nftFileName: f,
|
249774
249776
|
nft: json,
|
@@ -249780,10 +249782,14 @@ async function main(client) {
|
|
249780
249782
|
await fs_extra_1.default.writeJSON(requiredServerFilesPath, {
|
249781
249783
|
...requiredServerFilesJson,
|
249782
249784
|
appDir: '.',
|
249783
|
-
files: requiredServerFilesJson.files.map((i) =>
|
249784
|
-
|
249785
|
-
output
|
249786
|
-
|
249785
|
+
files: requiredServerFilesJson.files.map((i) => {
|
249786
|
+
const absolutePath = path_1.join(cwd, i.replace('.next', '.output'));
|
249787
|
+
const output = path_1.relative(baseDir, absolutePath);
|
249788
|
+
return {
|
249789
|
+
input: i.replace('.next', '.output'),
|
249790
|
+
output,
|
249791
|
+
};
|
249792
|
+
}),
|
249787
249793
|
});
|
249788
249794
|
}
|
249789
249795
|
}
|
@@ -249899,7 +249905,7 @@ function hash(buf) {
|
|
249899
249905
|
// subsequently updating the original nft file accordingly. This is done
|
249900
249906
|
// to make the `.output` directory be self-contained, so that it works
|
249901
249907
|
// properly with `vc --prebuilt`.
|
249902
|
-
async function resolveNftToOutput({ client,
|
249908
|
+
async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, nft, }) {
|
249903
249909
|
client.output.debug(`Processing and resolving ${nftFileName}`);
|
249904
249910
|
await fs_extra_1.default.ensureDir(path_1.join(outputDir, 'inputs'));
|
249905
249911
|
const newFilesList = [];
|
@@ -249912,9 +249918,14 @@ async function resolveNftToOutput({ client, cwd, outputDir, nftFileName, nft, })
|
|
249912
249918
|
const raw = await fs_extra_1.default.readFile(fullInput);
|
249913
249919
|
const newFilePath = path_1.join(outputDir, 'inputs', hash(raw) + ext);
|
249914
249920
|
smartCopy(client, fullInput, newFilePath);
|
249921
|
+
// We have to use `baseDir` instead of `cwd`, because we want to
|
249922
|
+
// mount everything from there (especially `node_modules`).
|
249923
|
+
// This is important for NPM Workspaces where `node_modules` is not
|
249924
|
+
// in the directory of the workspace.
|
249925
|
+
const output = path_1.relative(baseDir, fullInput).replace('.output', '.next');
|
249915
249926
|
newFilesList.push({
|
249916
249927
|
input: path_1.relative(path_1.parse(nftFileName).dir, newFilePath),
|
249917
|
-
output
|
249928
|
+
output,
|
249918
249929
|
});
|
249919
249930
|
}
|
249920
249931
|
else {
|
@@ -270074,7 +270085,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270074
270085
|
/***/ ((module) => {
|
270075
270086
|
|
270076
270087
|
"use strict";
|
270077
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270088
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.26\",\"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.16\",\"@vercel/go\":\"1.2.4-canary.3\",\"@vercel/node\":\"1.12.2-canary.6\",\"@vercel/python\":\"2.0.6-canary.4\",\"@vercel/ruby\":\"1.2.8-canary.3\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.6\",\"vercel-plugin-node\":\"1.12.2-canary.7\"},\"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\":\"986b4c0b1a2790b9d9623abed22e5aa133a31986\"}");
|
270078
270089
|
|
270079
270090
|
/***/ }),
|
270080
270091
|
|
@@ -270090,7 +270101,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
270090
270101
|
/***/ ((module) => {
|
270091
270102
|
|
270092
270103
|
"use strict";
|
270093
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.17\",\"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\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@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\":\"2.12.3-canary.16\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"}
|
270104
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.17\",\"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\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@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\":\"2.12.3-canary.16\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"}}");
|
270094
270105
|
|
270095
270106
|
/***/ }),
|
270096
270107
|
|
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.26",
|
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": "986b4c0b1a2790b9d9623abed22e5aa133a31986"
|
188
188
|
}
|