-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
96 lines (96 loc) · 2.8 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
{
"name": "typeson",
"version": "9.0.3",
"description": "Preserves types over JSON, BSON or socket.io",
"main": "./dist/typeson-commonjs2.min.cjs",
"browser": "./dist/typeson.umd.js",
"module": "./dist/typeson.esm.js",
"type": "module",
"types": "./dist/typeson.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/typeson.d.ts",
"default": "./dist/typeson.esm.min.js"
},
"require": {
"types": "./dist/typeson.d.ts",
"default": "./dist/typeson.cjs"
},
"browser": {
"types": "./dist/typeson.d.ts",
"default": "./dist/typeson.umd.min.js"
}
}
},
"scripts": {
"tsc": "tsc",
"prepublishOnly": "pnpm i && pnpm build",
"eslint": "eslint .",
"lint": "npm run eslint --",
"start": "http-server -p 8092",
"rollup": "rollup -c",
"build": "npm run rollup && tsc -p tsconfig-build.json",
"open-test": "open-cli http://localhost:8092/test/ && npm start",
"browser-test": "npm run build && npm run eslint && npm run open-test",
"open-coverage": "open-cli http://localhost:8092/coverage/ && npm start",
"mocha": "mocha --require chai/register-assert.js --require chai/register-expect.js test/test.js",
"c8": "rm -Rf node_modules/.cache && c8 --reporter=html --reporter=text npm run mocha",
"test": "npm run build && npm run eslint && npm run c8"
},
"c8": {
"exclude": [
"test/**",
"node_modules/**"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/dfahlander/typeson.git"
},
"browserslist": [
"cover 100%"
],
"keywords": [
"JSON",
"remoting",
"serialization",
"types"
],
"author": "dfahlander",
"contributors": [
"Brett Zamir"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/dfahlander/typeson/issues"
},
"homepage": "https://github.com/dfahlander/typeson#readme",
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@types/babel__core": "^7.20.5",
"@types/chai": "^4.3.17",
"@types/mocha": "^10.0.7",
"@types/node": "^22.1.0",
"babel-plugin-transform-async-to-promises": "^0.8.18",
"base64-arraybuffer-es6": "^3.1.0",
"c8": "^10.1.2",
"chai": "^5.1.1",
"eslint": "^9.8.0",
"eslint-config-ash-nazg": "36.10.0",
"http-server": "^14.1.1",
"mocha": "^10.7.0",
"open-cli": "^8.0.0",
"rollup": "4.20.0",
"rollup-plugin-re": "^1.0.7",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0"
},
"tonicExample": "var Typeson = require('typeson');\nvar TSON = new Typeson().register(require('typeson-registry/presets/builtin'));\n\nTSON.stringify({foo: new Date()}, null, 2);"
}