From 3c10b3ceb24b47177195d304bab11f058d76b429 Mon Sep 17 00:00:00 2001 From: Nathan Marley Date: Sun, 1 Jun 2025 17:13:43 -0500 Subject: [PATCH] fix: switch to ESM export to avoid mixed format The CLI entrypoint was using `module.exports` alongside ESM `import` statements, resulting in an invalid mixed module format. Replaced the CommonJS export with a proper ESM `export` to maintain consistency and prevent module resolution issues. --- bin/task-master.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/task-master.js b/bin/task-master.js index ea1c9176..a7d01c07 100755 --- a/bin/task-master.js +++ b/bin/task-master.js @@ -373,8 +373,4 @@ if (process.argv.length <= 2) { } // Add exports at the end of the file -if (typeof module !== 'undefined') { - module.exports = { - detectCamelCaseFlags - }; -} +export { detectCamelCaseFlags };