14 lines
275 B
JavaScript
Executable File
14 lines
275 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
// Usage:
|
|
// babel-load-options-async.js [filename]
|
|
import babel from "../../lib/index.js";
|
|
|
|
const [, , filename, cwd] = process.argv;
|
|
|
|
(async () => {
|
|
process.stdout.write(
|
|
JSON.stringify(await babel.loadOptionsAsync({ filename, cwd }))
|
|
);
|
|
})();
|