@smallwins/lambda
Advanced tools
Comparing version 4.3.0 to 4.4.0
{ | ||
"name": "@smallwins/lambda", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "Author your AWS Lambda functions as node style errbacks.", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -71,5 +71,13 @@ #!/usr/bin/env node | ||
var dirname = join(__dirname, '..', name) | ||
var zip = join( __dirname, '..', name.replace('/', '') + '.zip') | ||
// helper to remove trailing slash | ||
function strip(str) { | ||
if(str.substr(-1) === '/') { | ||
return str.substr(0, str.length - 1) | ||
} | ||
return str | ||
} | ||
var dirname = join(process.cwd(), name) | ||
var zip = join(process.cwd(), strip(name) + '.zip') | ||
async.waterfall([ | ||
@@ -76,0 +84,0 @@ function zipTmp(callback) { |
Sorry, the diff of this file is not supported yet
24478
634