Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Configure repository.directory for monorepo packages
Browse files Browse the repository at this point in the history
This is the standard configuration value for deep-linking into a
package's directory within a monorepo.

npm RFC: https://github.com/npm/rfcs/blob/latest/implemented/0010-monorepo-subdirectory-declaration.md

This will ensure the packages' pages on npmjs.org will link to the
correct directory.

Also, _eventually_, it will ensure the `npm repo` command opens to the
correct location: npm/cli#163

Lastly, this is _required_ for monorepo packages to be successfully
published to the GitHub Package Registry (if that is ever considered in
the future).
https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#publishing-multiple-packages-to-the-same-repository
  • Loading branch information
jasonkarns committed May 6, 2020
1 parent cb56b12 commit 8f229c6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions packages/datafile-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"name": "@optimizely/js-sdk-datafile-manager",
"version": "0.5.0",
"description": "Optimizely Full Stack Datafile Manager",
"repository": {
"type": "git",
"url": "git+https://github.com/optimizely/javascript-sdk.git",
"directory": "packages/datafile-manager"
},
"license": "Apache-2.0",
"engines": {
"node": ">=6.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/event-processor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/optimizely/javascript-sdk.git"
"url": "git+https://github.com/optimizely/javascript-sdk.git",
"directory": "packages/event-processor"
},
"keywords": [
"optimizely"
Expand Down
3 changes: 2 additions & 1 deletion packages/logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/optimizely/javascript-sdk.git"
"url": "git+https://github.com/optimizely/javascript-sdk.git",
"directory": "packages/logging"
},
"keywords": [
"optimizely"
Expand Down
3 changes: 2 additions & 1 deletion packages/optimizely-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/optimizely/javascript-sdk.git"
"url": "git+https://github.com/optimizely/javascript-sdk.git",
"directory": "packages/optimizely-sdk"
},
"license": "Apache-2.0",
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/optimizely/javascript-sdk.git"
"url": "git+https://github.com/optimizely/javascript-sdk.git",
"directory": "packages/utils"
},
"keywords": [
"optimizely"
Expand Down

0 comments on commit 8f229c6

Please sign in to comment.