From 036a41809a6ea554d1a6d1959ed7acf3b6b91b43 Mon Sep 17 00:00:00 2001 From: fatme Date: Wed, 10 Jul 2019 17:39:13 +0300 Subject: [PATCH] fix: show warning for less only when the project has nativescript-dev-less plugin as dependency --- lib/controllers/migrate-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controllers/migrate-controller.ts b/lib/controllers/migrate-controller.ts index 621506ca6f..129e4c172f 100644 --- a/lib/controllers/migrate-controller.ts +++ b/lib/controllers/migrate-controller.ts @@ -311,7 +311,7 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`; private async migrateDependency(dependency: IMigrationDependency, projectData: IProjectData): Promise { const hasDependency = this.hasDependency(dependency, projectData); - if (dependency.warning) { + if (hasDependency && dependency.warning) { this.$logger.warn(dependency.warning); }