mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-13 02:40:22 -05:00
set node engines for the CLI
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
"bin": {
|
||||
"cypress": "bin/cypress"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm run test-unit",
|
||||
"test-unit": "$(bin-up mocha) --reporter mocha-multi-reporters --reporter-options configFile=../mocha-reporter-config.json",
|
||||
|
||||
@@ -13,6 +13,7 @@ const {
|
||||
license,
|
||||
bugs,
|
||||
repository,
|
||||
engines,
|
||||
} = require('@packages/root')
|
||||
|
||||
const packageJsonSrc = path.join('package.json')
|
||||
@@ -32,6 +33,7 @@ function preparePackageForNpmRelease (json) {
|
||||
license,
|
||||
bugs,
|
||||
repository,
|
||||
engines,
|
||||
scripts: {
|
||||
postinstall: 'node index.js --exec install',
|
||||
size: 't=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";',
|
||||
|
||||
Reference in New Issue
Block a user