Skip to content

Commit

Permalink
fix: loosen engine requirement of jest-worker (#11451)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 26, 2021
1 parent 50216cd commit b5aa002
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,8 @@

### Fixes

- `[jest-worker]` Loosen engine requirement to `>= 10.13.0` ([#11451](https://github.com/facebook/jest/pull/11451))

### Chore & Maintenance

### Performance
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-worker/package.json
Expand Up @@ -26,7 +26,7 @@
"worker-farm": "^1.6.0"
},
"engines": {
"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
"node": ">= 10.13.0"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion scripts/buildUtils.js
Expand Up @@ -35,7 +35,8 @@ module.exports.getPackages = function getPackages() {

assert.strictEqual(
pkg.engines.node,
nodeEngineRequirement,
// TODO: remove special casing for Jest 28
pkg.name === 'jest-worker' ? '>= 10.13.0' : nodeEngineRequirement,
`Engine requirement in ${pkg.name} should match root`,
);

Expand Down

0 comments on commit b5aa002

Please sign in to comment.