File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ npm install -g @stoplight/spectral
4
+
5
+ spectral $@
Original file line number Diff line number Diff line change 5
5
"private" : false ,
6
6
"main" : " ruleset.yaml" ,
7
7
"scripts" : {
8
- "build" : " npm run clean && tsc && npm run copy-ruleset && npm run copy-binary " ,
8
+ "build" : " npm run clean && tsc && npm run copy-ruleset" ,
9
9
"clean" : " rm -rf dist" ,
10
10
"lint" : " eslint src/**/*.ts" ,
11
11
"copy-ruleset" : " cp ./ruleset.yaml ./dist/ruleset.yaml && cp ./package.json ./dist/package.json" ,
12
- "copy-binary" : " cp ./node_modules/.bin/spectral ./dist" ,
13
12
"spectral-lint" : " spectral lint --ruleset ./examples/.spectral-local.yaml" ,
14
13
"cli-integration-tests" : " ./scripts/rules.sh" ,
15
- "setupRelease" : " npm version" ,
16
- "postinstall" : " echo 'extends: node_modules/@rhoas/spectral-ruleset/dist/ruleset.yaml' > .spectral.yaml"
14
+ "setupRelease" : " npm version"
17
15
},
18
16
"dependencies" : {
19
17
"@stoplight/spectral-cli" : " 6.4.2" ,
48
46
"url" : " https://github.com/redhat-developer/app-services-api-guidelines/issues"
49
47
},
50
48
"homepage" : " https://github.com/redhat-developer/app-services-api-guidelines#readme" ,
51
- "peerDependencies" : {
52
- "@stoplight/spectral-cli" : " 6.4.2" ,
53
- "@stoplight/spectral-core" : " 1.12.4"
54
- },
55
49
"bin" : {
56
- "spectralx " : " ./dist/spectral "
50
+ "rhoasapi " : " ./exec/rhoasapi "
57
51
},
58
52
"files" : [
59
53
" dist"
You can’t perform that action at this time.
0 commit comments