SpaceNinjaServer/scripts/new-plugin-ts.js
2025-06-30 11:24:27 +08:00

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");