-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
184 lines (184 loc) · 7.88 KB
/
package.json
File metadata and controls
184 lines (184 loc) · 7.88 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
{
"name": "botframework-webchat-component",
"version": "0.0.0-0",
"description": "React component of botframework-webchat",
"main": "./dist/botframework-webchat-component.js",
"types": "./dist/botframework-webchat-component.d.ts",
"exports": {
".": {
"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"
}
},
"./component": {
"import": {
"types": "./dist/botframework-webchat-component.component.d.mts",
"default": "./dist/botframework-webchat-component.component.mjs"
},
"require": {
"types": "./dist/botframework-webchat-component.component.d.ts",
"default": "./dist/botframework-webchat-component.component.js"
}
},
"./decorator": {
"import": {
"types": "./dist/botframework-webchat-component.decorator.d.mts",
"default": "./dist/botframework-webchat-component.decorator.mjs"
},
"require": {
"types": "./dist/botframework-webchat-component.decorator.d.ts",
"default": "./dist/botframework-webchat-component.decorator.js"
}
},
"./hook": {
"import": {
"types": "./dist/botframework-webchat-component.hook.d.mts",
"default": "./dist/botframework-webchat-component.hook.mjs"
},
"require": {
"types": "./dist/botframework-webchat-component.hook.d.ts",
"default": "./dist/botframework-webchat-component.hook.js"
}
},
"./internal": {
"import": {
"types": "./dist/botframework-webchat-component.internal.d.mts",
"default": "./dist/botframework-webchat-component.internal.mjs"
},
"require": {
"types": "./dist/botframework-webchat-component.internal.d.ts",
"default": "./dist/botframework-webchat-component.internal.js"
}
}
},
"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"
},
"files": [
"./*.js",
"./dist/**/*",
"./src/**/*"
],
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
"scripts": {
"build": "npm run build:tsup && npm run build:dtsroll && npm run build:validate",
"build:tsup": "tsup",
"build:dtsroll": "dtsroll ./dist/*.d.*",
"build:validate": "npm run build:validate:css && npm run build:validate:dts",
"build:validate:css": "grep -q -P '\\.webchat \\.w([a-zA-Z-]){6}_' dist/*.css 2>/dev/null || { echo \"Error: dist/*.css is not compiled by Lightning CSS\" >&2; exit 1; }",
"build: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",
"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": "npm run build:tsup -- --watch"
},
"localDependencies": {
"@msinternal/botframework-webchat-base": "development",
"@msinternal/botframework-webchat-react-hooks": "development",
"@msinternal/botframework-webchat-react-valibot": "development",
"@msinternal/botframework-webchat-styles": "development",
"@msinternal/botframework-webchat-tsconfig": "development",
"botframework-webchat-api": "production",
"botframework-webchat-core": "production"
},
"pinDependencies": {
"@types/react": [
"16",
"react@16.8.6 is our baseline"
],
"compute-scroll-into-view": [
"1",
"@>=2 does not support IE Mode"
],
"markdown-it": [
"13",
"markdown-it@14.1.0 has module field and it is breaking Webpack 4 because cross loading CJS and ESM"
],
"react-redux": [
"7"
],
"react-scroll-to-bottom": [
"main"
],
"typescript": [
"~5.8.3",
"@typescript-eslint/parser@8.38.0 does not support typescript@5.9.2 yet"
]
},
"devDependencies": {
"@babel/core": "^7.28.0",
"@babel/preset-env": "^7.28.0",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@msinternal/botframework-webchat-base": "0.0.0-0",
"@msinternal/botframework-webchat-react-hooks": "^0.0.0-0",
"@msinternal/botframework-webchat-react-valibot": "^0.0.0-0",
"@msinternal/botframework-webchat-styles": "0.0.0-0",
"@msinternal/botframework-webchat-tsconfig": "^0.0.0-0",
"@types/dom-speech-recognition": "^0.0.6",
"@types/jest": "^30.0.0",
"@types/mdast": "^4.0.4",
"@types/node": "^24.1.0",
"babel-plugin-istanbul": "^7.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"core-js": "^3.44.0",
"cross-env": "^10.0.0",
"type-fest": "^4.41.0",
"typescript": "~5.8.3"
},
"dependencies": {
"@emotion/css": "11.13.5",
"base64-js": "1.5.1",
"botframework-webchat-api": "0.0.0-0",
"botframework-webchat-core": "0.0.0-0",
"classnames": "2.5.1",
"compute-scroll-into-view": "1.0.20",
"deep-freeze-strict": "1.1.1",
"markdown-it": "13.0.2",
"math-random": "2.0.1",
"mdast-util-from-markdown": "2.0.2",
"memoize-one": "6.0.0",
"merge-refs": "2.0.0",
"prop-types": "15.8.1",
"punycode": "2.3.1",
"react-chain-of-responsibility": "0.4.1",
"react-dictate-button": "4.0.0",
"react-film": "4.0.0",
"react-redux": "7.2.9",
"react-say": "2.2.0",
"react-scroll-to-bottom": "4.2.1-main.53844f5",
"react-wrap-with": "0.1.0",
"redux": "5.0.1",
"simple-update-in": "2.2.0",
"use-propagate": "0.2.1",
"use-reduce-memo": "^0.1.0-main.1384637",
"use-ref-from": "0.1.0",
"use-state-with-ref": "0.1.0",
"valibot": "1.1.0"
},
"peerDependencies": {
"@types/react": "^16.14.65",
"react": ">= 16.8.6",
"react-dom": ">= 16.8.6"
}
}