File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/devextreme-cli/testing Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const path = require('path');
33
44const rimraf = require ( './utils/rimraf-async' ) ;
55const runCommand = require ( '../utility/run-command' ) ;
6+ const packageJsonUtils = require ( '../utility/package-json-utils' ) ;
67
78const appName = 'my-app' ;
89const sandboxPath = path . join ( process . cwd ( ) , './testing/sandbox/angular' ) ;
@@ -45,6 +46,12 @@ exports.createApp = async() => {
4546 silent : true
4647 } ) ;
4748
49+ const scripts = [
50+ { name : 'prestart' , value : 'ngcc --properties es2015 browser module main --async false' }
51+ ] ;
52+ // https://github.com/angular/angular/issues/36278
53+ packageJsonUtils . updateScripts ( path . join ( sandboxPath , appName ) , scripts ) ;
54+
4855 const data = fs . readFileSync ( routingFilePath , 'utf8' ) ;
4956 const result = data . replace ( 'RouterModule.forRoot(routes)' , 'RouterModule.forRoot(routes, {useHash: true})' ) ;
5057 fs . writeFileSync ( routingFilePath , result , 'utf8' ) ;
You can’t perform that action at this time.
0 commit comments