Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
386 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | #!/usr/bin/env node
|
---|
| 2 |
|
---|
| 3 | "use strict";
|
---|
| 4 |
|
---|
| 5 | import "../tools/exit.cjs";
|
---|
| 6 |
|
---|
| 7 | import fs from "fs"
|
---|
| 8 | import path from "path"
|
---|
| 9 | import program from "commander"
|
---|
| 10 |
|
---|
| 11 | import { run_cli } from "../lib/cli.js"
|
---|
| 12 |
|
---|
| 13 | const packageJson = {
|
---|
| 14 | name: "terser",
|
---|
| 15 | version: "experimental module CLI"
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | run_cli({ program, packageJson, fs, path }).catch((error) => {
|
---|
| 19 | console.error(error);
|
---|
| 20 | process.exitCode = 1;
|
---|
| 21 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.