|
38 | 38 | "src/**/*" |
39 | 39 | ], |
40 | 40 | "scripts": { |
41 | | - "build": "tsup", |
| 41 | + "build": "npm run build:tsup && npm run build:validate", |
| 42 | + "build:tsup": "tsup", |
| 43 | + "build:validate": "grep -L '.webchat-fluent .w' dist/*.css 2>/dev/null || { echo \"Error: dist/*.css is not compiled by Lightning CSS\" >&2; exit 1; }", |
42 | 44 | "bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)", |
43 | 45 | "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", |
44 | 46 | "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", |
|
51 | 53 | "start": "npm run build -- --watch" |
52 | 54 | }, |
53 | 55 | "localDependencies": { |
54 | | - "@msinternal/botframework-webchat-base": "development", |
55 | | - "@msinternal/botframework-webchat-styles": "development", |
56 | 56 | "@msinternal/botframework-webchat-tsconfig": "development", |
57 | | - "botframework-webchat-api": "production", |
58 | | - "botframework-webchat-component": "production", |
59 | | - "botframework-webchat-core": "production" |
| 57 | + "botframework-webchat": "production" |
60 | 58 | }, |
61 | 59 | "pinDependencies": { |
62 | 60 | "@types/react": [ |
|
69 | 67 | ] |
70 | 68 | }, |
71 | 69 | "devDependencies": { |
72 | | - "@msinternal/botframework-webchat-base": "0.0.0-0", |
73 | | - "@msinternal/botframework-webchat-styles": "0.0.0-0", |
74 | 70 | "@msinternal/botframework-webchat-tsconfig": "^0.0.0-0", |
75 | 71 | "@types/math-random": "^1.0.2", |
76 | 72 | "@types/node": "^24.1.0", |
|
79 | 75 | "typescript": "~5.8.3" |
80 | 76 | }, |
81 | 77 | "dependencies": { |
82 | | - "botframework-webchat-api": "0.0.0-0", |
83 | | - "botframework-webchat-component": "0.0.0-0", |
84 | | - "botframework-webchat-core": "0.0.0-0", |
| 78 | + "botframework-webchat": "0.0.0-0", |
85 | 79 | "classnames": "2.5.1", |
86 | 80 | "inject-meta-tag": "0.0.1", |
87 | 81 | "math-random": "2.0.1", |
|
0 commit comments