Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
fix: Enforce minimum Node.js version requirement using 'engines' attr…
Browse files Browse the repository at this point in the history
…ibute 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
  • Loading branch information
compumike08 authored and Kent C. Dodds committed Jan 3, 2017
1 parent 25f7b5f commit b4a0063
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b4a0063

Please sign in to comment.