Skip to content

Commit 182b60d

Browse files
dimakiswtrocki
authored andcommitted
fix: addition of a postinstall script to create .spectral.yaml conf file
1 parent ae4a7f1 commit 182b60d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spectral/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rhoas/spectral-ruleset",
3-
"version": "0.2.0-dev",
3+
"version": "0.2.1-dev",
44
"description": "Spectral ruleset",
55
"private": false,
66
"main": "ruleset.yaml",
@@ -11,7 +11,8 @@
1111
"copy-ruleset": "cp ./ruleset.yaml ./dist/ruleset.yaml && cp ./package.json ./dist/package.json",
1212
"spectral-lint": "spectral lint --ruleset ./examples/.spectral-local.yaml",
1313
"cli-integration-tests": "./scripts/rules.sh",
14-
"setupRelease": "npm version"
14+
"setupRelease": "npm version",
15+
"postinstall": "echo 'extends: node_modules/@rhoas/spectral-ruleset/dist/ruleset.yaml' > .spectral.yaml"
1516
},
1617
"dependencies": {
1718
"@stoplight/spectral-cli": "6.4.2",
@@ -56,4 +57,4 @@
5657
"files": [
5758
"dist"
5859
]
59-
}
60+
}

0 commit comments

Comments
 (0)