From c215007174e7ab5fd0a0470e879eba1295123833 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 10 Sep 2021 10:23:36 +0200 Subject: chore: preconditions for pnpm migration (#1903) --- scripts/postinstall.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/postinstall.js (limited to 'scripts/postinstall.js') diff --git a/scripts/postinstall.js b/scripts/postinstall.js new file mode 100644 index 000000000..84e7492ef --- /dev/null +++ b/scripts/postinstall.js @@ -0,0 +1,8 @@ +const { exec } = require('child_process'); + +// eslint-disable-next-line no-console +const log = (err, stdout, stderr) => console.log(err || stdout || stderr); + +if (!process.env.BUNDLING) { + exec('npx lerna run build', log); +} -- cgit v1.2.3-70-g09d2