@vercel/build-utils 10.5.0 → 10.5.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/CHANGELOG.md +8 -0
- package/dist/fs/run-user-scripts.js +6 -0
- package/dist/index.js +7 -1
- package/dist/schemas.js +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# @vercel/build-utils
|
2
2
|
|
3
|
+
## 10.5.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Display warning when yarn dynamic require error may happen ([#13143](https://github.com/vercel/vercel/pull/13143))
|
8
|
+
|
9
|
+
- [build-utils] increase max memory limit ([#13162](https://github.com/vercel/vercel/pull/13162))
|
10
|
+
|
3
11
|
## 10.5.0
|
4
12
|
|
5
13
|
### Minor Changes
|
@@ -547,6 +547,12 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion,
|
|
547
547
|
turboSupportsCorepackHome,
|
548
548
|
projectCreatedAt
|
549
549
|
});
|
550
|
+
const maySeeDynamicRequireYarnBug = process.env?.ENABLE_EXPERIMENTAL_COREPACK && packageJson?.packageManager?.startsWith("yarn") && packageJson?.type === "module";
|
551
|
+
if (maySeeDynamicRequireYarnBug) {
|
552
|
+
console.warn(
|
553
|
+
`Warning: This project may see "Error: Dynamic require of "util" is not supported". To avoid this error, remove \`"type": "module"\` from your package.json file, or use \`yarnPath\` instead of Corepack. Learn more: https://vercel.com/docs/errors/error-list#yarn-dynamic-require-of-util-is-not-supported`
|
554
|
+
);
|
555
|
+
}
|
550
556
|
await runInstallCommand({
|
551
557
|
packageManager: cliType,
|
552
558
|
args,
|
package/dist/index.js
CHANGED
@@ -23561,6 +23561,12 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion,
|
|
23561
23561
|
turboSupportsCorepackHome,
|
23562
23562
|
projectCreatedAt
|
23563
23563
|
});
|
23564
|
+
const maySeeDynamicRequireYarnBug = process.env?.ENABLE_EXPERIMENTAL_COREPACK && packageJson?.packageManager?.startsWith("yarn") && packageJson?.type === "module";
|
23565
|
+
if (maySeeDynamicRequireYarnBug) {
|
23566
|
+
console.warn(
|
23567
|
+
`Warning: This project may see "Error: Dynamic require of "util" is not supported". To avoid this error, remove \`"type": "module"\` from your package.json file, or use \`yarnPath\` instead of Corepack. Learn more: https://vercel.com/docs/errors/error-list#yarn-dynamic-require-of-util-is-not-supported`
|
23568
|
+
);
|
23569
|
+
}
|
23564
23570
|
await runInstallCommand({
|
23565
23571
|
packageManager: cliType,
|
23566
23572
|
args,
|
@@ -24286,7 +24292,7 @@ var functionsSchema = {
|
|
24286
24292
|
},
|
24287
24293
|
memory: {
|
24288
24294
|
minimum: 128,
|
24289
|
-
maximum:
|
24295
|
+
maximum: 10240
|
24290
24296
|
},
|
24291
24297
|
maxDuration: {
|
24292
24298
|
type: "number",
|
package/dist/schemas.js
CHANGED
package/dist/types.d.ts
CHANGED
@@ -287,6 +287,7 @@ export interface PackageJson {
|
|
287
287
|
readonly private?: boolean;
|
288
288
|
readonly publishConfig?: PackageJson.PublishConfig;
|
289
289
|
readonly packageManager?: string;
|
290
|
+
readonly type?: string;
|
290
291
|
}
|
291
292
|
export interface ConstructorVersion {
|
292
293
|
/** major version number: 18 */
|