From 99ee9c7f1997d97acb3c389e0348ec5472274e6b Mon Sep 17 00:00:00 2001 From: Luke Edwards Date: Tue, 3 Aug 2021 16:48:34 -0700 Subject: [PATCH] chore: lerna -> bump --- builder.js | 19 +++++++++++++++++++ lerna.json => bump.json | 4 ++-- package.json | 4 ++-- 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 builder.js rename lerna.json => bump.json (51%) diff --git a/builder.js b/builder.js new file mode 100644 index 0000000..f478573 --- /dev/null +++ b/builder.js @@ -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); +}); diff --git a/lerna.json b/bump.json similarity index 51% rename from lerna.json rename to bump.json index 2e1656e..e9e850b 100644 --- a/lerna.json +++ b/bump.json @@ -1,7 +1,7 @@ { "version": "1.0.12", - "npmClient": "pnpm", "packages": [ - "packages/*" + "packages/sirv", + "packages/sirv-cli" ] } diff --git a/package.json b/package.json index 9aeb1ee..ec0a071 100644 --- a/package.json +++ b/package.json @@ -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"