diff --git a/cli/package.json b/cli/package.json index 9d8ffbc0dd..aaf93349a8 100644 --- a/cli/package.json +++ b/cli/package.json @@ -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", diff --git a/cli/scripts/build.js b/cli/scripts/build.js index 068d00a57f..f97837ce84 100644 --- a/cli/scripts/build.js +++ b/cli/scripts/build.js @@ -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}\";',