-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
162 lines (162 loc) · 7.14 KB
/
package.json
File metadata and controls
162 lines (162 loc) · 7.14 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
{
"name": "botframework-webchat-api",
"version": "0.0.0-0",
"description": "React DOM component of botframework-webchat",
"main": "./dist/botframework-webchat-api.js",
"types": "./dist/botframework-webchat-api.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/botframework-webchat-api.d.mts",
"default": "./dist/botframework-webchat-api.mjs"
},
"require": {
"types": "./dist/botframework-webchat-api.d.ts",
"default": "./dist/botframework-webchat-api.js"
}
},
"./decorator": {
"import": {
"types": "./dist/botframework-webchat-api.decorator.d.mts",
"default": "./dist/botframework-webchat-api.decorator.mjs"
},
"require": {
"types": "./dist/botframework-webchat-api.decorator.d.ts",
"default": "./dist/botframework-webchat-api.decorator.js"
}
},
"./hook": {
"import": {
"types": "./dist/botframework-webchat-api.hook.d.mts",
"default": "./dist/botframework-webchat-api.hook.mjs"
},
"require": {
"types": "./dist/botframework-webchat-api.hook.d.ts",
"default": "./dist/botframework-webchat-api.hook.js"
}
},
"./internal": {
"import": {
"types": "./dist/botframework-webchat-api.internal.d.mts",
"default": "./dist/botframework-webchat-api.internal.mjs"
},
"require": {
"types": "./dist/botframework-webchat-api.internal.d.ts",
"default": "./dist/botframework-webchat-api.internal.js"
}
},
"./middleware": {
"import": {
"types": "./dist/botframework-webchat-api.middleware.d.mts",
"default": "./dist/botframework-webchat-api.middleware.mjs"
},
"require": {
"types": "./dist/botframework-webchat-api.middleware.d.ts",
"default": "./dist/botframework-webchat-api.middleware.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:globalize && npm run build:tsup && npm run build:dtsroll && npm run build:validate",
"build:globalize": "node scripts/createPrecompiledGlobalize.mjs",
"build:tsup": "tsup",
"build:dtsroll": "dtsroll ./dist/*.d.*",
"build:validate": "npm run build:validate:dts",
"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-api-middleware": "development",
"@msinternal/botframework-webchat-base": "development",
"@msinternal/botframework-webchat-cldr-data": "development",
"@msinternal/botframework-webchat-react-hooks": "development",
"@msinternal/botframework-webchat-react-valibot": "development",
"@msinternal/botframework-webchat-redux-store": "development",
"@msinternal/botframework-webchat-tsconfig": "development",
"botframework-webchat-core": "production"
},
"pinDependencies": {
"@types/react": [
"16",
"react@16.8.6 is our baseline"
],
"react-redux": [
"7",
"react-redux@>7 requires newer version of React"
],
"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-api-middleware": "^0.0.0-0",
"@msinternal/botframework-webchat-base": "^0.0.0-0",
"@msinternal/botframework-webchat-cldr-data": "36.0.0-0",
"@msinternal/botframework-webchat-react-hooks": "^0.0.0-0",
"@msinternal/botframework-webchat-react-valibot": "^0.0.0-0",
"@msinternal/botframework-webchat-redux-store": "^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/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",
"globalize-compiler": "^1.1.1",
"iana-tz-data": "^2019.1.0",
"nodemon": "^3.1.10",
"type-fest": "^4.41.0",
"typescript": "~5.8.3"
},
"dependencies": {
"botframework-webchat-core": "0.0.0-0",
"globalize": "1.7.0",
"iter-fest": "0.3.0",
"math-random": "2.0.1",
"prop-types": "15.8.1",
"react-chain-of-responsibility": "0.4.1",
"react-redux": "7.2.9",
"redux": "5.0.1",
"simple-update-in": "2.2.0",
"use-ref-from": "0.1.0",
"valibot": "1.1.0"
},
"peerDependencies": {
"@types/react": "^16.14.65",
"react": ">= 16.8.6",
"react-dom": ">= 16.8.6"
}
}