build-sbf.mjs 284 B

12345678
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import { cliArguments, workingDirectory } from '../utils.mjs';
  4. const [folder, ...args] = cliArguments();
  5. const manifestPath = path.join(workingDirectory, folder, 'Cargo.toml');
  6. await $`cargo-build-sbf --manifest-path ${manifestPath} ${args}`;