Skip to content

Commit 0b8d63e

Browse files
committed
engines block to specify min requirements
Per [the 5.0.0 release notes](https://github.com/tschaub/mock-fs/releases/tag/v5.0.0), support for Node less than 12 has been dropped. With an `engines` block, `npm` can issue an error to tell folks on Node 10 (or other lower/unsupported version) that the package is no longer compatible. This can save time for things like #334 where it's not obvious why issues are occurring.
1 parent 8a6ad90 commit 0b8d63e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@
4848
"mocha": "^8.4.0",
4949
"rimraf": "^3.0.2",
5050
"semver": "^7.3.5"
51+
},
52+
"engines": {
53+
"node": ">=12.0.0"
5154
}
5255
}

0 commit comments

Comments
 (0)