Skip to content

Commit 7e8cd2c

Browse files
committed
i'm a terrible spellerer babel#777
1 parent 2541dcf commit 7e8cd2c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

CHANGELOG-6to5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* **Bug Fix**
88
* Fix temp variables not being properly pushed inside of `while` loops.
99
* **New Feature**
10-
* Add `auxilaryComment`/`--auxilary-comment` option that prepends comments to auxilary helpers.
10+
* Add `auxiliaryComment`/`--auxiliary-comment` option that prepends comments to auxiliary helpers.
1111

1212
## 3.6.5
1313

bin/babel/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ commander.option("-c, --remove-comments", "Remove comments from the compiled cod
2626
commander.option("-M, --module-ids", "Insert module id in modules", false);
2727
commander.option("-R, --react-compat", "Makes the react transformer produce pre-v0.12 code");
2828
commander.option("--keep-module-id-extensions", "Keep extensions when generating module ids", false);
29-
commander.option("-a, --auxilary-comment [comment]", "Comment text to prepend to all auxilary code");
29+
commander.option("-a, --auxiliary-comment [comment]", "Comment text to prepend to all auxiliary code");
3030

3131
commander.on("--help", function () {
3232
var outKeys = function (title, obj) {
@@ -100,7 +100,7 @@ if (errors.length) {
100100

101101
exports.opts = {
102102
keepModuleIdExtensions: commander.keepModuleIdExtensions,
103-
auxilaryComment: commander.auxilaryComment,
103+
auxiliaryComment: commander.auxiliaryComment,
104104
externalHelpers: commander.externalHelpers,
105105
sourceMapName: commander.outFile,
106106
experimental: commander.experimental,

lib/babel/transformation/file.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ File.validOptions = [
8787
"experimental",
8888
"resolveModuleSource",
8989
"externalHelpers",
90-
"auxilaryComment",
90+
"auxiliaryComment",
9191

9292
// these are used by plugins
9393
"ignore",
@@ -302,8 +302,8 @@ File.prototype.isConsequenceExpressionStatement = function (node) {
302302
return t.isExpressionStatement(node) && this.lastStatements.indexOf(node) >= 0;
303303
};
304304

305-
File.prototype.attachAuxilaryComment = function (node) {
306-
var comment = this.opts.auxilaryComment;
305+
File.prototype.attachAuxiliaryComment = function (node) {
306+
var comment = this.opts.auxiliaryComment;
307307
if (comment) {
308308
node.leadingComments = node.leadingComments || [];
309309
node.leadingComments.push({

lib/babel/transformation/transformers/internal/declarations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ exports.Program = function (node, parent, scope, file) {
2020
var declarNode = t.variableDeclarator(declar.id, declar.init);
2121

2222
if (declar.init) {
23-
node.body.unshift(file.attachAuxilaryComment(t.variableDeclaration(kind, [declarNode])));
23+
node.body.unshift(file.attachAuxiliaryComment(t.variableDeclaration(kind, [declarNode])));
2424
} else {
2525
kinds[kind] = kinds[kind] || [];
2626
kinds[kind].push(declarNode);
2727
}
2828
}
2929

3030
for (kind in kinds) {
31-
node.body.unshift(file.attachAuxilaryComment(t.variableDeclaration(kind, kinds[kind])));
31+
node.body.unshift(file.attachAuxiliaryComment(t.variableDeclaration(kind, kinds[kind])));
3232
}
3333
});
3434

0 commit comments

Comments
 (0)