chore: Add directory to package.json (#9456)

* chore: Add directory to package.json

* fix: run fmt

* fix: undo formatting
This commit is contained in:
Michael H
2023-04-26 00:27:44 +10:00
committed by GitHub
parent 8153ca99ee
commit 1b4d34cebf
22 changed files with 45 additions and 21 deletions

View File

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

View File

@@ -36,7 +36,8 @@
"keywords": [],
"repository": {
"type": "git",
"url": "git+https://github.com/discordjs/discord.js.git"
"url": "https://github.com/discordjs/discord.js.git",
"directory": "packages/{name}"
},
"bugs": {
"url": "https://github.com/discordjs/discord.js/issues"