From 0ef534c9df44816cd64d5142f41621034e5b70db Mon Sep 17 00:00:00 2001 From: Andrew Luca Date: Thu, 14 Oct 2021 21:40:21 +0300 Subject: [PATCH] fix(package): add repository directory into package.json for all @casl/* packages (#560) 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 --- packages/casl-ability/package.json | 3 ++- packages/casl-angular/package.json | 3 ++- packages/casl-aurelia/package.json | 3 ++- packages/casl-mongoose/package.json | 3 ++- packages/casl-prisma/package.json | 3 ++- packages/casl-react/package.json | 3 ++- packages/casl-vue/package.json | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/packages/casl-ability/package.json b/packages/casl-ability/package.json index 32328e6bf..361fe4e7b 100644 --- a/packages/casl-ability/package.json +++ b/packages/casl-ability/package.json @@ -21,7 +21,8 @@ "sideEffects": false, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-ability" }, "homepage": "https://casl.js.org", "publishConfig": { diff --git a/packages/casl-angular/package.json b/packages/casl-angular/package.json index 771e3b817..23a9eb308 100644 --- a/packages/casl-angular/package.json +++ b/packages/casl-angular/package.json @@ -14,7 +14,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-angular" }, "homepage": "https://casl.js.org", "publishConfig": { diff --git a/packages/casl-aurelia/package.json b/packages/casl-aurelia/package.json index bbbd7359d..19dfa1715 100644 --- a/packages/casl-aurelia/package.json +++ b/packages/casl-aurelia/package.json @@ -14,7 +14,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-aurelia" }, "homepage": "https://casl.js.org", "publishConfig": { diff --git a/packages/casl-mongoose/package.json b/packages/casl-mongoose/package.json index e1e4fd6c6..bffc966d1 100644 --- a/packages/casl-mongoose/package.json +++ b/packages/casl-mongoose/package.json @@ -13,7 +13,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-mongoose" }, "publishConfig": { "access": "public" diff --git a/packages/casl-prisma/package.json b/packages/casl-prisma/package.json index d7bedc8a7..107736073 100644 --- a/packages/casl-prisma/package.json +++ b/packages/casl-prisma/package.json @@ -13,7 +13,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-prisma" }, "publishConfig": { "access": "public" diff --git a/packages/casl-react/package.json b/packages/casl-react/package.json index 7c02459c1..ba42aef5c 100644 --- a/packages/casl-react/package.json +++ b/packages/casl-react/package.json @@ -14,7 +14,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-react" }, "homepage": "https://casl.js.org", "publishConfig": { diff --git a/packages/casl-vue/package.json b/packages/casl-vue/package.json index e2c0b7ac6..26559e5c8 100644 --- a/packages/casl-vue/package.json +++ b/packages/casl-vue/package.json @@ -14,7 +14,8 @@ }, "repository": { "type": "git", - "url": "https://github.com/stalniy/casl.git" + "url": "https://github.com/stalniy/casl.git", + "directory": "packages/casl-vue" }, "homepage": "https://casl.js.org", "publishConfig": {