File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/devextreme-cli/src/applications Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const modifyJson = require('../utility/modify-json-file');
1313const schematicsVersion = latestVersions [ 'devextreme-schematics' ] || 'latest' ;
1414
1515const minNgCliVersion = new semver ( '17.0.0' ) ;
16+ const ngCliWithZoneless = new semver ( '20.0.0' ) ;
1617
1718async function runSchematicCommand ( schematicCommand , options , evaluatingOptions ) {
1819 const collectionName = 'devextreme-schematics' ;
@@ -98,6 +99,7 @@ const bumpAngular = (appPath, versionTag) => {
9899const create = async ( appName , options ) => {
99100 const layout = await getLayoutInfo ( options . layout ) ;
100101 const depsVersionTag = extractDepsVersionTag ( options ) ;
102+ const currentNgVersion = ngVersion . getNgCliVersion ( ) . version ;
101103
102104 const commandArguments = [
103105 'new' ,
@@ -110,6 +112,10 @@ const create = async(appName, options) => {
110112 '--ssr=false'
111113 ] ;
112114
115+ if ( ngCliWithZoneless . compare ( currentNgVersion ) <= 0 ) {
116+ commandArguments . push ( '--zoneless=false' ) ;
117+ }
118+
113119 await runNgCommand ( commandArguments , options ) ;
114120
115121 const appPath = path . join ( process . cwd ( ) , appName ) ;
You can’t perform that action at this time.
0 commit comments