Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 89efe6c

Browse files
committed
feat(package): Add support for older NodeJS versions
1 parent 98d25bf commit 89efe6c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"presets": ["es2015-node4"]
2+
"presets": ["es2015"],
3+
"plugins": ["add-module-exports"]
34
}

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ notifications:
77
email: true
88
node_js:
99
- stable
10+
- 5
1011
- 4
12+
- 0.12
13+
- 0.10
14+
before_install:
15+
- npm install -g npm@latest
1116
before_script:
1217
- npm prune
1318
after_success:

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "passport-github-token",
3+
"version": "0.0.0-semantic-release",
34
"description": "Passport strategy for authenticating with GitHub via OAuth2 access tokens",
45
"main": "lib/index.js",
56
"scripts": {
@@ -31,7 +32,8 @@
3132
},
3233
"devDependencies": {
3334
"babel-cli": "6.4.5",
34-
"babel-preset-es2015-node4": "2.0.3",
35+
"babel-plugin-add-module-exports": "0.1.2",
36+
"babel-preset-es2015": "6.3.13",
3537
"chai": "3.4.1",
3638
"chai-passport-strategy": "0.2.0",
3739
"coveralls": "2.11.6",

0 commit comments

Comments
 (0)