forked from stoplightio/spectral
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
146 lines (146 loc) · 4.68 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "root",
"keywords": [
"json linter",
"linter",
"json validator",
"validator",
"OpenAPI",
"Swagger",
"schema",
"API"
],
"private": true,
"homepage": "https://github.com/stoplightio/spectral",
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"repository": {
"type": "git",
"url": "https://github.com/stoplightio/spectral"
},
"license": "Apache-2.0",
"engines": {
"node": "^12.20 || >= 14.13"
},
"scripts": {
"preclean": "yarn workspaces foreach run preclean",
"clean": "yarn preclean && rimraf .cache packages/*/{dist,.cache}",
"prebuild": "yarn workspaces foreach run prebuild",
"build": "yarn prebuild && tsc --build ./tsconfig.build.json && yarn postbuild",
"postbuild": "yarn workspaces foreach run postbuild",
"prelint": "yarn workspaces foreach run prelint",
"lint": "yarn prelint && yarn lint.prettier && yarn lint.eslint",
"lint.fix": "yarn lint.prettier --write && yarn lint.eslint --fix",
"lint.eslint": "eslint --cache --cache-location .cache/.eslintcache --ext=.js,.mjs,.ts packages test-harness",
"lint.prettier": "prettier --ignore-path .eslintignore --ignore-unknown --check packages/core/src/ruleset/meta/*.json packages/rulesets/src/{asyncapi,oas}/schemas/**/*.json docs/**/*.md README.md",
"pretest": "yarn workspaces foreach run pretest",
"test": "yarn pretest && yarn test.karma && yarn test.jest",
"pretest.harness": "ts-node -T test-harness/scripts/generate-tests.ts",
"test.harness": "yarn pretest.harness && jest -c test-harness/jest.config.mjs",
"test.jest": "jest --silent --cacheDirectory=.cache/.jest",
"test.karma": "karma start",
"prepare": "husky install && yarn workspaces foreach run prepare",
"prerelease": "patch-package",
"release": "yarn prerelease && multi-semantic-release --deps.bump=satisfy",
"jest": "jest"
},
"workspaces": {
"packages": [
"packages/*"
]
},
"release": {
"branches": [
{
"name": "develop",
"prerelease": false
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"publishCmd": "node ../../scripts/inline-version.mjs --verbose ${nextRelease.version}"
}
],
"@semantic-release/npm",
[
"@semantic-release/github",
{
"addReleases": false
}
],
"@semantic-release/git"
]
},
"devDependencies": {
"@commitlint/cli": "^14.1.0",
"@commitlint/config-conventional": "^12.1.4",
"@octokit/core": "^3.5.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.1.0",
"@semantic-release/npm": "^9.0.2",
"@semantic-release/release-notes-generator": "^10.0.3",
"@swc/core": "^1.2.210",
"@swc/jest": "^0.2.21",
"@types/file-entry-cache": "^5.0.2",
"@types/jest": "^28.1.6",
"@types/karma": "^6.3.3",
"@types/lodash": "^4.14.176",
"@types/node": "^18.17.7",
"@types/node-fetch": "^2.5.12",
"@types/node-powershell": "^3.1.1",
"@types/text-table": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"expect": "^27.5.1",
"fast-glob": "^3.2.7",
"fetch-mock": "^9.11.0",
"file-entry-cache": "^6.0.1",
"husky": "^7.0.4",
"jest": "^28.1.3",
"jest-mock": "^27.5.1",
"karma": "^6.4.0",
"karma-chrome-launcher": "^3.1.1",
"karma-jasmine": "^5.1.0",
"karma-typescript": "^5.5.3",
"karma-typescript-es6-transform": "^5.5.3",
"lint-staged": "^11.2.6",
"memfs": "^3.3.0",
"multi-semantic-release": "^3.0.2",
"node-powershell": "^4.0.0",
"patch-package": "^6.4.7",
"prettier": "^2.4.1",
"semantic-release": "^19.0.5",
"ts-jest": "^28.0.5",
"ts-node": "^10.8.2",
"typescript": "^4.4.4"
},
"lint-staged": {
"*.{ts,js}": [
"eslint --fix --cache --cache-location .cache/.eslintcache"
],
"docs/**/*.md": [
"prettier --ignore-path .eslintignore --write"
],
"README.md": [
"prettier --write"
],
"packages/core/src/ruleset/meta/*.json": [
"prettier --ignore-path .eslintignore --write"
],
"packages/rulesets/src/{asyncapi,oas}/schemas/**/*.json": [
"prettier --ignore-path .eslintignore --write"
]
},
"packageManager": "yarn@3.5.0"
}