forked from stoplightio/spectral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
177 lines (177 loc) · 5.84 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"name": "@stoplight/spectral",
"version": "0.0.0",
"description": "A flexible object linter with out of the box support for OpenAPI v2 and v3.",
"keywords": [
"json linter",
"linter",
"json validator",
"validator",
"OpenAPI",
"Swagger",
"schema",
"API"
],
"sideEffects": false,
"homepage": "https://github.com/stoplightio/spectral",
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/stoplightio/spectral"
},
"license": "Apache-2.0",
"main": "dist/index.js",
"bin": {
"spectral": "./dist/cli/index.js"
},
"files": [
"dist/*",
"rulesets/*"
],
"engines": {
"node": ">=12"
},
"scripts": {
"build.binary": "pkg . --output ./binaries/spectral",
"build.clean": "rimraf ./coverage && rimraf ./dist && rimraf ./rulesets && rimraf ./__karma__/__fixtures__",
"build.functions": "rollup -c",
"build": "tsc -p ./tsconfig.build.json",
"cli": "node -r ts-node/register -r tsconfig-paths/register src/cli/index.ts",
"cli:debug": "node -r ts-node/register -r tsconfig-paths/register --inspect-brk src/cli/index.ts",
"generate-assets": "ts-node --compiler-options {\\\"module\\\":\\\"CommonJS\\\"} ./scripts/generate-assets.ts",
"inline-version": "node ./scripts/inline-version.js",
"prelint": "tsc --noEmit",
"lint.changelog": "kacl lint",
"lint.fix": "yarn lint.prettier --write && yarn lint.eslint --fix",
"lint.eslint": "eslint --cache --cache-location .cache/ --ext=.js,.ts src test-harness scripts",
"lint.prettier": "prettier --ignore-path .eslintignore --check {src,test-harness}/**/*.{json,yaml} docs/**/*.md README.md",
"lint": "yarn lint.prettier && yarn lint.eslint && yarn lint.changelog",
"copy.html-templates": "copyfiles -u 1 \"./src/cli/formatters/html/*.html\" \"./dist/\"",
"postbuild.functions": "copyfiles -u 1 \"dist/rulesets/{oas,asyncapi}/functions/*.js\" ./",
"postbuild": "yarn build.functions && yarn generate-assets",
"prebuild": "yarn build.clean && copyfiles -u 1 \"src/rulesets/{oas,asyncapi}/**/*.json\" dist && copyfiles -u 1 \"src/rulesets/{oas,asyncapi}/**/*.json\" ./ && yarn copy.html-templates",
"prebuild.binary": "yarn build",
"pretest.karma": "node ./scripts/generate-karma-fixtures.js && yarn pretest",
"pretest": "yarn generate-assets",
"test.harness": "jest -c ./test-harness/jest.config.js",
"test.karma": "karma start",
"test.prod": "yarn build && yarn lint && yarn test.karma && yarn test --coverage --maxWorkers=2",
"test.update": "yarn test --updateSnapshot",
"test.watch": "yarn test --watch",
"test": "jest --silent",
"prepare": "husky install"
},
"dependencies": {
"@stoplight/better-ajv-errors": "0.1.1",
"@stoplight/json": "3.13.5",
"@stoplight/json-ref-readers": "1.2.2",
"@stoplight/json-ref-resolver": "3.1.2",
"@stoplight/lifecycle": "2.3.2",
"@stoplight/path": "1.3.2",
"@stoplight/types": "12.3.0",
"@stoplight/yaml": "4.2.2",
"abort-controller": "3.0.0",
"ajv": "8.2.0",
"ajv-errors": "3.0.0",
"ajv-formats": "2.1.0",
"blueimp-md5": "2.18.0",
"chalk": "4.1.0",
"eol": "0.9.1",
"expression-eval": "4.0.0",
"fast-glob": "3.2.5",
"json-schema-migrate": "2.0.0",
"json-schema-traverse": "1.0.0",
"jsonpath-plus": "5.0.3",
"lodash": "4.17.21",
"nanoid": "2.1.11",
"nimma": "0.0.0",
"node-fetch": "2.6.1",
"proxy-agent": "4.0.1",
"strip-ansi": "6.0",
"text-table": "0.2",
"tslib": "2.2.0",
"yargs": "16.2.0"
},
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.7",
"@brightcove/kacl": "^0.1.11",
"@commitlint/cli": "^12.0.1",
"@commitlint/config-conventional": "^12.0.1",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@types/jest": "^26.0.20",
"@types/jest-when": "^2.7.2",
"@types/lodash": "^4.14.167",
"@types/nanoid": "^2.1.0",
"@types/node": "~13.1",
"@types/node-fetch": "^2.5.8",
"@types/text-table": "^0.2.1",
"@types/tmp": "^0.2.0",
"@types/xml2js": "^0.4.8",
"@types/yargs": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"copyfiles": "^2.4.1",
"dependency-graph": "^0.10.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.3.1",
"fetch-mock": "^9.11.0",
"glob-fs": "^0.1.7",
"husky": "^5.1.3",
"jest": "^26.6.3",
"jest-mock": "^26.6.2",
"jest-when": "^3.2.1",
"karma": "^6.1.1",
"karma-chrome-launcher": "^3.1.0",
"karma-env-preprocessor": "^0.1.1",
"karma-jasmine": "^3.3.1",
"karma-typescript": "^5.4.0",
"karma-typescript-es6-transform": "^5.2.0",
"lint-staged": "^10.5.4",
"nock": "~12.0.2",
"node-html-parser": "^2.0.1",
"pkg": "^4.4.9",
"prettier": "^2.2.1",
"recast": "^0.20.4",
"rimraf": "^3.0.2",
"rollup": "^2.40.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-jest": "^26.5.3",
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.9.7",
"xml2js": "^0.4.23"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --cache --cache-location .cache"
],
"CHANGELOG.md": [
"kacl lint",
"prettier --write"
],
"docs/**/*.md": [
"prettier --ignore-path .eslintignore --write"
],
"README.md": [
"prettier --write"
],
"{src,test-harness}/**/*.{json,yaml}": [
"prettier --ignore-path .eslintignore --write"
]
},
"pkg": {
"scripts": [
"./dist/**/*.js"
],
"assets": [
"./dist/**/*.json",
"./dist/cli/**/*.html"
]
},
"types": "dist/index.d.ts"
}