Skip to content

Commit

Permalink
chore: remove lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Sep 6, 2023
1 parent d5a69b4 commit a9d222d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
12 changes: 12 additions & 0 deletions bump.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "1.0.0-next.22",
"packages": [
"packages/cluster",
"packages/parse",
"packages/polka",
"packages/redirect",
"packages/send",
"packages/url"
],
"message": "v{VERSION}"
}
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"url": "https://lukeed.com"
},
"scripts": {
"build": "lerna exec bundt index.js",
"build": "bun run scripts/build.ts",
"test": "uvu -r esm -i util packages test"
},
"devDependencies": {
"bump": "1.0.0-next.1",
"bundt": "1.1.2",
"esm": "3.2.25",
"httpie": "1.1.2",
"lerna": "3.13.4",
"uvu": "0.5.1"
},
"workspaces": [
Expand Down
20 changes: 20 additions & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { readdir } from 'node:fs/promises';
import { execFileSync } from 'node:child_process';
import { join, resolve } from 'node:path';

let bundt = require.resolve('bundt');
let root = resolve('./packages');

let packages = await readdir(root, {
withFileTypes: true,
});

for (let pkg of packages) {
if (pkg.isFile()) continue;

console.log('>>', pkg.name);
execFileSync(bundt, ['index.js'], {
cwd: join(root, pkg.name),
stdio: 'inherit',
});
}

0 comments on commit a9d222d

Please sign in to comment.