From fef751d718e9fa0f760a89e90a59041e54e9c6e2 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 16 Aug 2018 15:45:10 +0200 Subject: [PATCH] chore(): do not install on build --- .scripts/common.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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`,