diff --git a/lib/6to5/templates/abstract-expression-call.js b/lib/6to5/transformation/templates/abstract-expression-call.js similarity index 100% rename from lib/6to5/templates/abstract-expression-call.js rename to lib/6to5/transformation/templates/abstract-expression-call.js diff --git a/lib/6to5/templates/abstract-expression-delete.js b/lib/6to5/transformation/templates/abstract-expression-delete.js similarity index 100% rename from lib/6to5/templates/abstract-expression-delete.js rename to lib/6to5/transformation/templates/abstract-expression-delete.js diff --git a/lib/6to5/templates/abstract-expression-get.js b/lib/6to5/transformation/templates/abstract-expression-get.js similarity index 100% rename from lib/6to5/templates/abstract-expression-get.js rename to lib/6to5/transformation/templates/abstract-expression-get.js diff --git a/lib/6to5/templates/abstract-expression-set.js b/lib/6to5/transformation/templates/abstract-expression-set.js similarity index 100% rename from lib/6to5/templates/abstract-expression-set.js rename to lib/6to5/transformation/templates/abstract-expression-set.js diff --git a/lib/6to5/templates/apply-constructor.js b/lib/6to5/transformation/templates/apply-constructor.js similarity index 100% rename from lib/6to5/templates/apply-constructor.js rename to lib/6to5/transformation/templates/apply-constructor.js diff --git a/lib/6to5/templates/array-comprehension-container.js b/lib/6to5/transformation/templates/array-comprehension-container.js similarity index 100% rename from lib/6to5/templates/array-comprehension-container.js rename to lib/6to5/transformation/templates/array-comprehension-container.js diff --git a/lib/6to5/templates/array-comprehension-for-each.js b/lib/6to5/transformation/templates/array-comprehension-for-each.js similarity index 100% rename from lib/6to5/templates/array-comprehension-for-each.js rename to lib/6to5/transformation/templates/array-comprehension-for-each.js diff --git a/lib/6to5/templates/array-expression-comprehension-filter.js b/lib/6to5/transformation/templates/array-expression-comprehension-filter.js similarity index 100% rename from lib/6to5/templates/array-expression-comprehension-filter.js rename to lib/6to5/transformation/templates/array-expression-comprehension-filter.js diff --git a/lib/6to5/templates/array-expression-comprehension-map.js b/lib/6to5/transformation/templates/array-expression-comprehension-map.js similarity index 100% rename from lib/6to5/templates/array-expression-comprehension-map.js rename to lib/6to5/transformation/templates/array-expression-comprehension-map.js diff --git a/lib/6to5/templates/array-from.js b/lib/6to5/transformation/templates/array-from.js similarity index 100% rename from lib/6to5/templates/array-from.js rename to lib/6to5/transformation/templates/array-from.js diff --git a/lib/6to5/templates/array-push.js b/lib/6to5/transformation/templates/array-push.js similarity index 100% rename from lib/6to5/templates/array-push.js rename to lib/6to5/transformation/templates/array-push.js diff --git a/lib/6to5/templates/call.js b/lib/6to5/transformation/templates/call.js similarity index 100% rename from lib/6to5/templates/call.js rename to lib/6to5/transformation/templates/call.js diff --git a/lib/6to5/templates/class-super-constructor-call.js b/lib/6to5/transformation/templates/class-super-constructor-call.js similarity index 100% rename from lib/6to5/templates/class-super-constructor-call.js rename to lib/6to5/transformation/templates/class-super-constructor-call.js diff --git a/lib/6to5/templates/exports-assign.js b/lib/6to5/transformation/templates/exports-assign.js similarity index 100% rename from lib/6to5/templates/exports-assign.js rename to lib/6to5/transformation/templates/exports-assign.js diff --git a/lib/6to5/templates/exports-default-module-override.js b/lib/6to5/transformation/templates/exports-default-module-override.js similarity index 100% rename from lib/6to5/templates/exports-default-module-override.js rename to lib/6to5/transformation/templates/exports-default-module-override.js diff --git a/lib/6to5/templates/exports-default-module.js b/lib/6to5/transformation/templates/exports-default-module.js similarity index 100% rename from lib/6to5/templates/exports-default-module.js rename to lib/6to5/transformation/templates/exports-default-module.js diff --git a/lib/6to5/templates/exports-wildcard.js b/lib/6to5/transformation/templates/exports-wildcard.js similarity index 100% rename from lib/6to5/templates/exports-wildcard.js rename to lib/6to5/transformation/templates/exports-wildcard.js diff --git a/lib/6to5/templates/for-of.js b/lib/6to5/transformation/templates/for-of.js similarity index 100% rename from lib/6to5/templates/for-of.js rename to lib/6to5/transformation/templates/for-of.js diff --git a/lib/6to5/templates/function-return-obj.js b/lib/6to5/transformation/templates/function-return-obj.js similarity index 100% rename from lib/6to5/templates/function-return-obj.js rename to lib/6to5/transformation/templates/function-return-obj.js diff --git a/lib/6to5/templates/has-own.js b/lib/6to5/transformation/templates/has-own.js similarity index 100% rename from lib/6to5/templates/has-own.js rename to lib/6to5/transformation/templates/has-own.js diff --git a/lib/6to5/templates/if-undefined-set-to.js b/lib/6to5/transformation/templates/if-undefined-set-to.js similarity index 100% rename from lib/6to5/templates/if-undefined-set-to.js rename to lib/6to5/transformation/templates/if-undefined-set-to.js diff --git a/lib/6to5/templates/inherits.js b/lib/6to5/transformation/templates/inherits.js similarity index 100% rename from lib/6to5/templates/inherits.js rename to lib/6to5/transformation/templates/inherits.js diff --git a/lib/6to5/templates/interop-require.js b/lib/6to5/transformation/templates/interop-require.js similarity index 100% rename from lib/6to5/templates/interop-require.js rename to lib/6to5/transformation/templates/interop-require.js diff --git a/lib/6to5/templates/let-scoping-return.js b/lib/6to5/transformation/templates/let-scoping-return.js similarity index 100% rename from lib/6to5/templates/let-scoping-return.js rename to lib/6to5/transformation/templates/let-scoping-return.js diff --git a/lib/6to5/templates/object-define-properties-closure.js b/lib/6to5/transformation/templates/object-define-properties-closure.js similarity index 100% rename from lib/6to5/templates/object-define-properties-closure.js rename to lib/6to5/transformation/templates/object-define-properties-closure.js diff --git a/lib/6to5/templates/object-define-properties.js b/lib/6to5/transformation/templates/object-define-properties.js similarity index 100% rename from lib/6to5/templates/object-define-properties.js rename to lib/6to5/transformation/templates/object-define-properties.js diff --git a/lib/6to5/templates/object-without-properties.js b/lib/6to5/transformation/templates/object-without-properties.js similarity index 100% rename from lib/6to5/templates/object-without-properties.js rename to lib/6to5/transformation/templates/object-without-properties.js diff --git a/lib/6to5/templates/prototype-identifier.js b/lib/6to5/transformation/templates/prototype-identifier.js similarity index 100% rename from lib/6to5/templates/prototype-identifier.js rename to lib/6to5/transformation/templates/prototype-identifier.js diff --git a/lib/6to5/templates/prototype-properties.js b/lib/6to5/transformation/templates/prototype-properties.js similarity index 100% rename from lib/6to5/templates/prototype-properties.js rename to lib/6to5/transformation/templates/prototype-properties.js diff --git a/lib/6to5/templates/require-assign-key.js b/lib/6to5/transformation/templates/require-assign-key.js similarity index 100% rename from lib/6to5/templates/require-assign-key.js rename to lib/6to5/transformation/templates/require-assign-key.js diff --git a/lib/6to5/templates/require-assign.js b/lib/6to5/transformation/templates/require-assign.js similarity index 100% rename from lib/6to5/templates/require-assign.js rename to lib/6to5/transformation/templates/require-assign.js diff --git a/lib/6to5/templates/require.js b/lib/6to5/transformation/templates/require.js similarity index 100% rename from lib/6to5/templates/require.js rename to lib/6to5/transformation/templates/require.js diff --git a/lib/6to5/templates/self-global.js b/lib/6to5/transformation/templates/self-global.js similarity index 100% rename from lib/6to5/templates/self-global.js rename to lib/6to5/transformation/templates/self-global.js diff --git a/lib/6to5/templates/slice.js b/lib/6to5/transformation/templates/slice.js similarity index 100% rename from lib/6to5/templates/slice.js rename to lib/6to5/transformation/templates/slice.js diff --git a/lib/6to5/templates/sliced-to-array.js b/lib/6to5/transformation/templates/sliced-to-array.js similarity index 100% rename from lib/6to5/templates/sliced-to-array.js rename to lib/6to5/transformation/templates/sliced-to-array.js diff --git a/lib/6to5/templates/system.js b/lib/6to5/transformation/templates/system.js similarity index 100% rename from lib/6to5/templates/system.js rename to lib/6to5/transformation/templates/system.js diff --git a/lib/6to5/templates/tagged-template-literal.js b/lib/6to5/transformation/templates/tagged-template-literal.js similarity index 100% rename from lib/6to5/templates/tagged-template-literal.js rename to lib/6to5/transformation/templates/tagged-template-literal.js diff --git a/lib/6to5/templates/to-array.js b/lib/6to5/transformation/templates/to-array.js similarity index 100% rename from lib/6to5/templates/to-array.js rename to lib/6to5/transformation/templates/to-array.js diff --git a/lib/6to5/templates/umd-runner-body.js b/lib/6to5/transformation/templates/umd-runner-body.js similarity index 100% rename from lib/6to5/templates/umd-runner-body.js rename to lib/6to5/transformation/templates/umd-runner-body.js diff --git a/lib/6to5/util.js b/lib/6to5/util.js index cc33a85911..98f2e6f3b7 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -268,7 +268,7 @@ exports.parseTemplate = function (loc, code) { var loadTemplates = function () { var templates = {}; - var templatesLoc = __dirname + "/templates"; + var templatesLoc = __dirname + "/transformation/templates"; if (!fs.existsSync(templatesLoc)) { throw new Error("no templates directory - this is most likely the " + "result of a broken `npm publish`. Please report to " +