-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
59 lines (59 loc) · 2.45 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
{
"name": "json-custom-numbers",
"version": "3.1.1",
"description": "JSON parser and stringifier for custom numbers (e.g. BigInt)",
"files": [
"index.d.ts",
"index.d.mts",
"index.js",
"index.mjs",
"parse.js",
"parse.mjs",
"stringify.js",
"stringify.mjs",
"README.md",
"LICENSE"
],
"exports": {
"require": "./index.js",
"import": "./index.mjs"
},
"scripts": {
"test": "npm run compile && node test/test.mjs",
"testPerf": "npm run compile && node test/test.mjs --perf-only",
"testConf": "npm run compile && node test/test.mjs --conf-only",
"trace": "npm run compile && node --trace-opt --trace-deopt test/perfTrace.mjs",
"buildCjs": "esbuild src/*.mjs --platform=neutral --target=es2015 --minify --keep-names --line-limit=80 --outdir=. --format=cjs --out-extension:.js=.js",
"buildEsm": "esbuild src/*.mjs --platform=neutral --target=es2015 --minify --keep-names --line-limit=80 --outdir=. --format=esm --out-extension:.js=.mjs && npm run copyTypes",
"copyTypes": "echo '// DO NOT EDIT: automatic copy of index.d.ts' > index.d.mts && cat index.d.ts >> index.d.mts",
"compile": "npm run compileParse && npm run compileStringify",
"compileParse": "sed '/<cut>/,/<\\/cut>/d' src/parse.ts | esbuild --loader=ts --define:go=0 --define:ok=1 --define:firstokey=2 --define:okey=3 --define:ocolon=4 --define:ovalue=5 --define:ocomma=6 --define:firstavalue=7 --define:avalue=8 --define:acomma=9 --define:tab=9 --define:newline=10 --define:cr=13 --define:space=32 --define:quote=34 --define:comma=44 --define:minus=45 --define:colon=58 --define:opensquare=91 --define:closesquare=93 --define:backslash=92 --define:f=102 --define:n=110 --define:t=116 --define:u=117 --define:openbrace=123 --define:closebrace=125 --define:badChar=65536 > src/parse.mjs",
"compileStringify": "esbuild src/stringify.ts --outfile=src/stringify.mjs",
"build": "tsc --noEmit && npm run testConf && npm run buildCjs && npm run buildEsm"
},
"author": "George MacKerron",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jawj/json-custom-numbers"
},
"devDependencies": {
"colors": "^1.4.0",
"esbuild": "^0.18.11",
"json-bigint": "^1.0.0",
"lossless-json": "^4.0.1",
"typescript": "^5.3.3"
},
"keywords": [
"json",
"parse",
"stringify",
"numbers",
"bigint",
"custom",
"lossless",
"performance",
"conformance",
"crockford"
]
}