Skip to content

Commit aa32239

Browse files
greysteilaeschright
authored andcommitted
doc: update package.json docs to include repository.directory details (#140)
PR-URL: #140 Credit: @greysteil Reviewed-By: @aeschright
1 parent e37c0cd commit aa32239

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/files/package.json.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,15 @@ shortcut syntax you use for `npm install`:
393393

394394
"repository": "gitlab:user/repo"
395395

396+
If the `package.json` for your package is not in the root directory (for example
397+
if it is part of a monorepo), you can specify the directory in which it lives:
398+
399+
"repository": {
400+
"type" : "git",
401+
"url" : "https://github.com/facebook/react.git",
402+
"directory": "packages/react-dom"
403+
}
404+
396405
## scripts
397406

398407
The "scripts" property is a dictionary containing script commands that are run

0 commit comments

Comments
 (0)