fix(#25): rename tasks.js to tasks.cjs for CommonJS compatibility

This commit is contained in:
Jason Woltje
2026-01-29 21:19:52 -06:00
parent 8c65e0dac9
commit ce01b4c081
2 changed files with 24 additions and 24 deletions

View File

@@ -295,7 +295,7 @@ function showHelp() {
Mosaic Tasks CLI
Usage:
node tasks.js <command> [options]
node tasks.cjs <command> [options]
Commands:
create Create a new task
@@ -346,22 +346,22 @@ Environment Variables:
Examples:
# Create a task
node tasks.js create --title "Review PR #123" --priority HIGH
node tasks.cjs create --title "Review PR #123" --priority HIGH
# List high priority tasks
node tasks.js list --priority HIGH
node tasks.cjs list --priority HIGH
# List overdue tasks
node tasks.js list --overdue
node tasks.cjs list --overdue
# Get task details
node tasks.js get abc-123-def-456
node tasks.cjs get abc-123-def-456
# Mark task as completed
node tasks.js update abc-123-def-456 --status COMPLETED
node tasks.cjs update abc-123-def-456 --status COMPLETED
# Delete a task
node tasks.js delete abc-123-def-456
node tasks.cjs delete abc-123-def-456
`);
}
@@ -401,7 +401,7 @@ async function main() {
default:
console.error(`Unknown command: ${command}`);
console.error('Run "node tasks.js help" for usage information');
console.error('Run "node tasks.cjs help" for usage information');
process.exit(1);
}
} catch (error) {