From b4a00630504bb21a5ad7bcf7fdb2ef1b4208a176 Mon Sep 17 00:00:00 2001 From: compumike08 Date: Mon, 2 Jan 2017 23:13:47 -0500 Subject: [PATCH] fix: Enforce minimum Node.js version requirement using 'engines' attribute package.json (#48) * docs(README): Add 'Prerequisites' section to README to specify minimum Node.js version * chore(package.json): Add 'engines' section to package.json to enforce minimum Node.js version --- README.md | 3 +++ package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 622444a..59a5a08 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@ Status: This micro-lib allows you to provide a script which sets an environment using unix style and have it work on windows too +## Prerequisites +- [Node.js](https://nodejs.org/) version 4.0 or greater. + ## Usage I use this in my npm scripts: diff --git a/package.json b/package.json index bcc2136..e4c1bbc 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "bin": { "cross-env": "bin/cross-env.js" }, + "engines": { + "node" : ">=4.0" + }, "scripts": { "start": "npm run test:watch", "prebuild": "rimraf dist && mkdir dist",