wasm.mts 426 B

1234567891011
  1. #!/usr/bin/env zx
  2. import 'zx/globals';
  3. import { parseCliArguments } from '../helpers/utils.mts';
  4. // Extract the crate directory from the command-line arguments.
  5. const { manifestPath, args } = parseCliArguments();
  6. // Configure additional arguments here, e.g.:
  7. // ['--arg1', '--arg2', ...args]
  8. const wasmArgs = args;
  9. await $`wasm-pack build --target nodejs --dev ${path.dirname(manifestPath)} --features bincode ${wasmArgs}`;