wasm.mjs 409 B

1234567891011121314
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import {
  4. cliArguments,
  5. workingDirectory,
  6. } from '../utils.mjs';
  7. // Configure additional arguments here, e.g.:
  8. // ['--arg1', '--arg2', ...cliArguments()]
  9. const buildArgs = cliArguments();
  10. const cratePath = path.join(workingDirectory, 'interface');
  11. // Build the interface.
  12. await $`wasm-pack build --target nodejs --dev ${cratePath} --features bincode ${buildArgs}`;