build.mjs 390 B

1234567891011121314
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import { workingDirectory, getProgramFolders } from '../utils.mjs';
  4. // Save external programs binaries to the output directory.
  5. import './dump.mjs';
  6. // Build the programs.
  7. await Promise.all(
  8. getProgramFolders().map(async (folder) => {
  9. await $`cd ${path.join(workingDirectory, folder)}`.quiet();
  10. await $`cargo build-sbf ${argv._}`;
  11. })
  12. );