update npmTasks condition