mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
chore: Add directory to package.json (#9456)
* chore: Add directory to package.json * fix: run fmt * fix: undo formatting
This commit is contained in:
@@ -46,6 +46,9 @@ export async function createPackage(packageName: string, packageDescription?: st
|
||||
// Edit changelog script
|
||||
packageJSON.scripts.changelog = packageJSON.scripts.changelog.replace('{name}', packageName);
|
||||
|
||||
// Edit repository directory
|
||||
packageJSON.repository.directory = packageJSON.repository.directory.replace('{name}', packageName);
|
||||
|
||||
// Create package.json
|
||||
await writeFile(`package.json`, JSON.stringify(packageJSON, null, 2));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user