Skip to content

Commit

Permalink
docs(repo): clarify how to version pin rulesets (stoplightio#2039)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamietanna committed Jan 27, 2022
1 parent 263dc20 commit 6c47ea1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docs/guides/7-sharing-rulesets.md
Expand Up @@ -116,11 +116,21 @@ extends:
- example-spectral-ruleset
```

Pegging a ruleset on given version is possible:
Pegging a ruleset on given version is possible through a `package.json`:

```json
{
"dependencies": {
"example-spectral-ruleset": "0.2.0"
}
}
```

Or through the use of CDNs for NPM repository, such as [unpkg.com](https://unpkg.com/):

```yaml
extends:
- "example-spectral-ruleset@0.2.0"
- "https://unpkg.com/example-spectral-ruleset@0.2.0"
```

## Filesystem
Expand Down

0 comments on commit 6c47ea1

Please sign in to comment.