Skip to content

Commit

Permalink
Update package.json to link to mono repo paths (#563)
Browse files Browse the repository at this point in the history
Following the `package.json` definition, we can specify where in the
repository the package is located. This will make commands like `npm
repo @appsignal/nodejs` link to the sub directory directly. And
hopefully the repository will be listed correctly on npmjs.org with this
change.

We can also look at configuring things like the homepage, contributors
list and other useful metadata if this works.

Because I've updated all `package.json` files, all packages have a
changeset for it.

https://docs.npmjs.com/cli/v8/configuring-npm/package-json#repository
  • Loading branch information
tombruijn authored Jan 20, 2022
1 parent 733ee15 commit ddc7e19
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 0 deletions.
Empty file.
6 changes: 6 additions & 0 deletions packages/apollo-server/.changesets/update-package-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "change"
---

Update package metadata to specify the package repository.
5 changes: 5 additions & 0 deletions packages/apollo-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"main": "dist/index",
"types": "dist/index",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/appsignal/appsignal-nodejs.git",
"directory": "packages/apollo-server"
},
"dependencies": {
"@appsignal/nodejs": "=2.2.10",
"apollo-server-plugin-base": "^0.10.3",
Expand Down
6 changes: 6 additions & 0 deletions packages/express/.changesets/update-package-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "change"
---

Update package metadata to specify the package repository.
5 changes: 5 additions & 0 deletions packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"main": "dist/index",
"types": "dist/index",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/appsignal/appsignal-nodejs.git",
"directory": "packages/express"
},
"dependencies": {
"@appsignal/nodejs": "=2.2.10",
"tslib": "^2.0.3"
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions packages/koa/.changesets/update-package-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "change"
---

Update package metadata to specify the package repository.
5 changes: 5 additions & 0 deletions packages/koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"main": "dist/index",
"types": "dist/index",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/appsignal/appsignal-nodejs.git",
"directory": "packages/koa"
},
"dependencies": {
"@appsignal/types": "^2.1.5",
"@appsignal/nodejs": "=2.2.10",
Expand Down
6 changes: 6 additions & 0 deletions packages/nextjs/.changesets/update-package-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "change"
---

Update package metadata to specify the package repository.
5 changes: 5 additions & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"main": "dist/index",
"types": "dist/index",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/appsignal/appsignal-nodejs.git",
"directory": "packages/nextjs"
},
"dependencies": {
"@appsignal/nodejs": "=2.2.10",
"tslib": "^2.0.3"
Expand Down
6 changes: 6 additions & 0 deletions packages/nodejs/.changesets/update-package-metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "change"
---

Update package metadata to specify the package repository.
5 changes: 5 additions & 0 deletions packages/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"main": "dist/index",
"types": "dist/index",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/appsignal/appsignal-nodejs.git",
"directory": "packages/nodejs"
},
"bin": {
"appsignal-diagnose": "./bin/diagnose"
},
Expand Down

0 comments on commit ddc7e19

Please sign in to comment.