-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
247 lines (247 loc) · 10.9 KB
/
package.json
File metadata and controls
247 lines (247 loc) · 10.9 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
{
"name": "botframework-webchat",
"version": "0.0.0-0",
"description": "A highly-customizable web-based chat client for Azure Bot Services.",
"main": "./dist/botframework-webchat.js",
"types": "./dist/botframework-webchat.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/botframework-webchat.d.mts",
"default": "./dist/botframework-webchat.mjs"
},
"require": {
"types": "./dist/botframework-webchat.d.ts",
"default": "./dist/botframework-webchat.js"
}
},
"./component": {
"import": {
"types": "./dist/botframework-webchat.component.d.mts",
"default": "./dist/botframework-webchat.component.mjs"
},
"require": {
"types": "./dist/botframework-webchat.component.d.ts",
"default": "./dist/botframework-webchat.component.js"
}
},
"./decorator": {
"import": {
"types": "./dist/botframework-webchat.decorator.d.mts",
"default": "./dist/botframework-webchat.decorator.mjs"
},
"require": {
"types": "./dist/botframework-webchat.decorator.d.ts",
"default": "./dist/botframework-webchat.decorator.js"
}
},
"./hook": {
"import": {
"types": "./dist/botframework-webchat.hook.d.mts",
"default": "./dist/botframework-webchat.hook.mjs"
},
"require": {
"types": "./dist/botframework-webchat.hook.d.ts",
"default": "./dist/botframework-webchat.hook.js"
}
},
"./internal": {
"import": {
"types": "./dist/botframework-webchat.internal.d.mts",
"default": "./dist/botframework-webchat.internal.mjs"
},
"require": {
"types": "./dist/botframework-webchat.internal.d.ts",
"default": "./dist/botframework-webchat.internal.js"
}
},
"./middleware": {
"import": {
"types": "./dist/botframework-webchat.middleware.d.mts",
"default": "./dist/botframework-webchat.middleware.mjs"
},
"require": {
"types": "./dist/botframework-webchat.middleware.d.ts",
"default": "./dist/botframework-webchat.middleware.js"
}
},
"./static/*": "./static/*"
},
"publishConfig": {
"access": "public"
},
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/BotFramework-WebChat.git"
},
"bugs": {
"url": "https://github.com/microsoft/BotFramework-WebChat/issues"
},
"homepage": "https://github.com/microsoft/BotFramework-WebChat/#readme",
"files": [
"./*.js",
"./dist/**/*",
"./src/**/*",
"./static/**/*"
],
"tsd": {
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"downlevelIteration": true,
"jsx": "react",
"module": "NodeNext",
"noImplicitAny": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": false
}
},
"scripts": {
"build": "npm run --if-present build:pre && npm run build:run && npm run --if-present build:post",
"build:post": "npm run build:post:dtsroll && npm run build:post:validate:dts",
"build:post:dtsroll": "dtsroll ./dist/*.d.*",
"build:post:validate:dts": "if grep -q -P '@msinternal\\/' dist/*.d.* 2>/dev/null; then echo \"Error: dist/*.d.* is not compiled by dtsroll\" >&2; exit 1; fi",
"build:pre": "npm run build:pre:local-dependencies && npm run build:pre:watch",
"build:pre:local-dependencies": "../../scripts/npm/build-local-dependencies.sh",
"build:pre:watch": "../../scripts/npm/build-watch.sh",
"build:run": "concurrently --prefix-colors \"auto\" \"npm:build:run:*\"",
"build:run:static": "node ./esbuild.static.mjs",
"build:run:tsup": "tsup",
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localDependencies // {} | keys) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install --save-exact $PACKAGES_TO_BUMP || true",
"eslint": "npm run precommit",
"postversion": "cat package.json | jq '.version as $V | (.localDependencies // {} | with_entries(select(.value == \"production\") | { key: .key, value: $V })) as $L1 | (.localDependencies // {} | with_entries(select(.value == \"development\") | { key: .key, value: $V })) as $L2 | ((.dependencies // {}) + $L1 | to_entries | sort_by(.key) | from_entries) as $D1 | ((.devDependencies // {}) + $L2 | to_entries | sort_by(.key) | from_entries) as $D2 | . + { dependencies: $D1, devDependencies: $D2 }' > package-temp.json && mv package-temp.json package.json",
"precommit": "npm run precommit:eslint -- src && npm run precommit:typecheck",
"precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
"preversion": "cat package.json | jq '(.localDependencies // {} | to_entries | map([if .value == \"production\" then \"dependencies\" else \"devDependencies\" end, .key])) as $P | delpaths($P)' > package-temp.json && mv package-temp.json package.json",
"start": "../../scripts/npm/notify-build.sh \"src\" \"../repack/adaptivecards/package.json\" \"../repack/base64-js/package.json\" \"../repack/botframework-directlinejs/package.json\" \"../base/package.json\" \"../react-valibot/package.json\" \"../tsconfig/package.json\" \"../isomorphic-react/package.json\" \"../isomorphic-react-dom/package.json\" \"../repack/microsoft-cognitiveservices-speech-sdk/package.json\" \"../repack/object-assign/package.json\" \"../repack/react/package.json\" \"../repack/react@baseline/package.json\" \"../repack/react-dom/package.json\" \"../repack/react-dom@baseline/package.json\" \"../repack/react-dom@umd/package.json\" \"../repack/react-is/package.json\" \"../repack/react@umd/package.json\" \"../directlinespeech/package.json\" \"../api/package.json\" \"../component/package.json\" \"../core/package.json\"",
"test:tsd": "tsd"
},
"pinDependencies": {
"@types/react": [
"16",
"react@16.8.6 is our baseline"
],
"adaptivecards": [
"3.0.2",
"needs to bump manually"
],
"shiki": [
"2",
"tsd is complaining about shiki@3 lack of typing for named exports, https://arethetypeswrong.github.io/?p=shiki%403.9.1 says the same thing"
],
"swiper": [
"^8.2.6",
"required by Adaptive Cards but they forget to include in adaptivecards@3.0.2"
],
"typescript": [
"~5.8.3",
"@typescript-eslint/parser@8.38.0 does not support typescript@5.9.2 yet"
],
"uuid": [
"8",
"uuid@9 emit non-ES5 build because of default parameters"
]
},
"localDependencies": {
"@msinternal/adaptivecards": "development",
"@msinternal/base64-js": "development",
"@msinternal/botframework-directlinejs": "development",
"@msinternal/botframework-webchat-base": "development",
"@msinternal/botframework-webchat-react-valibot": "development",
"@msinternal/botframework-webchat-tsconfig": "development",
"@msinternal/isomorphic-react": "development",
"@msinternal/isomorphic-react-dom": "development",
"@msinternal/microsoft-cognitiveservices-speech-sdk": "development",
"@msinternal/object-assign": "development",
"@msinternal/react": "development",
"@msinternal/react-baseline": "development",
"@msinternal/react-dom": "development",
"@msinternal/react-dom-baseline": "development",
"@msinternal/react-dom-umd": "development",
"@msinternal/react-is": "development",
"@msinternal/react-umd": "development",
"botframework-directlinespeech-sdk": "production",
"botframework-webchat-api": "production",
"botframework-webchat-component": "production",
"botframework-webchat-core": "production"
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/plugin-transform-runtime": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@msinternal/adaptivecards": "0.0.0-0",
"@msinternal/base64-js": "0.0.0-0",
"@msinternal/botframework-directlinejs": "0.0.0-0",
"@msinternal/botframework-webchat-base": "0.0.0-0",
"@msinternal/botframework-webchat-react-valibot": "0.0.0-0",
"@msinternal/botframework-webchat-tsconfig": "0.0.0-0",
"@msinternal/isomorphic-react": "0.0.0-0",
"@msinternal/isomorphic-react-dom": "0.0.0-0",
"@msinternal/microsoft-cognitiveservices-speech-sdk": "0.0.0-0",
"@msinternal/object-assign": "0.0.0-0",
"@msinternal/react": "0.0.0-0",
"@msinternal/react-baseline": "0.0.0-0",
"@msinternal/react-dom": "0.0.0-0",
"@msinternal/react-dom-baseline": "0.0.0-0",
"@msinternal/react-dom-umd": "0.0.0-0",
"@msinternal/react-is": "0.0.0-0",
"@msinternal/react-umd": "0.0.0-0",
"@types/dom-speech-recognition": "^0.0.6",
"@types/mdast": "^4.0.4",
"@types/node": "^24.1.0",
"@types/uuid": "^10.0.0",
"babel-plugin-istanbul": "^7.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"cross-env": "^10.0.0",
"esbuild": "^0.25.8",
"micromark-util-types": "^2.0.2",
"read-pkg": "^9.0.1",
"tsd": "^0.32.0",
"type-fest": "^4.41.0",
"typescript": "~5.8.3"
},
"dependencies": {
"@babel/runtime": "7.28.2",
"adaptivecards": "3.0.2",
"botframework-directlinejs": "0.15.6",
"botframework-directlinespeech-sdk": "0.0.0-0",
"botframework-webchat-api": "0.0.0-0",
"botframework-webchat-component": "0.0.0-0",
"botframework-webchat-core": "0.0.0-0",
"classnames": "2.5.1",
"core-js": "3.44.0",
"katex": "0.16.22",
"math-random": "2.0.1",
"mdast-util-from-markdown": "2.0.2",
"memoize-one": "6.0.0",
"micromark": "4.0.2",
"micromark-extension-gfm": "3.0.0",
"micromark-util-character": "2.1.1",
"micromark-util-sanitize-uri": "^2.0.1",
"microsoft-cognitiveservices-speech-sdk": "1.17.0",
"prop-types": "15.8.1",
"punycode": "2.3.1",
"sanitize-html": "2.17.0",
"shiki": "2.5.0",
"swiper": "8.4.7",
"url-search-params-polyfill": "8.2.5",
"use-ref-from": "0.1.0",
"uuid": "8.3.2",
"valibot": "1.1.0",
"web-speech-cognitive-services": "8.1.3",
"whatwg-fetch": "3.6.20"
},
"peerDependencies": {
"@types/react": "^16.14.65",
"react": ">= 16.8.6",
"react-chain-of-responsibility": "0.4.2",
"react-dom": ">= 16.8.6"
}
}