-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 5.96 KB
/
package.json
File metadata and controls
144 lines (144 loc) · 5.96 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
{
"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"
}
},
"./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"
}
},
"./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"
}
}
},
"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": [
"./dist/**/*",
"./*.js",
"./src/**/*"
],
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
"scripts": {
"build": "npm run build:globalize && npm run build:tsdown",
"build:globalize": "node scripts/createPrecompiledGlobalize.mjs",
"build:tsdown": "NODE_OPTIONS=--max-old-space-size=4096 tsdown --config ./tsdown.config.ts",
"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:tsdown -- --onSuccess=\"touch ../component/src/index.ts\" --watch"
},
"localDependencies": {
"botframework-webchat-cldr-data": "development",
"botframework-webchat-core": "production"
},
"pinDependencies": {
"@babel/cli": [
"7.18.10",
"@babel/*@7.21 is causing out-of-memory (OOM) issues"
],
"@babel/core": [
"7.19.1",
"@babel/*@7.21 is causing out-of-memory (OOM) issues"
],
"@babel/preset-env": [
"7.19.1",
"@babel/*@7.21 is causing out-of-memory (OOM) issues"
],
"@babel/preset-react": [
"7.18.6",
"@babel/*@7.21 is causing out-of-memory (OOM) issues"
],
"@babel/preset-typescript": [
"7.18.6",
"@babel/*@7.21 is causing out-of-memory (OOM) issues"
],
"@types/react": [
"16",
"react@16.8.6 is our baseline"
],
"react-redux": [
"7",
"react-redux@>7 requires newer version of React"
]
},
"devDependencies": {
"@babel/cli": "^7.18.10",
"@babel/core": "^7.19.1",
"@babel/preset-env": "^7.19.1",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/dom-speech-recognition": "^0.0.4",
"@types/node": "^22.13.4",
"@types/react": "^16.14.62",
"babel-plugin-istanbul": "^7.0.0",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"botframework-webchat-cldr-data": "36.0.0-0",
"concurrently": "^9.1.2",
"core-js": "^3.40.0",
"cross-env": "^7.0.3",
"globalize-compiler": "^1.1.1",
"iana-tz-data": "^2019.1.0",
"nodemon": "^3.1.9",
"type-fest": "^4.34.1",
"typescript": "^5.7.3"
},
"dependencies": {
"botframework-webchat-core": "0.0.0-0",
"globalize": "1.7.0",
"iter-fest": "^0.2.1",
"math-random": "2.0.1",
"prop-types": "15.8.1",
"react-chain-of-responsibility": "0.2.0",
"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": {
"react": ">= 16.8.6",
"react-dom": ">= 16.8.6"
}
}