File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,9 @@ module.exports = {
6969 } ,
7070
7171 treeForTestSupport ( ) {
72- let trees = [ this . compiler . treeForTests ( ) ] ;
72+ let trees = [ ] ;
7373 if ( this . compiler ) {
74+ trees . push ( this . compiler . treeForTests ( ) ) ;
7475 let babel = this . project . addons . find ( addon => addon . name === 'ember-cli-babel' ) ;
7576 let tree = this . compiler . treeForTestSupport ( ) ;
7677 trees . push ( babel . transpileTree ( tree ) ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ module.exports = Command.extend({
4747
4848 // We can only do anything meaningful with declarations for files in addon/ or src/
4949 if ( this . _isAddonFile ( declSource ) ) {
50- let declDest = declSource . replace ( / ^ a d d o n \/ / , '' ) ;
50+ let declDest = declSource
51+ . replace ( / ^ a d d o n \/ / , '' )
52+ . replace ( / ^ a d d o n - t e s t - s u p p o r t / , 'test-support' ) ;
5153 this . _copyFile ( output , `${ outDir } /${ declSource } ` , declDest ) ;
5254 } else if ( this . _isSrcFile ( declSource ) ) {
5355 this . _copyFile ( output , `${ outDir } /${ declSource } ` , declSource ) ;
You can’t perform that action at this time.
0 commit comments