Skip to content

Commit 3b72dce

Browse files
committed
fix(build): remove source files from dist dir
1 parent bf1f762 commit 3b72dce

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

lib/broccoli/angular2-app.js

-21
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,12 @@ function Angular2App(defaults, options) {
3535
Angular2App.prototype.toTree = function () {
3636
var assetTree = this._getAssetsTree();
3737
var tsTree = this._getTsTree();
38-
var tsSrcTree = this._getTsSrcTree();
3938
var indexTree = this._getIndexTree();
4039
var vendorNpmTree = this._getVendorNpmTree();
4140
var excludeDotfilesTree = this._getPublicTree();
4241

4342
var buildTrees = [assetTree, tsTree, indexTree, vendorNpmTree];
4443

45-
if (!isProduction) {
46-
buildTrees.push(tsSrcTree);
47-
}
48-
4944
if (fs.existsSync('public')) {
5045
buildTrees.push(excludeDotfilesTree);
5146
}
@@ -326,22 +321,6 @@ Angular2App.prototype._getAssetsTree = function () {
326321
});
327322
};
328323

329-
330-
/**
331-
* Returns the `tsSrc` tree.
332-
*
333-
* @private
334-
* @method _getTsSrcTree
335-
* @return {Tree} The TS src tree.
336-
*/
337-
Angular2App.prototype._getTsSrcTree = function () {
338-
return new Funnel(sourceDir, {
339-
include: ['**/*.ts'],
340-
allowEmpty: true
341-
});
342-
};
343-
344-
345324
/**
346325
* Returns the `excludeDotfiles` tree.
347326
*

0 commit comments

Comments
 (0)