|
58 | 58 | } |
59 | 59 | }, |
60 | 60 | "scripts": { |
61 | | - "build": "tsup", |
| 61 | + "build": "npm run build:tsup && npm run build:validate", |
| 62 | + "build:tsup": "tsup", |
| 63 | + "build:validate": "if grep -R -n -F --include='*.d.ts' --include='*.d.mts' '@msinternal/' ./dist/; then echo '*.d.ts files should not import \"@msinternal/*\"' >&2; exit 1; fi", |
62 | 64 | "bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)", |
63 | 65 | "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", |
64 | 66 | "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", |
|
68 | 70 | "precommit:eslint": "../../node_modules/.bin/eslint --report-unused-disable-directives --max-warnings 0", |
69 | 71 | "precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false", |
70 | 72 | "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", |
71 | | - "start": "npm run build -- --watch", |
| 73 | + "start": "npm run build:tsup -- --watch", |
72 | 74 | "test:tsd": "../../node_modules/.bin/tsd" |
73 | 75 | }, |
74 | 76 | "localDependencies": { |
| 77 | + "botframework-directlinespeech-sdk": "production", |
| 78 | + "botframework-webchat-api": "production", |
| 79 | + "botframework-webchat-component": "production", |
| 80 | + "botframework-webchat-core": "production", |
75 | 81 | "@msinternal/botframework-webchat-base": "development", |
76 | 82 | "@msinternal/botframework-webchat-tsconfig": "development", |
77 | 83 | "@msinternal/isomorphic-react": "development", |
|
0 commit comments