|
75 | 75 | ], |
76 | 76 | "homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme", |
77 | 77 | "scripts": { |
78 | | - "build": "npm run build:globalize && npm run build:tsup && npm run build:dtsroll && npm run build:validate", |
79 | | - "build:globalize": "node scripts/createPrecompiledGlobalize.mjs", |
80 | | - "build:tsup": "tsup", |
81 | | - "build:dtsroll": "dtsroll ./dist/*.d.*", |
82 | | - "build:validate": "npm run build:validate:dts", |
83 | | - "build:validate:dts": "if grep -q -P '@msinternal\\/' dist/*.d.* 2>/dev/null; then echo \"Error: dist/*.d.* is not compiled by dtsroll\" >&2; exit 1; fi", |
| 78 | + "build": "npm run --if-present build:pre && npm run build:run && npm run --if-present build:post", |
| 79 | + "build:post": "npm run build:post:dtsroll && npm run build:post:validate:dts", |
| 80 | + "build:post:dtsroll": "dtsroll ./dist/*.d.*", |
| 81 | + "build:post:validate:dts": "if grep -q -P '@msinternal\\/' dist/*.d.* 2>/dev/null; then echo \"Error: dist/*.d.* is not compiled by dtsroll\" >&2; exit 1; fi", |
| 82 | + "build:pre": "npm run build:pre:local-dependencies && npm run build:pre:watch && npm run build:pre:globalize", |
| 83 | + "build:pre:globalize": "node scripts/createPrecompiledGlobalize.mjs", |
| 84 | + "build:pre:local-dependencies": "../../scripts/npm/build-local-dependencies.sh", |
| 85 | + "build:pre:watch": "../../scripts/npm/build-watch.sh", |
| 86 | + "build:run": "tsup", |
84 | 87 | "bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)", |
85 | 88 | "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", |
86 | 89 | "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", |
|
90 | 93 | "precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0", |
91 | 94 | "precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false", |
92 | 95 | "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", |
93 | | - "start": "npm run build:tsup -- --watch" |
94 | | - }, |
95 | | - "localDependencies": { |
96 | | - "@msinternal/botframework-webchat-api-middleware": "development", |
97 | | - "@msinternal/botframework-webchat-base": "development", |
98 | | - "@msinternal/botframework-webchat-cldr-data": "development", |
99 | | - "@msinternal/botframework-webchat-react-hooks": "development", |
100 | | - "@msinternal/botframework-webchat-react-valibot": "development", |
101 | | - "@msinternal/botframework-webchat-redux-store": "development", |
102 | | - "@msinternal/botframework-webchat-tsconfig": "development", |
103 | | - "botframework-webchat-core": "production" |
| 96 | + "start": "../../scripts/npm/notify-build.sh \"src\" \"../api-middleware/package.json\" \"../base/package.json\" \"../support/cldr-data/package.json\" \"../react-hooks/package.json\" \"../react-valibot/package.json\" \"../redux-store/package.json\" \"../tsconfig/package.json\" \"../core/package.json\"" |
104 | 97 | }, |
105 | 98 | "pinDependencies": { |
106 | 99 | "@types/react": [ |
|
116 | 109 | "@typescript-eslint/parser@8.38.0 does not support typescript@5.9.2 yet" |
117 | 110 | ] |
118 | 111 | }, |
| 112 | + "localDependencies": { |
| 113 | + "@msinternal/botframework-webchat-api-middleware": "development", |
| 114 | + "@msinternal/botframework-webchat-base": "development", |
| 115 | + "@msinternal/botframework-webchat-cldr-data": "development", |
| 116 | + "@msinternal/botframework-webchat-react-hooks": "development", |
| 117 | + "@msinternal/botframework-webchat-react-valibot": "development", |
| 118 | + "@msinternal/botframework-webchat-redux-store": "development", |
| 119 | + "@msinternal/botframework-webchat-tsconfig": "development", |
| 120 | + "botframework-webchat-core": "production" |
| 121 | + }, |
119 | 122 | "devDependencies": { |
120 | 123 | "@babel/core": "^7.28.0", |
121 | 124 | "@babel/preset-env": "^7.28.0", |
|
0 commit comments