Skip to content

Commit

Permalink
fix: lock dependency on spectral outside package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Aug 3, 2022
1 parent 531e476 commit 86742bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion spectral/exec/rhoasapi
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

spectral --version || npm install -g @stoplight/spectral
spectral_version=`cat "../spectral.version"`

spectral --version || npm install -g --force @stoplight/spectral-cli@$spectral_version

spectral $@
2 changes: 0 additions & 2 deletions spectral/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
"clean": "rm -rf dist",
"lint": "eslint src/**/*.ts",
"copy-ruleset": "cp ./ruleset.yaml ./dist/ruleset.yaml && cp ./package.json ./dist/package.json",
"spectral-lint": "spectral lint --ruleset ./examples/.spectral-local.yaml",
"cli-integration-tests": "./scripts/rules.sh",
"setupRelease": "npm version"
},
"dependencies": {
"@stoplight/spectral-cli": "6.4.2",
"@stoplight/spectral-core": "1.12.4"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions spectral/spectral.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.4.2

0 comments on commit 86742bc

Please sign in to comment.