From c2d3693f3170e14d5eff2b203ab3c77b13a39e5c Mon Sep 17 00:00:00 2001 From: Nate Fischer Date: Sun, 9 Jan 2022 17:42:37 -0800 Subject: [PATCH] chore: add back node v6 support No change to logic. This adds back node v6 support to partially revert https://github.com/shelljs/shx/pull/186. I'm hoping that v6 support is easier now that we rely on GitHub actions for codecov. The motivation for this change is so that we can make 0.3.x patch releases if necessary. --- .github/workflows/main.yml | 2 ++ README.md | 2 +- package.json | 2 +- scripts/check-node-support.js | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 354cd5f..41698fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,8 @@ jobs: fail-fast: false matrix: node-version: + - 6 + - 7 - 8 - 9 - 10 diff --git a/README.md b/README.md index eca335b..d52d154 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ commands, providing an easy solution for simple Unix-like, cross-platform commands in npm package scripts. -`shx` is proudly tested on every node release since `v8`! +`shx` is proudly tested on every node release since `v6`! ## Difference Between ShellJS and shx diff --git a/package.json b/package.json index 3327811..f55f491 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,6 @@ "shelljs": "^0.8.5" }, "engines": { - "node": ">=8" + "node": ">=6" } } diff --git a/scripts/check-node-support.js b/scripts/check-node-support.js index 8f6e86d..4e8702c 100755 --- a/scripts/check-node-support.js +++ b/scripts/check-node-support.js @@ -8,7 +8,7 @@ var yaml = require('js-yaml'); var shell = require('shelljs'); // This is the authoritative list of supported node versions. -var MIN_NODE_VERSION = 8; +var MIN_NODE_VERSION = 6; var MAX_NODE_VERSION = 14; function checkReadme(minNodeVersion) {