feat(scripts): Add script to create a @discordjs package (#8711)

This commit is contained in:
Suneet Tipirneni
2022-10-06 20:38:58 -04:00
committed by GitHub
parent 35bfba0c50
commit f85022162d
22 changed files with 923 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
import { program } from 'commander';
import { createPackage } from '../dist/index.mjs';
program
.description('A script for creating discord.js packages.')
.argument('<name>', 'The name of the new package.')
.argument('[description]', 'The description of the new package.');
program.parse();
const [packageName, description] = program.args;
console.log(`Creating package @discordjs/${packageName}...`);
await createPackage(packageName, description);
console.log('Done!');