2025-03-04 13:55:17 -05:00
|
|
|
/**
|
|
|
|
* Claude Task Master
|
|
|
|
* A task management system for AI-driven development with Claude
|
|
|
|
*/
|
|
|
|
|
|
|
|
// This file serves as the main entry point for the package
|
|
|
|
// The primary functionality is provided through the CLI commands
|
|
|
|
|
2025-03-04 14:11:57 -05:00
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
import { dirname, resolve } from 'path';
|
|
|
|
import { createRequire } from 'module';
|
|
|
|
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
|
|
const __dirname = dirname(__filename);
|
|
|
|
const require = createRequire(import.meta.url);
|
|
|
|
|
2025-03-04 13:55:17 -05:00
|
|
|
// Export the path to the dev.js script for programmatic usage
|
2025-03-04 14:11:57 -05:00
|
|
|
export const devScriptPath = resolve(__dirname, './scripts/dev.js');
|
2025-03-04 13:55:17 -05:00
|
|
|
|
|
|
|
// Export a function to initialize a new project programmatically
|
2025-03-04 14:11:57 -05:00
|
|
|
export const initProject = async (options = {}) => {
|
|
|
|
const init = await import('./scripts/init.js');
|
2025-03-04 13:55:17 -05:00
|
|
|
return init.initializeProject(options);
|
|
|
|
};
|
|
|
|
|
|
|
|
// Export version information
|
2025-03-04 14:11:57 -05:00
|
|
|
export const version = require('./package.json').version;
|