feat(preprocessing): combine build_all and preprocessing

This commit is contained in:
Haoyu Xu
2023-01-16 18:42:42 -05:00
parent e58659d8fc
commit c31a5fcdf9
4 changed files with 33 additions and 32 deletions

8
lib/exec.js Normal file
View File

@@ -0,0 +1,8 @@
import { execSync } from 'child_process'
export default function (config) {
for (const [key, _] of Object.entries(config.operators)) {
if (key.startsWith('_')) break;
console.log(execSync(`O=${key} node preprocessing.js && O=${key} pnpm run build`).toString());
}
}