diff --git a/.scripts/common.js b/.scripts/common.js index 87d900797b..39d00cb557 100644 --- a/.scripts/common.js +++ b/.scripts/common.js @@ -77,17 +77,15 @@ function preparePackage(tasks, package, version) { } } }); + projectTasks.push({ + title: `${pkg.name}: install npm dependencies`, + task: async () => { + await fs.remove(path.join(projectRoot, 'node_modules')) + await execa('npm', ['i'], { cwd: projectRoot }); + } + }); } - - projectTasks.push({ - title: `${pkg.name}: install npm dependencies`, - task: async () => { - await fs.remove(path.join(projectRoot, 'node_modules')) - await execa('npm', ['i'], { cwd: projectRoot }); - } - }); - if (package !== 'core') { projectTasks.push({ title: `${pkg.name}: npm link @ionic/core`,