build-src.mjs 339 B

12345678910
  1. #!/usr/bin/env zx
  2. import { $, argv } from 'zx';
  3. // Build the source code using the provided build type.
  4. // - `library` for the main library build which includes a minified iife build.
  5. // - `package` for sub-package builds.
  6. $.stdio = 'inherit';
  7. const flags = ['--config', `internals/tsup.config.${argv._[0]}.ts`];
  8. await $`tsup ${flags}`;