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 Feb 14, 2019
1 parent e37c0cd commit aa32239
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 aa32239

Please sign in to comment.