Skip to content

Commit 036a418

Browse files
committed
fix: show warning for less only when the project has nativescript-dev-less plugin as dependency
1 parent 497605a commit 036a418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/controllers/migrate-controller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
311311

312312
private async migrateDependency(dependency: IMigrationDependency, projectData: IProjectData): Promise<void> {
313313
const hasDependency = this.hasDependency(dependency, projectData);
314-
if (dependency.warning) {
314+
if (hasDependency && dependency.warning) {
315315
this.$logger.warn(dependency.warning);
316316
}
317317

0 commit comments

Comments
 (0)