-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
115 lines (115 loc) · 3.6 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
{
"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 --ext js,md,html .",
"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",
"mocha-cov": "rm -Rf node_modules/.cache && c8 --reporter=html --reporter=text npm run mocha",
"test": "npm run build && npm run eslint && npm run mocha-cov"
},
"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.23.3",
"@babel/preset-env": "^7.23.3",
"@brettz9/eslint-plugin": "^1.0.4",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@types/babel__core": "^7.20.4",
"@types/chai": "^4.3.10",
"@types/mocha": "^10.0.4",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"babel-plugin-transform-async-to-promises": "^0.8.18",
"base64-arraybuffer-es6": "^3.0.1",
"c8": "^8.0.1",
"chai": "^4.3.10",
"eslint": "^8.53.0",
"eslint-config-ash-nazg": "35.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-array-func": "^4.0.0",
"eslint-plugin-chai-expect": "^3.0.0",
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-html": "^7.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsdoc": "^46.9.0",
"eslint-plugin-markdown": "^3.0.1",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-standard": "^4.1.0",
"eslint-plugin-unicorn": "^49.0.0",
"http-server": "^14.1.1",
"mocha": "^10.2.0",
"open-cli": "^7.2.0",
"rollup": "4.3.0",
"rollup-plugin-re": "^1.0.7",
"typescript": "^5.2.2"
},
"tonicExample": "var Typeson = require('typeson');\nvar TSON = new Typeson().register(require('typeson-registry/presets/builtin'));\n\nTSON.stringify({foo: new Date()}, null, 2);"
}