swc/bundler/tests/.cache/deno/a0fc45eac1469f47ed6e2bbaad4b323e856fac7b.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +09:00

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();