forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 4.42 KB
/
package.json
File metadata and controls
94 lines (94 loc) · 4.42 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
{
"name": "botframework-webchat-fluent-theme",
"version": "0.0.0-0",
"description": "Fluent theme for Bot Framework Web Chat",
"main": "./dist/botframework-webchat-fluent-theme.js",
"types": "./dist/botframework-webchat-fluent-theme.d.ts",
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"import": {
"types": "./dist/botframework-webchat-fluent-theme.d.mts",
"default": "./dist/botframework-webchat-fluent-theme.mjs"
},
"required": {
"types": "./dist/botframework-webchat-fluent-theme.d.ts",
"default": "./dist/botframework-webchat-fluent-theme.js"
}
}
},
"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/packages/core#readme",
"files": [
"dist/**/*.js",
"dist/**/*.map",
"dist/**/*.mjs",
"dist/**/*.mts",
"dist/**/*.ts",
"src/**/*"
],
"scripts": {
"build": "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": "npm run build -- --watch"
},
"localDependencies": {
"@msinternal/botframework-webchat-base": "development",
"@msinternal/botframework-webchat-styles": "development",
"@msinternal/botframework-webchat-tsconfig": "development",
"botframework-webchat-api": "production",
"botframework-webchat-component": "production",
"botframework-webchat-core": "production"
},
"pinDependencies": {
"@types/react": [
"16",
"react@16.8.6 is our baseline"
],
"typescript": [
"~5.8.3",
"@typescript-eslint/parser@8.38.0 does not support typescript@5.9.2 yet"
]
},
"devDependencies": {
"@msinternal/botframework-webchat-base": "0.0.0-0",
"@msinternal/botframework-webchat-styles": "0.0.0-0",
"@msinternal/botframework-webchat-tsconfig": "^0.0.0-0",
"@types/math-random": "^1.0.2",
"@types/node": "^24.1.0",
"@types/react": "^16.14.65",
"tsup": "^8.5.0",
"typescript": "~5.8.3"
},
"dependencies": {
"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",
"inject-meta-tag": "0.0.1",
"math-random": "2.0.1",
"use-ref-from": "0.1.0",
"valibot": "1.1.0"
},
"peerDependencies": {
"react": ">= 16.8.6"
}
}