chore(build): rename .es6 files to .js

Change es6 source files in npm distribution to use .js extensions.

Closes #2447
This commit is contained in:
Rob Wormald
2015-06-10 00:02:37 -07:00
committed by Rado Kirov
parent 6cafaba993
commit 796fc66771
7 changed files with 11 additions and 15 deletions

View File

@ -13,7 +13,7 @@ let xtend = require('xtend');
class DiffingTraceurCompiler implements DiffingBroccoliPlugin {
constructor(public inputPath: string, public cachePath: string, public options) {}
static includeExtensions = ['.js', '.es6', '.cjs'];
static includeExtensions = ['.js', '.cjs'];
rebuild(treeDiff: DiffResult) {
treeDiff.addedPaths.concat(treeDiff.changedPaths)

View File

@ -64,7 +64,7 @@ module.exports = function makeBrowserTree(options, destinationPath) {
// Use Traceur to transpile *.js sources to ES6
var traceurTree = transpileWithTraceur(modulesTree, {
destExtension: '.es6',
destExtension: '.js',
destSourceMapExtension: '.map',
traceurOptions: {
sourceMaps: true,
@ -93,7 +93,6 @@ module.exports = function makeBrowserTree(options, destinationPath) {
sourceRoot: '.',
target: 'ES6'
});
typescriptTree = stew.rename(typescriptTree, '.js', '.es6');
var es6Tree = mergeTrees([traceurTree, typescriptTree]);