Skip to content

Commit

Permalink
chore: lerna -> bump
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 3, 2021
1 parent 0c832aa commit 99ee9c7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions builder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// TODO: temporary
const { promisify } = require('util');
const { execFile } = require('child_process');
const { packages } = require('./bump.json');

const ENV = { ...process.env, FORCE_COLOR: '1' };
const BIN = require.resolve('bundt');
const run = promisify(execFile);

(async function () {
for (let dir of packages) {
console.log('~> "%s"', dir);
let output = await run(BIN, ['index.js'], { env:ENV, cwd:dir });
process.stdout.write(output.stdout.substring(1));
}
})().catch(err => {
console.log('ERROR', err.stack);
process.exit(1);
});
4 changes: 2 additions & 2 deletions lerna.json → bump.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "1.0.12",
"npmClient": "pnpm",
"packages": [
"packages/*"
"packages/sirv",
"packages/sirv-cli"
]
}
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": "node builder",
"test": "uvu -r esm tests -i public -i helpers"
},
"devDependencies": {
"bump": "1.0.0-next.1",
"bundt": "1.0.1",
"esm": "3.2.25",
"httpie": "2.0.0-next.7",
"lerna": "3.22.0",
"mime": "2.4.6",
"selfsigned": "1.10.7",
"uvu": "^0.3.0"
Expand Down

0 comments on commit 99ee9c7

Please sign in to comment.