diff --git a/scripts/lib/lerna.mjs b/scripts/lib/lerna.mjs index 386a09c07..17eb2c020 100644 --- a/scripts/lib/lerna.mjs +++ b/scripts/lib/lerna.mjs @@ -11,4 +11,3 @@ const runLerna = async (args = []) => export const ls = async () => JSON.parse((await execLerna('ls --json')).stdout); export const exec = async (args = []) => await runLerna(['exec', ...args]); -export const bootstrap = async (args = []) => runLerna(['bootstrap', ...args]); diff --git a/scripts/set-capacitor-version.mjs b/scripts/set-capacitor-version.mjs index e9027abab..91abb060c 100644 --- a/scripts/set-capacitor-version.mjs +++ b/scripts/set-capacitor-version.mjs @@ -1,7 +1,8 @@ import { PROJECTS, PEERPROJECTS } from './lib/capacitor.mjs'; import { execute } from './lib/cli.mjs'; +import { root } from './lib/repo.mjs'; +import { run } from './lib/subprocess.mjs'; import { setLernaPackageDependencies } from './lib/version.mjs'; -import { bootstrap } from './lib/lerna.mjs'; execute(async () => { const packages = Object.fromEntries( @@ -13,5 +14,5 @@ execute(async () => { await setLernaPackageDependencies(packages, 'devDependencies'); await setLernaPackageDependencies(peerPackages, 'peerDependencies'); - await bootstrap(); + await run('npm', ['install'], { cwd: root, stdio: 'inherit' }); }); diff --git a/scripts/update-all.mjs b/scripts/update-all.mjs index b3bc60bcb..7c883e73e 100644 --- a/scripts/update-all.mjs +++ b/scripts/update-all.mjs @@ -1,6 +1,7 @@ import { PROJECTS } from './lib/capacitor.mjs'; import { execute } from './lib/cli.mjs'; -import { bootstrap } from './lib/lerna.mjs'; +import { root } from './lib/repo.mjs'; +import { run } from './lib/subprocess.mjs'; import { getLatestVersion, setLernaPackageDependencies, @@ -18,5 +19,5 @@ execute(async () => { await setLernaPackageDependencies(packages, 'devDependencies'); await setLernaPackageDependencies(packages, 'peerDependencies'); - await bootstrap(); + await run('npm', ['install'], { cwd: root, stdio: 'inherit' }); });