style(nodeTree): fix formatting
the formatting was messed up due to https://github.com/angular/clang-format/issues/7. I replaced the fat arrow function with regular function expression to resolve the formatting issue
This commit is contained in:
parent
ac28ac324d
commit
c204835969
@ -106,15 +106,15 @@ module.exports = function makeNodeTree(destinationPath) {
|
|||||||
match: /$/g,
|
match: /$/g,
|
||||||
replacement: ""
|
replacement: ""
|
||||||
}],
|
}],
|
||||||
replaceWithPath: (path, content) => {
|
replaceWithPath: function(path, content) {
|
||||||
if (!path.endsWith('.d.ts')) {
|
if (!path.endsWith('.d.ts')) {
|
||||||
content += '\r\nexport var __esModule = true;\n';
|
content += '\r\nexport var __esModule = true;\n';
|
||||||
}
|
}
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var typescriptTree = compileWithTypescript(traceurCompatibleTsModulesTree, {
|
var typescriptTree = compileWithTypescript(traceurCompatibleTsModulesTree, {
|
||||||
allowNonTsExtensions: false,
|
allowNonTsExtensions: false,
|
||||||
emitDecoratorMetadata: true,
|
emitDecoratorMetadata: true,
|
||||||
declaration: true,
|
declaration: true,
|
||||||
@ -126,16 +126,15 @@ var typescriptTree = compileWithTypescript(traceurCompatibleTsModulesTree, {
|
|||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
sourceRoot: '.',
|
sourceRoot: '.',
|
||||||
target: 'ES5'
|
target: 'ES5'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
nodeTree = mergeTrees([nodeTree, typescriptTree, docs, packageJsons]);
|
nodeTree = mergeTrees([nodeTree, typescriptTree, docs, packageJsons]);
|
||||||
|
|
||||||
// TODO(iminar): tree differ seems to have issues with trees created by mergeTrees, investigate!
|
// TODO(iminar): tree differ seems to have issues with trees created by mergeTrees, investigate!
|
||||||
// ENOENT error is thrown while doing fs.readdirSync on inputRoot
|
// ENOENT error is thrown while doing fs.readdirSync on inputRoot
|
||||||
// in the meantime, we just do noop mv to create a new tree
|
// in the meantime, we just do noop mv to create a new tree
|
||||||
nodeTree = stew.mv(nodeTree, '');
|
nodeTree = stew.mv(nodeTree, '');
|
||||||
|
|
||||||
return destCopy(nodeTree, destinationPath);
|
return destCopy(nodeTree, destinationPath);
|
||||||
}
|
};
|
||||||
;
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user