Skip to content

Commit

Permalink
doc: update package.json docs to include repository.directory details (
Browse files Browse the repository at this point in the history
…#140)

PR-URL: #140

Credit: @greysteil
Reviewed-By: @aeschright
  • Loading branch information
greysteil authored and aeschright committed Jan 29, 2019
1 parent 25573e9 commit 3663cde
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/files/package.json.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,15 @@ shortcut syntax you use for `npm install`:

"repository": "gitlab:user/repo"

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:

"repository": {
"type" : "git",
"url" : "https://github.com/facebook/react.git",
"directory": "packages/react-dom"
}

## scripts

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

0 comments on commit 3663cde

Please sign in to comment.