Skip to content

Commit 39b510a

Browse files
authored
Merge pull request #68 from Testlio/feature/node6-support
Add node v6.10 support
2 parents 4a17c1b + 20aa76f commit 39b510a

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ All scripts may make use of a `.lambda-tools-rc.json` file in the root of the pr
2424
"name": "Project Name"
2525
},
2626
"lambda": {
27-
"runtime": "nodejs4.3"
27+
"runtime": "nodejs6.10"
2828
},
2929
"aws": {
3030
"region": "us-east-1",

lib/deploy/bundle-lambdas-step.js

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const hashFiles = Promise.promisify(require('hash-files'));
1414
const babel = require('babel-core');
1515
const es2015presets = require('babel-preset-es2015');
1616
const node4presets = require('babel-preset-es2015-node4');
17+
const node6presets = require('babel-preset-es2015-node6');
1718
const Browserify = require('browserify');
1819
const envify = require('envify/custom');
1920
const exorcist = require('exorcist');
@@ -267,6 +268,9 @@ module.exports = function(context) {
267268
} else if (runtime === 'nodejs4.3') {
268269
// Node 4.3 runtime
269270
options.presets = [node4presets];
271+
} else if (runtime === 'nodejs6.10') {
272+
// Node 6.10 runtime
273+
options.presets = [node6presets];
270274
}
271275

272276
babel.transformFile(bundledPath, options, function(err, transpiled) {

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"babel-core": "^6.9.1",
3232
"babel-preset-es2015": "^6.1.18",
3333
"babel-preset-es2015-node4": "^2.1.0",
34+
"babel-preset-es2015-node6": "^0.4.0",
3435
"bluebird": "^3.1.1",
3536
"browserify": "^12.0.1",
3637
"cfn-response": "^1.0.1",

0 commit comments

Comments
 (0)