diff --git a/packages/greenbox-script/babel.config.js b/packages/greenbox-script/babel.config.cjs similarity index 100% rename from packages/greenbox-script/babel.config.js rename to packages/greenbox-script/babel.config.cjs diff --git a/packages/greenbox-script/src/greenbox.ts b/packages/greenbox-script/src/greenbox.ts index a3414aa..bae2f1e 100644 --- a/packages/greenbox-script/src/greenbox.ts +++ b/packages/greenbox-script/src/greenbox.ts @@ -256,7 +256,7 @@ function checkMeta() { const hasFlag = (args: string, ...flags: string[]) => flags.some((f) => args.includes(f)); -function main(args = ""): void { +export function main(args = ""): void { if (hasFlag(args, "--help", "-h")) { printHtml(` Usage: @@ -323,5 +323,3 @@ function main(args = ""): void { `All done! To see your greenboxes, visit: ${link}`, ); } - -module.exports.main = main;