27 lines
918 B
JavaScript
Raw Normal View History

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
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
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
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
export const version = require('./package.json').version;