babel-autonode
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -54,7 +54,7 @@ #!/usr/bin/env node | ||
return mkdirp(path.dirname(file.dest.name)).then(function () { | ||
console.log("generating", file.dest.name) | ||
return execFile('babel', [ | ||
'--babelrc', require.resolve('babelrc-v8/babelrcs/'+babelrcs[file.ver]), | ||
file.src.name, '-o', file.dest.name | ||
]).catch(function (er) { | ||
var args = ['--babelrc', path.relative( | ||
process.cwd(), require.resolve('babelrc-v8/babelrcs/'+babelrcs[file.ver])), | ||
file.src.name, '-o', file.dest.name] | ||
console.log("> babel", args.join(' ', args)) | ||
return execFile('babel', args, {stdio: 'inherit'}).catch(function (er) { | ||
console.error("Error running babel: " + er.message) | ||
@@ -64,4 +64,4 @@ process.exit(1) | ||
}) | ||
}).then(function () { | ||
console.log('done!') | ||
}).then(function (files) { | ||
if (files.length) console.log('> build complete') | ||
}) | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "babel-autonode", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Automatically and transparently use as little babel as possible with whatever version of node is in use.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8575