forked from zaach/jsonlint
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
90 lines (90 loc) · 4.31 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
{
"name": "@prantlf/jsonlint",
"version": "16.0.0",
"description": "JSON/CJSON/JSON5 parser, syntax and schema validator and pretty-printer.",
"author": "Ferdinand Prantl <[email protected]> (http://prantl.tk)",
"contributors": [
"Ondrej Medek <[email protected]>",
"Greg Inman <[email protected]>",
"Paul Vollmer <[email protected]> (http://paulvollmer.net)",
"Zach Carter <[email protected]> (http://zaa.ch)"
],
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/prantlf/jsonlint/blob/master/LICENSE"
}
],
"homepage": "http://prantlf.github.io/jsonlint/",
"repository": {
"type": "git",
"url": "https://github.com/prantlf/jsonlint.git"
},
"bugs": {
"url": "http://github.com/prantlf/jsonlint/issues"
},
"preferGlobal": true,
"main": "lib/jsonlint.js",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"bin": {
"jsonlint": "lib/cli.js"
},
"files": [
"lib",
"web"
],
"engines": {
"node": ">=16.9"
},
"scripts": {
"build": "npm run compile:jsonlint && rollup -c && npm run minify && npm run compile:tests",
"compile:jsonlint": "cat-j src/prefix.js.txt src/unicode.js src/custom-parser.js src/pointer.js src/native-parser.js src/configurable-parser.js src/suffix.js.txt > lib/jsonlint.js",
"minify": "esbuild --minify --sourcemap --outfile=web/jsonlint.min.js lib/jsonlint.js && esbuild --minify --sourcemap --outfile=web/validator.min.js lib/validator.js && esbuild --minify --sourcemap --outfile=web/formatter.min.js lib/formatter.js && esbuild --minify --sourcemap --outfile=web/sorter.min.js lib/sorter.js && esbuild --minify --sourcemap --outfile=web/printer.min.js lib/printer.js",
"compile:tests": "tsc --moduleResolution node --module es2022 test/types.test.ts && mv-j test/types.test.js test/types.test.mjs",
"lint": "biome lint *.mjs lib src test/*.js",
"test": "biome lint *.mjs lib src test/*.js && c8 node test/types.test.mjs && c8 --no-clean node test/parse1 && c8 --no-clean node test/parse1 --native-parser && c8 --no-clean node test/parse2 && c8 --no-clean node test/parse3 && c8 --no-clean node test/parse4 && c8 --no-clean node test/parse5 && c8 --no-clean node test/portable && c8 --no-clean node test/tokenize && c8 --no-clean node test/print && c8 --no-clean node lib/cli package.json test/recursive && c8 --no-clean node lib/cli -sq test/passes/hasOwnProperty.json && c8 --no-clean node lib/cli -s -e json-schema-draft-04 -V test/passes/schema-04.json test/passes/data-04.json && c8 --no-clean node lib/cli -s -e json-schema-draft-07 -V test/passes/schema-07.json test/passes/data-07.json && c8 --no-clean node lib/cli -C test/passes/comments.txt && c8 --no-clean node lib/cli -pS test/passes/strings.txt && c8 --no-clean node lib/cli -M json5 test/passes/json5.text && c8 --no-clean node lib/cli -v && c8 --no-clean node lib/cli -h && c8 --no-clean node lib/cli -Pc test/fails/10.json || c8 --no-clean node lib/cli -f test/.jsonrc.yml 'test/**/*.json' '!**/fails' && c8 report -r text -r lcov",
"start": "http-server -c 5",
"web": "npm run web:sync && npm run web:deploy",
"web:clone": "test ! -d ../jsonlint-pages && git clone --single-branch --branch gh-pages `git remote get-url origin` ../jsonlint-pages",
"web:pull": "cd ../jsonlint-pages && git pull",
"web:sync": "cp web/*.min.* ../jsonlint-pages/ && cp web/jsonlint.html ../jsonlint-pages/index.html",
"web:deploy": "cd ../jsonlint-pages && git commit -a -m 'Deploy site updates' && git push origin gh-pages"
},
"c8": {
"reporter": []
},
"dependencies": {
"ajv": "8.17.1",
"ajv-draft-04": "1.0.0",
"cosmiconfig": "9.0.0",
"diff": "5.2.0",
"fast-glob": "3.3.2"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@rollup/plugin-commonjs": "26.0.1",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.2.3",
"@types/node": "22.2.0",
"@unixcompat/cat.js": "2.0.0",
"@unixcompat/mv.js": "2.0.0",
"c8": "10.1.2",
"esbuild": "0.23.0",
"http-server": "14.1.1",
"js-yaml": "4.1.0",
"rollup": "4.20.0",
"rollup-plugin-swc-minify": "1.1.2",
"tehanu": "1.0.1",
"tehanu-repo-coco": "1.0.1",
"tehanu-teru": "1.0.1",
"typescript": "5.5.4"
},
"keywords": [
"json",
"validation",
"lint",
"jsonlint"
]
}