From 4b23cb01feeba86239a0fea393fb176725497b2f Mon Sep 17 00:00:00 2001 From: ghaiklor Date: Wed, 27 Jan 2016 16:58:52 +0200 Subject: [PATCH] feat(package): Add support for older NodeJS versions --- .babelrc | 3 ++- .travis.yml | 5 +++++ package.json | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.babelrc b/.babelrc index e7b1998..ad0ec08 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,4 @@ { - "presets": ["es2015-node4"] + "presets": ["es2015"], + "plugins": ["add-module-exports"] } diff --git a/.travis.yml b/.travis.yml index f6312f4..68a60e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,12 @@ notifications: email: true node_js: - stable + - 5 - 4 + - 0.12 + - 0.10 +before_install: + - npm install -g npm@latest before_script: - npm prune after_success: diff --git a/package.json b/package.json index 5b8a731..095b4bc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "passport-reddit-token", + "version": "0.0.0-semantic-release", "description": "Passport strategy for authenticating with Reddit via OAuth2 access tokens", "main": "lib/index.js", "scripts": { @@ -31,7 +32,8 @@ }, "devDependencies": { "babel-cli": "6.4.5", - "babel-preset-es2015-node4": "2.0.3", + "babel-plugin-add-module-exports": "0.1.2", + "babel-preset-es2015": "6.3.13", "chai": "3.4.1", "chai-passport-strategy": "0.2.0", "coveralls": "2.11.6",