From ebea5bf4cdd726ddaad22fb11ed46595da4fb8ed Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sat, 24 Mar 2018 16:47:45 +0000 Subject: [PATCH 1/3] Re-vert to Node.js v4 Related: https://github.com/tleunen/babel-plugin-module-resolver/issues/236 --- .babelrc | 2 +- appveyor.yml | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.babelrc b/.babelrc index a78dd1b..0dad66c 100644 --- a/.babelrc +++ b/.babelrc @@ -2,7 +2,7 @@ "presets": [ ["env", { "targets": { - "node": 6 + "node": 4 }, "loose": true, "useBuiltIns": true diff --git a/appveyor.yml b/appveyor.yml index 174350c..90dd5d4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,6 @@ environment: matrix: + - nodejs_version: '4' - nodejs_version: '6' - nodejs_version: '8' - nodejs_version: '9' diff --git a/package.json b/package.json index c6b1c2e..bc9a9da 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "url": "https://github.com/tleunen/babel-plugin-module-resolver.git" }, "engines": { - "node": ">= 6.0.0" + "node": ">= 4.0.0" }, "files": ["lib"], "author": { From fc09ebe77ce799a61ad57bd944aa39c01d45a830 Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sat, 24 Mar 2018 18:17:35 +0000 Subject: [PATCH 2/3] Jest: set testEnvironment to node --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index bc9a9da..32fda4d 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "*.{js}": ["prettier-eslint --write", "eslint --fix", "git add"] }, "jest": { + "testEnvironment": "node", "testRegex": "/test/.*\\.test\\.js$", "collectCoverageFrom": ["src/**/*.js", "!src/log.js"] } From 3dc0b78c87069985709955dd8d83b77cd82e1935 Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sat, 24 Mar 2018 18:22:21 +0000 Subject: [PATCH 3/3] run node 4 on circle-ci --- .circleci/config.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 99538b0..494d065 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,16 @@ version: 2 jobs: + test_with_node_4: + docker: + - image: circleci/node:4 + steps: + - checkout + - run: + name: Install dependencies + command: npm install + - run: + name: Test + command: npm test test_with_node_6: docker: - image: circleci/node:6 @@ -40,6 +51,7 @@ workflows: version: 2 test_all: jobs: + - test_with_node_4 - test_with_node_6 - test_with_node_8 - test_with_node_9