mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
30 lines
673 B
TypeScript
30 lines
673 B
TypeScript
// Loaded from https://deno.land/x/dnit@dnit-v1.11.0/main.ts
|
|
|
|
|
|
import { setupLogging, log, flags } from "./mod.ts";
|
|
import { launch } from "./launch.ts";
|
|
import { version } from './version.ts';
|
|
|
|
export async function main() {
|
|
const args = flags.parse(Deno.args);
|
|
if (args["version"] === true) {
|
|
console.log(`dnit ${version}`);
|
|
Deno.exit(0);
|
|
}
|
|
|
|
await setupLogging();
|
|
const internalLogger = log.getLogger("internal");
|
|
|
|
if (args["verbose"] !== undefined) {
|
|
internalLogger.levelName = "INFO";
|
|
}
|
|
|
|
internalLogger.info(`starting dnit launch using version: ${version}`);
|
|
|
|
launch(internalLogger).then((st) => {
|
|
Deno.exit(st.code);
|
|
});
|
|
}
|
|
|
|
main();
|