-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
122 lines (122 loc) · 2.83 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
{
"name": "@sse-js/client-kit",
"version": "0.0.1",
"description": "Parser / Reader `text/event-stream` and implement `EventSource`",
"private": false,
"author": "Purexo",
"license": "MIT",
"type": "module",
"main": "dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./package.json": "./package.json",
"./Parser": {
"types": "./dist/eventStreamParser.d.ts",
"default": "./dist/eventStreamParser.js"
},
"./Reader": {
"types": "./dist/eventStreamReader.d.ts",
"default": "./dist/eventStreamReader.js"
},
"./BaseEventSource": {
"types": "./dist/BaseEventSource.d.ts",
"default": "./dist/BaseEventSource.js"
},
"./Node": {
"types": "./dist/node/EventSource.d.ts",
"default": "./dist/node/EventSource.js"
},
"./Undici": {
"types": "./dist/undici/EventSource.d.ts",
"default": "./dist/undici/EventSource.js"
}
},
"engines": {
"node": ">=16"
},
"repository": {
"type": "git",
"url": "https://github.com/sse-js/client-kit"
},
"scripts": {
"start": "npm run test",
"build": "tsc",
"lint": "eslint .",
"check-types": "tsc --noEmit",
"test": "npm run lint && npm run check-types && npm run test-only",
"test-only": "vitest run",
"doc": "typedoc",
"prepublishOnly": "npm run test && npm run build"
},
"peerDependencies": {
"undici": "^5.12.0"
},
"peerDependenciesMeta": {
"undici": {
"optional": true
}
},
"devDependencies": {
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"prettier": "^2.7.1",
"typedoc": "^0.23.21",
"typescript": "4.8",
"undici": "^5.12.0",
"vitest": "^0.25.2"
},
"volta": {
"node": "16.18.1",
"npm": "8.19.3"
},
"prettier": {
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "lf"
},
"eslintConfig": {
"extends": [
"standard-with-typescript",
"prettier"
],
"plugins": [
"prettier"
],
"parserOptions": {
"project": "./tsconfig.test.json"
},
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array",
"readonly": "array"
}
]
},
"ignorePatterns": [
"dist/**",
"docs/**"
],
"env": {
"node": true
}
}
}