Skip to content

Commit

Permalink
chore: Remove lerna bootstrap form scripts (ionic-team#1875)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored and LaravelFreelancerNL committed Dec 19, 2023
1 parent b89ac32 commit 9b80871
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion scripts/lib/lerna.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
5 changes: 3 additions & 2 deletions scripts/set-capacitor-version.mjs
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -13,5 +14,5 @@ execute(async () => {

await setLernaPackageDependencies(packages, 'devDependencies');
await setLernaPackageDependencies(peerPackages, 'peerDependencies');
await bootstrap();
await run('npm', ['install'], { cwd: root, stdio: 'inherit' });
});
5 changes: 3 additions & 2 deletions scripts/update-all.mjs
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -18,5 +19,5 @@ execute(async () => {

await setLernaPackageDependencies(packages, 'devDependencies');
await setLernaPackageDependencies(packages, 'peerDependencies');
await bootstrap();
await run('npm', ['install'], { cwd: root, stdio: 'inherit' });
});

0 comments on commit 9b80871

Please sign in to comment.