Skip to content

Commit

Permalink
Internal: Improved code snippet styles in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Aug 28, 2023
1 parent 0fa6659 commit 4124062
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,28 +142,28 @@ The dependency keys can be any strings, but it's recommended to use package name

Examples:

```json
```json5
// Clone 'git@github.com:cksource/foo.git' and check out to 'master'.
{
"foo": "git@github.com:cksource/foo.git"
}
```

```json
```json5
// Short format. Clone 'git@github.com:cksource/foo.git' and check out to branch 'dev'.
{
"@cksource/foo": "cksource/foo#dev"
}
```

```json
```json5
// Clone 'https://github.com/cksource/foo.git' (via HTTPS) and check out to tag 'v1.2.3'.
{
"foo": "https://github.com/cksource/foo.git@v1.2.3"
}
```

```json
```json5
// Clone 'cksource/foo' and check out to the latest available tag.
{
"foo": "cksource/foo@latest"
Expand All @@ -176,7 +176,7 @@ This option allows the user to switch between different states of dependencies e

Example:

```json
```json5
{
"presets": {
"dev": {
Expand Down Expand Up @@ -210,15 +210,16 @@ Not all commands support execution in the root repository. If a command does not

Example config:

```json
```json5
{
"packages": "/workspace/modules",
"$rootRepository": "cksource/root-repository",
"dependencies": {
"foo": "bar"
"@cksource/foo": "cksource/foo"
},
"presets": {
"dev": {
"@cksource/foo": "cksource/foo#dev",
"$rootRepository": "cksource/root-repository#dev"
}
}
Expand Down

0 comments on commit 4124062

Please sign in to comment.