From 83f77e2972908e184ff44910cc3325e2848ac009 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 2 Jan 2020 16:02:47 -0500 Subject: [PATCH] chore(release): update release script to pass proper path --- .scripts/common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.scripts/common.js b/.scripts/common.js index c1621f2fec..b8eff52c36 100644 --- a/.scripts/common.js +++ b/.scripts/common.js @@ -248,6 +248,7 @@ function prepareDevPackage(tasks, package, version) { function updatePackageVersions(tasks, packages, version) { packages.forEach(package => { updatePackageVersion(tasks, package, version); + tasks.push({ title: `${package} update @ionic/core dependency, if present ${tc.dim(`(${version})`)}`, task: async () => { @@ -258,6 +259,7 @@ function updatePackageVersions(tasks, packages, version) { } } }); + if (package === 'packages/react-router') { tasks.push({ title: `${package} update @ionic/react dependency, if present ${tc.dim(`(${version})`)}`, @@ -275,7 +277,7 @@ function updatePackageVersion(tasks, package, version) { let projectRoot = projectPath(package); if (package === 'packages/angular-server' || package === 'angular') { - projectRoot = path.join(projectPath, 'dist') + projectRoot = path.join(projectRoot, 'dist') } tasks.push({