From ddc7e19277409552db671e68bdfd88fea95e8f57 Mon Sep 17 00:00:00 2001 From: Tom de Bruijn Date: Thu, 20 Jan 2022 12:26:42 +0100 Subject: [PATCH] Update package.json to link to mono repo paths (#563) 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 --- packages/apollo-server/.changesets/.gitkeep | 0 .../apollo-server/.changesets/update-package-metadata.md | 6 ++++++ packages/apollo-server/package.json | 5 +++++ packages/express/.changesets/update-package-metadata.md | 6 ++++++ packages/express/package.json | 5 +++++ packages/koa/.changesets/.gitkeep | 0 packages/koa/.changesets/update-package-metadata.md | 6 ++++++ packages/koa/package.json | 5 +++++ packages/nextjs/.changesets/update-package-metadata.md | 6 ++++++ packages/nextjs/package.json | 5 +++++ packages/nodejs/.changesets/update-package-metadata.md | 6 ++++++ packages/nodejs/package.json | 5 +++++ 12 files changed, 55 insertions(+) create mode 100644 packages/apollo-server/.changesets/.gitkeep create mode 100644 packages/apollo-server/.changesets/update-package-metadata.md create mode 100644 packages/express/.changesets/update-package-metadata.md create mode 100644 packages/koa/.changesets/.gitkeep create mode 100644 packages/koa/.changesets/update-package-metadata.md create mode 100644 packages/nextjs/.changesets/update-package-metadata.md create mode 100644 packages/nodejs/.changesets/update-package-metadata.md diff --git a/packages/apollo-server/.changesets/.gitkeep b/packages/apollo-server/.changesets/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/packages/apollo-server/.changesets/update-package-metadata.md b/packages/apollo-server/.changesets/update-package-metadata.md new file mode 100644 index 00000000..ff4fe478 --- /dev/null +++ b/packages/apollo-server/.changesets/update-package-metadata.md @@ -0,0 +1,6 @@ +--- +bump: "patch" +type: "change" +--- + +Update package metadata to specify the package repository. diff --git a/packages/apollo-server/package.json b/packages/apollo-server/package.json index 5f258f32..3cdb20eb 100644 --- a/packages/apollo-server/package.json +++ b/packages/apollo-server/package.json @@ -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", diff --git a/packages/express/.changesets/update-package-metadata.md b/packages/express/.changesets/update-package-metadata.md new file mode 100644 index 00000000..ff4fe478 --- /dev/null +++ b/packages/express/.changesets/update-package-metadata.md @@ -0,0 +1,6 @@ +--- +bump: "patch" +type: "change" +--- + +Update package metadata to specify the package repository. diff --git a/packages/express/package.json b/packages/express/package.json index c2e2b1ac..31286ed9 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -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" diff --git a/packages/koa/.changesets/.gitkeep b/packages/koa/.changesets/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/packages/koa/.changesets/update-package-metadata.md b/packages/koa/.changesets/update-package-metadata.md new file mode 100644 index 00000000..ff4fe478 --- /dev/null +++ b/packages/koa/.changesets/update-package-metadata.md @@ -0,0 +1,6 @@ +--- +bump: "patch" +type: "change" +--- + +Update package metadata to specify the package repository. diff --git a/packages/koa/package.json b/packages/koa/package.json index 0be83755..cf7d8253 100644 --- a/packages/koa/package.json +++ b/packages/koa/package.json @@ -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", diff --git a/packages/nextjs/.changesets/update-package-metadata.md b/packages/nextjs/.changesets/update-package-metadata.md new file mode 100644 index 00000000..ff4fe478 --- /dev/null +++ b/packages/nextjs/.changesets/update-package-metadata.md @@ -0,0 +1,6 @@ +--- +bump: "patch" +type: "change" +--- + +Update package metadata to specify the package repository. diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 86fa02fd..217d9174 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -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" diff --git a/packages/nodejs/.changesets/update-package-metadata.md b/packages/nodejs/.changesets/update-package-metadata.md new file mode 100644 index 00000000..ff4fe478 --- /dev/null +++ b/packages/nodejs/.changesets/update-package-metadata.md @@ -0,0 +1,6 @@ +--- +bump: "patch" +type: "change" +--- + +Update package metadata to specify the package repository. diff --git a/packages/nodejs/package.json b/packages/nodejs/package.json index ba66e2fd..6e4f84ef 100644 --- a/packages/nodejs/package.json +++ b/packages/nodejs/package.json @@ -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" },