Skip to content

Commit 86742bc

Browse files
committed
fix: lock dependency on spectral outside package.json
1 parent 531e476 commit 86742bc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

spectral/exec/rhoasapi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3-
spectral --version || npm install -g @stoplight/spectral
3+
spectral_version=`cat "../spectral.version"`
4+
5+
spectral --version || npm install -g --force @stoplight/spectral-cli@$spectral_version
46

57
spectral $@

spectral/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
"clean": "rm -rf dist",
1010
"lint": "eslint src/**/*.ts",
1111
"copy-ruleset": "cp ./ruleset.yaml ./dist/ruleset.yaml && cp ./package.json ./dist/package.json",
12-
"spectral-lint": "spectral lint --ruleset ./examples/.spectral-local.yaml",
1312
"cli-integration-tests": "./scripts/rules.sh",
1413
"setupRelease": "npm version"
1514
},
1615
"dependencies": {
17-
"@stoplight/spectral-cli": "6.4.2",
1816
"@stoplight/spectral-core": "1.12.4"
1917
},
2018
"devDependencies": {

spectral/spectral.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.4.2

0 commit comments

Comments
 (0)