mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +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));
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user