vercel 23.1.3-canary.26 → 23.1.3-canary.27
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 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -249646,6 +249646,7 @@ async function main(client) {
|
|
249646
249646
|
'_middleware.js',
|
249647
249647
|
'api/**',
|
249648
249648
|
'.git/**',
|
249649
|
+
'.next/cache/**',
|
249649
249650
|
],
|
249650
249651
|
nodir: true,
|
249651
249652
|
dot: true,
|
@@ -249687,6 +249688,25 @@ async function main(client) {
|
|
249687
249688
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, 'static'), path_1.join(cwd, OUTPUT_DIR, tempStatic));
|
249688
249689
|
await fs_extra_1.default.mkdirp(path_1.join(cwd, OUTPUT_DIR, 'static', '_next', 'static'));
|
249689
249690
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, tempStatic), path_1.join(cwd, OUTPUT_DIR, 'static', '_next', 'static'));
|
249691
|
+
// Next.js might reference files from the `static` directory in `middleware-manifest.json`.
|
249692
|
+
// Since we move all files from `static` to `static/_next/static`, we'll need to change
|
249693
|
+
// those references as well and update the manifest file.
|
249694
|
+
const middlewareManifest = path_1.join(cwd, OUTPUT_DIR, 'server', 'middleware-manifest.json');
|
249695
|
+
if (fs_extra_1.default.existsSync(middlewareManifest)) {
|
249696
|
+
const manifest = await fs_extra_1.default.readJSON(middlewareManifest);
|
249697
|
+
Object.keys(manifest.middleware).forEach(key => {
|
249698
|
+
const files = manifest.middleware[key].files.map((f) => {
|
249699
|
+
if (f.startsWith('static/')) {
|
249700
|
+
const next = f.replace(/^static\//gm, 'static/_next/static/');
|
249701
|
+
client.output.debug(`Replacing file in \`middleware-manifest.json\`: ${f} => ${next}`);
|
249702
|
+
return next;
|
249703
|
+
}
|
249704
|
+
return f;
|
249705
|
+
});
|
249706
|
+
manifest.middleware[key].files = files;
|
249707
|
+
});
|
249708
|
+
await fs_extra_1.default.writeJSON(middlewareManifest, manifest);
|
249709
|
+
}
|
249690
249710
|
// We want to pick up directories for user-provided static files into `.`output/static`.
|
249691
249711
|
// More specifically, the static directory contents would then be mounted to `output/static/static`,
|
249692
249712
|
// and the public directory contents would be mounted to `output/static`. Old Next.js versions
|
@@ -270085,7 +270105,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270085
270105
|
/***/ ((module) => {
|
270086
270106
|
|
270087
270107
|
"use strict";
|
270088
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270108
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.27\",\"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\":\"af097c2c0631f0e5e981db0e3c8141a566bc18ac\"}");
|
270089
270109
|
|
270090
270110
|
/***/ }),
|
270091
270111
|
|
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.27",
|
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": "af097c2c0631f0e5e981db0e3c8141a566bc18ac"
|
188
188
|
}
|