-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
145 lines (145 loc) · 5.11 KB
/
Copy pathpackage.json
File metadata and controls
145 lines (145 loc) · 5.11 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "@ably/chat",
"version": "1.4.0",
"description": "Ably Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, customer support, or social interactions in SaaS products.",
"type": "module",
"main": "dist/chat/ably-chat.umd.cjs",
"browser": "dist/chat/ably-chat.js",
"types": "dist/chat/index.d.ts",
"react-native": "dist/chat/ably-chat.umd.cjs",
"exports": {
".": {
"types": "./dist/chat/index.d.ts",
"react-native": "./dist/chat/ably-chat.umd.cjs",
"import": "./dist/chat/ably-chat.js",
"require": "./dist/chat/ably-chat.umd.cjs"
},
"./react": {
"types": "./dist/react/index.d.ts",
"react-native": "./dist/react/ably-chat-react.umd.cjs",
"import": "./dist/react/ably-chat-react.js",
"require": "./dist/react/ably-chat-react.umd.cjs"
},
"./package.json": "./package.json"
},
"scripts": {
"check:error-codes": "tsx scripts/validate-error-codes.ts",
"lint": "eslint . && npm run cspell && npm run docs:lint",
"lint:fix": "eslint --fix .; (npm run format > /dev/null)",
"format": "prettier --list-different --write src test __mocks__ demo/src",
"format:check": "prettier --check src test __mocks__ demo/src",
"test": "vitest run",
"test:chat": "vitest run --project chat",
"test:react": "vitest run --project react-hooks",
"test:unit": "vitest run --exclude \"test/**/*.integration.test.ts?(x)\"",
"test:chat-unit": "vitest run --project chat --exclude \"test/**/*.integration.test.ts?(x)\"",
"test:react-unit": "vitest run --project react-hooks --exclude \"test/**/*.integration.test.ts?(x)\"",
"test:watch": "vitest watch",
"build": "npm run build:chat && npm run build:core && npm run build:react",
"build:chat": "vite build --config ./src/vite.config.ts --emptyOutDir",
"build:core": "vite build --config ./src/core/vite.config.ts --emptyOutDir",
"build:react": "vite build --config ./src/react/vite.config.ts --emptyOutDir",
"build:start-demo": "npm run build && (cd demo && npm start)",
"prepare": "npm run build",
"test:typescript": "tsc",
"demo:reload": "npm run build && cd demo && npm i file:../",
"docs": "typedoc",
"docs:lint": "typedoc --emit none",
"modulereport": "tsc --noEmit --esModuleInterop scripts/moduleReport.ts && esr scripts/moduleReport.ts",
"cspell": "cspell --quiet '{src,test}/**' './*.md'",
"test:no-integration": "vitest run --exclude \"test/**/*.integration.test.ts?(x)\"",
"precommit": "npm run format:check && npm run lint && npm run test:typescript"
},
"files": [
"dist/**",
"src/**",
"react/**"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ably/ably-chat-js.git"
},
"keywords": [
"chat",
"ably",
"ably-realtime",
"websockets"
],
"author": "Ably Realtime",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ably/ably-chat-js/issues"
},
"homepage": "https://github.com/ably/ably-chat-js#readme",
"engines": {
"node": ">=20.0.0"
},
"peerDependencies": {
"ably": "^2.19.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
}
},
"devDependencies": {
"@eslint/compat": "^1.2.7",
"@eslint/eslintrc": "^3.3.0",
"@eslint/js": "^9.12.0",
"@testing-library/react": "^16.2.0",
"@types/jsonwebtoken": "^9.0.9",
"@types/lodash.clonedeep": "^4.5.9",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@typescript-eslint/eslint-plugin": "^8.26.1",
"@typescript-eslint/parser": "^8.26.1",
"@vitejs/plugin-react": "^5.0.2",
"@vitest/coverage-v8": "^3.0.8",
"aws-sdk": "^2.1692.0",
"baseline-browser-mapping": "^2.9.19",
"cspell": "^9.0.2",
"eslint": "^9.31.0",
"eslint-plugin-compat": "^6.0.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^60.7.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-arrow-functions": "^3.6.2",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.19",
"eslint-plugin-security": "^3.0.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^61.0.2",
"globals": "^16.0.0",
"jsdom": "^27.0.0",
"jsonwebtoken": "^9.0.2",
"minimist": "^1.2.8",
"prettier": "^3.5.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typedoc": "^0.28.13",
"typedoc-plugin-no-inherit": "^1.5.0",
"typescript": "^5.8.2",
"vite": "^7.0.0",
"vite-plugin-dts": "^4.5.3",
"vitest": "^3.0.8"
},
"dependencies": {
"async-mutex": "^0.5.0",
"dequal": "^2.0.3",
"lodash.clonedeep": "^4.5.0"
},
"optionalDependencies": {
"@rollup/rollup-darwin-arm64": "^4.18",
"@rollup/rollup-linux-x64-gnu": "^4.18"
},
"browserslist": [
"defaults",
"not op_mini all"
]
}