Skip to content

Commit 1cbf2df

Browse files
committed
fix devextreme-schematics resolving logic
1 parent 9bc9466 commit 1cbf2df

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/devextreme-cli/src/applications/application.angular.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,9 @@ const migrateConfigComponents = async(options = {}) => {
220220
commandArguments.push('-p', '@angular-devkit/schematics-cli');
221221
}
222222

223-
if(!collectionPath) {
224-
commandArguments.push('-p', `${collectionName}@${schematicsVersion}`);
225-
}
223+
commandArguments.push('-p', `${collectionName}@${schematicsVersion}`);
226224

227-
const collectionSpecifier = collectionPath
228-
? `${collectionPath.replace(/\\/g, '/')}:migrate-config-components`
229-
: `${collectionName}:migrate-config-components`;
225+
const collectionSpecifier = `${collectionName}:migrate-config-components`;
230226

231227
commandArguments.push('schematics', collectionSpecifier);
232228

0 commit comments

Comments
 (0)