Skip to content

Commit

Permalink
Merge pull request #160 from workmanw/restore-tests-map
Browse files Browse the repository at this point in the history
Fixing #159.
  • Loading branch information
jschilli authored Sep 6, 2016
2 parents cb92365 + d87509c commit c072664
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ module.exports = {
postprocessTree: function(type, tree) {
this._requireBuildPackages();
var checker = new VersionChecker(this);
var testLoaderFile = checker.for('ember-cli', 'npm').satisfies('>= 2.7.0') ? 'tests.js' : 'test-loader.js';
var isNpmTestLoader = checker.for('ember-cli', 'npm').satisfies('>= 2.7.0');
var testLoaderFile = isNpmTestLoader ? 'tests.js' : 'test-loader.js';
if (type === 'all' && this.app.tests) {
var treeTestLoader = new Funnel(tree, {
files: [testLoaderFile],
files: isNpmTestLoader ? [testLoaderFile, 'tests.map'] : [testLoaderFile], // don't loose the sourcemaps
srcDir: 'assets',
destDir: 'app'
});
Expand Down

0 comments on commit c072664

Please sign in to comment.