Comparing version 1.9.0 to 1.9.1
@@ -12,5 +12,5 @@ #!/usr/bin/env node | ||
commander.option("-t, --source-maps-inline", "Append sourceMappingURL comment to bottom of code"); | ||
commander.option("-s, --source-maps", "Save source map alongside the compiled code when using --out-file and --out-dir flags"); | ||
commander.option("-s, --source-maps", "Save source map alongside the compiled code"); | ||
commander.option("-f, --filename [filename]", "Filename to use when reading from stdin - this will be used in source-maps, errors etc [stdin]", "stdin"); | ||
commander.option("-w, --watch", "Recompile files on changes - --out-dir or --out-file required"); | ||
commander.option("-w, --watch", "Recompile files on changes"); | ||
@@ -61,2 +61,8 @@ var list = function (val) { | ||
if (commander.sourceMaps) { | ||
if (!commander.outFile && !commander.outDir) { | ||
errors.push("--source-maps requires --out-file or --out-dir"); | ||
} | ||
} | ||
if (errors.length) { | ||
@@ -79,7 +85,7 @@ console.error(errors.join(". ")); | ||
if (commander.outDir) { | ||
fn = require("./out-dir"); | ||
fn = require("./dir"); | ||
} else { | ||
fn = require("./out-file"); | ||
fn = require("./file"); | ||
} | ||
fn(commander, filenames, exports.opts); |
{ | ||
"name": "6to5", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/sebmck/6to5", |
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
717264
1806