Skip to content

Commit 3c10b3c

Browse files
committed
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.
1 parent e0438c8 commit 3c10b3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bin/task-master.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,4 @@ if (process.argv.length <= 2) {
373373
}
374374

375375
// Add exports at the end of the file
376-
if (typeof module !== 'undefined') {
377-
module.exports = {
378-
detectCamelCaseFlags
379-
};
380-
}
376+
export { detectCamelCaseFlags };

0 commit comments

Comments
 (0)