20 lines
529 B
JavaScript
20 lines
529 B
JavaScript
/**
|
|
* TypeScript Plugin Generator Wrapper
|
|
*/
|
|
|
|
const { PluginGenerator } = require("./create-plugin-core");
|
|
|
|
// Get plugin name from command line arguments
|
|
const pluginName = process.argv[2];
|
|
|
|
if (!pluginName) {
|
|
console.error("❌ Plugin name is required!");
|
|
console.log("Usage: npm run new-plugin-ts <plugin-name>");
|
|
console.log("Example: npm run new-plugin-ts MyAwesomePlugin");
|
|
process.exit(1);
|
|
}
|
|
|
|
// Create TypeScript plugin
|
|
const generator = new PluginGenerator();
|
|
generator.createPlugin(pluginName, "ts");
|