Skip to content

Commit 26b165e

Browse files
dimakiswtrocki
authored andcommitted
fix: fix of spectral binary location
1 parent 72fe41a commit 26b165e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
},
2424
"homepage": "https://github.com/redhat-developer/app-services-api-guidelines#readme",
2525
"bin": {
26-
"spectral": "node_modules/.bin/spectral"
26+
"spectralx": "node_modules/.bin/spectral"
2727
}
2828
}

spectral/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"private": false,
66
"main": "ruleset.yaml",
77
"scripts": {
8-
"build": "npm run clean && tsc && npm run copy-ruleset",
8+
"build": "npm run clean && tsc && npm run copy-ruleset && npm run copy-binary",
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+
"copy-binary": "cp ./node_modules/.bin/spectral ./dist",
1213
"spectral-lint": "spectral lint --ruleset ./examples/.spectral-local.yaml",
1314
"cli-integration-tests": "./scripts/rules.sh",
1415
"setupRelease": "npm version",
@@ -52,7 +53,7 @@
5253
"@stoplight/spectral-core": "1.12.4"
5354
},
5455
"bin": {
55-
"spectral": "node_modules/.bin/spectral"
56+
"spectralx": "node_modules/.bin/spectral"
5657
},
5758
"files": [
5859
"dist"

0 commit comments

Comments
 (0)