-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
127 lines (127 loc) · 3.72 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
{
"name": "typeson-registry",
"version": "11.1.1",
"description": "The type registry for typeson",
"author": "dfahlander",
"contributors": [
"Brett Zamir"
],
"type": "module",
"types": "./dist/index.d.ts",
"main": "./dist/index.umd.min.cjs",
"module": "./index.js",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.min.js"
},
"require": "./dist/index.umd.min.cjs",
"default": "./dist/index.umd.min.cjs"
},
"./polyfills/createObjectURL.js": {
"import": {
"types": "./dist/polyfills/createObjectURL.d.ts",
"default": "./polyfills/createObjectURL.js"
},
"require": "./polyfills/createObjectURL.umd.cjs",
"default": "./polyfills/createObjectURL.umd.cjs"
},
"./*": "./*"
},
"scripts": {
"tsc": "tsc && node tools/append-to-declaration-files.js",
"prepublishOnly": "pnpm i",
"eslint": "eslint .",
"lint": "npm run eslint --",
"start": "static -p 8085",
"rollup": "node ./build.js",
"build": "npm run rollup && tsc -p tsconfig-build.json",
"mocha": "mocha --require chai/register-expect.js --require chai/register-assert.js test/*.js",
"open-coverage": "open-cli http://localhost:8085/coverage/ && npm start",
"coverage": "rm -Rf node_modules/.cache && c8 npm run mocha",
"test-nocov": "npm run build && npm run eslint && npm run coverage",
"test": "npm run build && npm run eslint && npm run coverage",
"test:worker-open": "open-cli http://localhost:8085/browser-test/worker.html && npm start",
"test:browser-open": "open-cli http://localhost:8085/browser-test/ && npm start",
"test:browser": "npm run build && npm run eslint && npm run test:browser-open",
"windows": "node windows-devinstall"
},
"c8": {
"reporter": [
"text",
"html"
],
"check-coverage": true,
"branches": 100,
"lines": 100,
"functions": 100,
"statements": 100,
"exclude": [
"build.js",
"dist",
"windows-devinstall.js",
".ncurc.js",
".eslintrc.js",
"browser-test",
"coverage",
"test/**",
"node_modules/**"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/dfahlander/typeson-registry.git"
},
"browserslist": [
"cover 100%"
],
"keywords": [
"typeson",
"JSON",
"remoting",
"universal"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/dfahlander/typeson-registry/issues"
},
"homepage": "https://github.com/dfahlander/typeson-registry#readme",
"engines": {
"node": ">=18.14.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/preset-env": "^7.25.4",
"@brettz9/node-static": "^0.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/chai": "^4.3.19",
"@types/jsdom": "^21.1.7",
"@types/mocha": "^10.0.8",
"@types/semver": "^7.5.8",
"@types/whatwg-url": "^11.0.5",
"c8": "^10.1.2",
"canvas": "^2.11.2",
"chai": "^5.1.1",
"eslint": "^9.11.0",
"eslint-config-ash-nazg": "^36.17.1",
"jsdom": "^25.0.0",
"mocha": "^10.7.3",
"open-cli": "^8.0.0",
"rollup": "^4.22.4",
"semver": "^7.6.3",
"socket.io": "^4.8.0",
"socket.io-client": "^4.8.0",
"typescript": "^5.6.2"
},
"dependencies": {
"base64-arraybuffer-es6": "^3.1.0",
"typeson": "^9.0.3",
"whatwg-url": "^14.0.0"
},
"tonicExample": "var Typeson = require('typeson');\nvar TSON = new Typeson().register(require('typeson-registry/dist/presets/builtin'));\n\nTSON.stringify({foo: new Date()}, null, 2);"
}