File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const EmberApp = require ( 'ember-cli/lib/broccoli/ember-app' ) ;
4+ const path = require ( 'path' ) ;
5+ const fs = require ( 'fs' ) ;
6+ const { Funnel } = require ( 'broccoli-funnel' ) ;
7+
8+ const testingDir = path . resolve ( __dirname , '../dist/testing' ) ;
9+ const distDir = path . resolve ( __dirname , '../dist' ) ;
10+ const testingFolderExists = fs . existsSync ( testingDir ) ;
411
512module . exports = function ( defaults ) {
613 const app = new EmberApp ( defaults , {
714 'ember-cli-babel' : { enableTypeScriptTransform : true } ,
15+ trees : {
16+ public : new Funnel ( testingFolderExists ? testingDir : distDir , {
17+ files : [ 'ember_debug.js' ] ,
18+ } ) ,
19+ } ,
820 } ) ;
921
1022 return app . toTree ( ) ;
Original file line number Diff line number Diff line change 1212 },
1313 "scripts" : {
1414 "build" : " ember build --environment=testing" ,
15- "test" : " pnpm copy-ember-debug && ember test" ,
16- "copy-ember-debug" : " cp ../dist/ember_debug.js ./public" ,
15+ "test" : " ember test" ,
1716 "test:ember" : " ember test" ,
1817 "ember" : " ember" ,
19- "test-server:ember" : " ember test --serve"
18+ "test-server:ember" : " ember test --serve --watcher node "
2019 },
2120 "devDependencies" : {
2221 "@babel/core" : " ^7.26.0" ,
You can’t perform that action at this time.
0 commit comments