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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 45 additions and 21 deletions

View file

@ -37,7 +37,8 @@
],
"repository": {
"type": "git",
"url": "https://github.com/discordjs/discord.js.git"
"url": "https://github.com/discordjs/discord.js.git",
"directory": "apps/guide"
},
"bugs": {
"url": "https://github.com/discordjs/discord.js/issues"

View file

@ -38,7 +38,8 @@
],
"repository": {
"type": "git",
"url": "https://github.com/discordjs/discord.js.git"
"url": "https://github.com/discordjs/discord.js.git",
"directory": "apps/website"
},
"bugs": {
"url": "https://github.com/discordjs/discord.js/issues"

View file

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

View file

@ -24,7 +24,8 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/discordjs/discord.js.git"
"url": "https://github.com/discordjs/discord.js.git",
"directory": "packages/api-extractor-utils"
},
"bugs": {
"url": "https://github.com/discordjs/discord.js/issues"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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"

View file

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

View file

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

View file

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

View file

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