terser.mjs 384 B

12345678910111213141516171819
  1. #!/usr/bin/env node
  2. "use strict";
  3. import '../tools/exit.cjs'
  4. import fs from 'fs'
  5. import path from 'path'
  6. import program from 'commander'
  7. import { _run_cli as run_cli } from '../main.js'
  8. const packageJson = {
  9. name: 'terser',
  10. version: 'development-cli'
  11. }
  12. run_cli({ program, packageJson, fs, path }).catch((error) => {
  13. console.error(error);
  14. process.exitCode = 1;
  15. });