Skip to content

Commit a3a380a

Browse files
committed
WIP
1 parent d1cd51a commit a3a380a

59 files changed

Lines changed: 26957 additions & 10785 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 13164 additions & 10711 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"biome": "biome check ./packages",
3838
"browser": "node ./packages/test/harness/src/host/dev/index http://localhost:5001/__tests__/html/",
3939
"browser:watch": "node-dev --no-notify --respawn ./packages/test/harness/src/host/dev/index http://localhost:5001/__tests__/html/",
40-
"build": "npm run build --if-present --workspaces",
40+
"build:plugin": "cd packages/unplugin-lightningcss && npm run build",
41+
"build": "npm run build:plugin && npm run build --if-present --workspaces",
4142
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0) && npm run bump:packages && npm run bump:samples",
4243
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // []) 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",
4344
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // []) 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",
@@ -205,9 +206,10 @@
205206
"serve": "^14.2.4",
206207
"serve-handler": "^6.1.6",
207208
"strip-ansi": "^6.0.1",
208-
"tsup": "^8.3.6",
209+
"tsdown": "^0.11.12",
209210
"typescript": "^5.7.3",
210211
"typescript-plugin-css-modules": "^5.1.0",
212+
"unplugin-lightningcss": "file:./packages/unplugin-lightningcss",
211213
"xmlbuilder": "^15.1.1"
212214
},
213215
"dependencies": {

packages/api/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
],
5656
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
5757
"scripts": {
58-
"build": "npm run build:globalize && npm run build:tsup",
58+
"build": "npm run build:globalize && npm run build:tsdown",
5959
"build:globalize": "node scripts/createPrecompiledGlobalize.mjs",
60-
"build:tsup": "tsup --config ./tsup.config.ts",
60+
"build:tsdown": "NODE_OPTIONS=--max-old-space-size=4096 tsdown --config ./tsdown.config.ts",
6161
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
6262
"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",
6363
"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",
@@ -67,7 +67,7 @@
6767
"precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
6868
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
6969
"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",
70-
"start": "npm run build:tsup -- --onSuccess=\"touch ../component/src/index.ts\" --watch"
70+
"start": "npm run build:tsdown -- --onSuccess=\"touch ../component/src/index.ts\" --watch"
7171
},
7272
"localDependencies": {
7373
"botframework-webchat-cldr-data": "development",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'tsup';
2-
import baseConfig from '../../tsup.base.config';
1+
import { defineConfig } from 'tsdown';
2+
import baseConfig from '../../tsdown.base.config';
33

44
const config: typeof baseConfig = {
55
...baseConfig,

packages/base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
4444
"private": true,
4545
"scripts": {
46-
"build": "npm run build:tsup",
47-
"build:tsup": "tsup --config ./tsup.config.ts",
46+
"build": "npm run build:tsdown",
47+
"build:tsdown": "tsdown --config ./tsdown.config.ts",
4848
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
4949
"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",
5050
"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",
@@ -55,7 +55,7 @@
5555
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
5656
"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",
5757
"start": "concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
58-
"start:tsup": "npm run build:tsup -- --watch"
58+
"start:tsdown": "npm run build:tsdown -- --watch"
5959
},
6060
"devDependencies": {
6161
"@tsconfig/strictest": "^2.0.5",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'tsup';
2-
import baseConfig from '../../tsup.base.config';
1+
import { defineConfig } from 'tsdown';
2+
import baseConfig from '../../tsdown.base.config';
33

44
const config: typeof baseConfig = {
55
...baseConfig,

packages/bundle/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
}
4646
},
4747
"scripts": {
48-
"build": "npm run build:tsup",
49-
"build:tsup": "tsup --config ./tsup.config.ts",
48+
"build": "npm run build:tsdown",
49+
"build:tsdown": "tsdown --config ./tsup.config.ts",
5050
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
5151
"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",
5252
"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",
@@ -56,7 +56,7 @@
5656
"precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
5757
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
5858
"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",
59-
"start": "npm run build:tsup -- --watch"
59+
"start": "npm run build:tsdown -- --watch"
6060
},
6161
"localDependencies": {
6262
"botframework-directlinespeech-sdk": "production",

packages/bundle/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from 'path';
22
import { defineConfig } from 'tsup';
3-
import baseConfig from '../../tsup.base.config';
3+
import baseConfig from '../../tsdown.base.config';
44

55
// Redirect import paths for "microsoft-cognitiveservices-speech-sdk(...)"
66
// to point to es2015 distribution for all importing modules

packages/component/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
],
5656
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
5757
"scripts": {
58-
"build": "npm run build:tsup",
59-
"build:tsup": "tsup --config ./tsup.config.ts",
58+
"build": "npm run build:tsdown",
59+
"build:tsdown": "NODE_OPTIONS=--max-old-space-size=8192 tsdown --config ./tsdown.config.ts",
6060
"bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
6161
"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",
6262
"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",
@@ -66,7 +66,7 @@
6666
"precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0",
6767
"precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
6868
"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",
69-
"start": "npm run build:tsup -- --onSuccess=\"touch ../bundle/src/FullComposer.tsx\" --watch"
69+
"start": "npm run build:tsdown -- --onSuccess=\"touch ../bundle/src/FullComposer.tsx\" --watch"
7070
},
7171
"localDependencies": {
7272
"botframework-webchat-api": "production",
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { injectCSSPlugin } from 'botframework-webchat-styles/build';
2-
import { defineConfig } from 'tsup';
3-
import baseConfig from '../../tsup.base.config';
2+
import { defineConfig } from 'tsdown';
3+
import baseConfig from '../../tsdown.base.config';
44
import { componentStyleContent as componentStyleContentPlaceholder } from './src/Styles/createStyles';
55
import { decoratorStyleContent as decoratorStyleContentPlaceholder } from './src/decorator/private/createStyles';
6+
import LightningCSS from 'unplugin-lightningcss';
67

78
const config: typeof baseConfig = {
89
...baseConfig,
@@ -11,14 +12,13 @@ const config: typeof baseConfig = {
1112
'botframework-webchat-component.internal': './src/internal.ts',
1213
'botframework-webchat-component.decorator': './src/decorator/index.ts'
1314
},
15+
plugins: [
16+
LightningCSS.rolldown()
17+
],
1418
esbuildPlugins: [
1519
injectCSSPlugin({ stylesPlaceholder: componentStyleContentPlaceholder }),
1620
injectCSSPlugin({ stylesPlaceholder: decoratorStyleContentPlaceholder })
1721
],
18-
loader: {
19-
...baseConfig.loader,
20-
'.css': 'local-css'
21-
}
2222
};
2323

2424
export default defineConfig([

0 commit comments

Comments
 (0)