From b924e3deb5ff3fcce488b55d32836c63c3c215b2 Mon Sep 17 00:00:00 2001 From: Lars Kappert Date: Wed, 19 Nov 2014 08:55:16 +0100 Subject: [PATCH] Rename to "--amd-module-ids" --- bin/6to5/index.js | 4 ++-- doc/usage.md | 2 +- lib/6to5/transformation/modules/amd.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/6to5/index.js b/bin/6to5/index.js index af3db9094e..9f41d92530 100755 --- a/bin/6to5/index.js +++ b/bin/6to5/index.js @@ -18,7 +18,7 @@ commander.option("-b, --blacklist [blacklist]", "Blacklist of transformers to NO commander.option("-o, --out-file [out]", "Compile all input files into a single file"); commander.option("-d, --out-dir [out]", "Compile an input directory of modules into an output directory"); commander.option("-c, --remove-comments", "Remove comments from the compiled code", false); -commander.option("-a, --amd-module-id", "Insert module id in AMD modules", false); +commander.option("-a, --amd-module-ids", "Insert module id in AMD modules", false); commander.on("--help", function(){ var outKeys = function (title, obj) { @@ -91,7 +91,7 @@ exports.opts = { whitelist: commander.whitelist, sourceMap: commander.sourceMaps || commander.sourceMapsInline, comments: !commander.removeComments, - amdModuleId: commander.amdModuleId, + amdModuleIds: commander.amdModuleIds, runtime: commander.runtime, modules: commander.modules }; diff --git a/doc/usage.md b/doc/usage.md index 3fd2d4f10e..ce51614591 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -126,7 +126,7 @@ to5.transformFile("filename.js", options, function (err, result) { // If truthy, insert an explicit id for each defined AMD module. // By default, AMD modules are anonymous. // Default: false - amdModuleId: true, + amdModuleIds: true, // Optionally replace all 6to5 helper declarations with a referenece to this // variable. If set to `true` then the default namespace is used "to5Runtime". diff --git a/lib/6to5/transformation/modules/amd.js b/lib/6to5/transformation/modules/amd.js index cfff80012f..6b174ac376 100644 --- a/lib/6to5/transformation/modules/amd.js +++ b/lib/6to5/transformation/modules/amd.js @@ -43,7 +43,7 @@ AMDFormatter.prototype.getModuleName = function () { var filenameRelative = opts.filenameRelative; var moduleName = ""; - if (!opts.amdModuleId) { + if (!opts.amdModuleIds) { return null; }