From c669713317977639c761e49f282d083c293a4e26 Mon Sep 17 00:00:00 2001 From: Andrew Luca Date: Tue, 17 Aug 2021 19:11:11 +0300 Subject: [PATCH] chore: add repository for all packages.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > If the package.json for your package is not in the root directory (for example if it is part of a monorepo), you can specify the directory in which it lives: > ```json > "repository": { > "type" : "git", > "url" : "https://github.com/facebook/react.git", > "directory": "packages/react-dom" > } > ``` > — https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository I use a lot https://njt.vercel.app/ to jump to different packages information, and with this PR we can know exactly what package in what folder lives Made the changes with a script to make it easier 🙂 https://gist.github.com/iamandrewluca/5cc85b56a595056f0099d04ed6dd8a79 --- packages/i18n/package.json | 3 ++- packages/rules/package.json | 6 +++++- packages/vee-validate/package.json | 6 +++++- packages/zod/package.json | 6 +++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/packages/i18n/package.json b/packages/i18n/package.json index a73fe367c..15aab20a3 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -17,7 +17,8 @@ ], "repository": { "type": "git", - "url": "git+https://github.com/logaretm/vee-validate.git" + "url": "https://github.com/logaretm/vee-validate.git", + "directory": "packages/i18n" }, "scripts": { "test": "echo \"Error: run tests from root\" && exit 1" diff --git a/packages/rules/package.json b/packages/rules/package.json index d6fd4094a..e8c0ae956 100644 --- a/packages/rules/package.json +++ b/packages/rules/package.json @@ -9,7 +9,11 @@ "main": "dist/vee-validate-rules.js", "types": "dist/vee-validate-rules.d.ts", "homepage": "https://vee-validate.logaretm.com/v4/guide/global-validators", - "repository": "https://github.com/logaretm/vee-validate", + "repository": { + "url": "https://github.com/logaretm/vee-validate.git", + "type": "git", + "directory": "packages/rules" + }, "sideEffects": false, "keywords": [ "VueJS", diff --git a/packages/vee-validate/package.json b/packages/vee-validate/package.json index 4c6dc1c74..a739430ed 100644 --- a/packages/vee-validate/package.json +++ b/packages/vee-validate/package.json @@ -9,7 +9,11 @@ "main": "dist/vee-validate.js", "types": "dist/vee-validate.d.ts", "homepage": "https://vee-validate.logaretm.com/", - "repository": "https://github.com/logaretm/vee-validate", + "repository": { + "url": "https://github.com/logaretm/vee-validate.git", + "type": "git", + "directory": "packages/vee-validate" + }, "sideEffects": false, "keywords": [ "VueJS", diff --git a/packages/zod/package.json b/packages/zod/package.json index 32ba35008..55ffcd6a3 100644 --- a/packages/zod/package.json +++ b/packages/zod/package.json @@ -9,7 +9,11 @@ "main": "dist/vee-validate-zod.js", "types": "dist/vee-validate-zod.d.ts", "homepage": "https://vee-validate.logaretm.com/v4/guide/global-validators", - "repository": "https://github.com/logaretm/vee-validate", + "repository": { + "url": "https://github.com/logaretm/vee-validate.git", + "type": "git", + "directory": "packages/zod" + }, "sideEffects": false, "keywords": [ "VueJS",