-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathpackage.json
More file actions
90 lines (90 loc) · 4.37 KB
/
package.json
File metadata and controls
90 lines (90 loc) · 4.37 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
{
"name": "botframework-webchat-styles",
"version": "0.0.0-0",
"description": "The botframework-webchat styles package",
"main": "./dist/botframework-webchat-styles.js",
"types": "./dist/botframework-webchat-styles.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/botframework-webchat-styles.d.mts",
"default": "./dist/botframework-webchat-styles.mjs"
},
"require": {
"types": "./dist/botframework-webchat-styles.d.ts",
"default": "./dist/botframework-webchat-styles.js"
}
},
"./build": {
"import": {
"types": "./dist/botframework-webchat-styles.build.d.mts",
"default": "./dist/botframework-webchat-styles.build.mjs"
},
"require": {
"types": "./dist/botframework-webchat-styles.build.d.ts",
"default": "./dist/botframework-webchat-styles.build.js"
}
},
"./react": {
"import": {
"types": "./dist/botframework-webchat-styles.react.d.mts",
"default": "./dist/botframework-webchat-styles.react.mjs"
},
"require": {
"types": "./dist/botframework-webchat-styles.react.d.ts",
"default": "./dist/botframework-webchat-styles.react.js"
}
},
"./tsconfig.json": "./src/ts-config/config.json",
"./env": {
"types": "./src/env.d.ts"
}
},
"author": "Microsoft Corporation",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/microsoft/BotFramework-WebChat.git"
},
"bugs": {
"url": "https://github.com/microsoft/BotFramework-WebChat/issues"
},
"files": [
"./dist/**/*",
"./src/**/*",
"*.js"
],
"localDependencies": {
"botframework-webchat-base": "development"
},
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/styles#readme",
"scripts": {
"build": "npm run build:tsup",
"build:tsup": "tsup --config ./tsup.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": "concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
"start:tsup": "npm run build:tsup -- --watch"
},
"devDependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^22.13.4",
"botframework-webchat-base": "0.0.0-0",
"cross-env": "^7.0.3",
"esbuild": "^0.25.1",
"type-fest": "^4.34.1",
"typescript": "^5.7.3"
},
"peerDependencies": {
"react": ">= 16.8.6"
}
}