Skip to content

Commit c978bcf

Browse files
authored
Merge pull request #4832 from NativeScript/fatme/fix-less-warning
fix: show warning for less only when the project has nativescript-dev-less plugin as dependency
2 parents 497605a + 036a418 commit c978bcf

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)