Skip to content

Commit a8e19c2

Browse files
clydinKeen Yee Liau
authored and
Keen Yee Liau
committed
build: update minimum npm/yarn engine versions for built packages (#15567)
The `peerDependenciesMeta` package.json field is becoming increasingly prevalent. The minimum versions in this change provide support for the field and mitigate incorrect peer dependency warnings for end users. npm: https://github.com/npm/cli/blob/fc5fc76182c0746433c84a7208877fb70ef62352/CHANGELOG.md#v6110-2019-08-20 yarn: https://github.com/yarnpkg/yarn/blob/53d8004229f543f342833310d5af63a4b6e59c8a/CHANGELOG.md#1130 pnpm: https://github.com/pnpm/pnpm/releases/tag/v3.2.0
1 parent 05a4280 commit a8e19c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/packages.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ function loadPackageJson(p: string) {
8383
case 'engines':
8484
pkg['engines'] = {
8585
'node': '>= 10.9.0',
86-
'npm': '>= 6.2.0',
86+
'npm': '>= 6.11.0',
87+
'pnpm': '>= 3.2.0',
88+
'yarn': '>= 1.13.0',
8789
};
8890
break;
8991

0 commit comments

Comments
 (0)