Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const modifyJson = require('../utility/modify-json-file');
const schematicsVersion = latestVersions['devextreme-schematics'] || 'latest';

const minNgCliVersion = new semver('17.0.0');
const ngCliWithZoneless = new semver('20.0.0');

async function runSchematicCommand(schematicCommand, options, evaluatingOptions) {
const collectionName = 'devextreme-schematics';
Expand Down Expand Up @@ -98,6 +99,7 @@ const bumpAngular = (appPath, versionTag) => {
const create = async(appName, options) => {
const layout = await getLayoutInfo(options.layout);
const depsVersionTag = extractDepsVersionTag(options);
const currentNgVersion = ngVersion.getNgCliVersion().version;

const commandArguments = [
'new',
Expand All @@ -110,6 +112,10 @@ const create = async(appName, options) => {
'--ssr=false'
];

if(ngCliWithZoneless.compare(currentNgVersion) <= 0) {
commandArguments.push('--zoneless=false');
}

await runNgCommand(commandArguments, options);

const appPath = path.join(process.cwd(), appName);
Expand Down
Loading