Skip to content

Commit

Permalink
Tweak component package
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Sep 30, 2024
1 parent f7033e3 commit d6e3822
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
27 changes: 12 additions & 15 deletions packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"default": "./dist/botframework-webchat-component.mjs"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
"types": "./dist/botframework-webchat-component.d.ts",
"default": "./dist/botframework-webchat-component.js"
}
},
"./internal": {
Expand All @@ -21,8 +21,8 @@
"default": "./dist/botframework-webchat-component.internal.mjs"
},
"require": {
"types": "./lib/internal.d.ts",
"default": "./lib/internal.js"
"types": "./dist/botframework-webchat-component.internal.d.ts",
"default": "./dist/botframework-webchat-component.internal.d.js"
}
},
"./decorator": {
Expand All @@ -31,8 +31,8 @@
"default": "./dist/botframework-webchat-component.decorator.mjs"
},
"require": {
"types": "./lib/decorator/index.d.ts",
"default": "./lib/decorator/index.js"
"types": "./dist/botframework-webchat-component.decorator.d.ts",
"default": "./dist/botframework-webchat-component.decorator.js"
}
}
},
Expand All @@ -51,15 +51,12 @@
"files": [
"./dist/**/*",
"./*.js",
"./lib/**/*",
"./src/**/*"
],
"homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
"scripts": {
"build": "npm run build:tsup && npm run build:typescript && npm run build:babel",
"build:babel": "cross-env build_tool=babel module_format=commonjs babel src --copy-files --extensions .js,.ts,.tsx --ignore **/*.spec.js,**/*.spec.ts,**/*.spec.tsx,**/*.test.js,**/*.test.ts,**/*.test.tsx,__tests__/**/*.js,__tests__/**/*.ts,__tests__/**/*.tsx --no-copy-ignored --out-dir lib --verbose",
"build": "npm run build:tsup",
"build:tsup": "tsup --config ./tsup.config.ts",
"build:typescript": "tsc --project src/tsconfig.json",
"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",
Expand All @@ -70,14 +67,13 @@
"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:babel": "npm run build:babel -- --skip-initial-build --watch",
"start:tsup": "npm run build:tsup -- --watch",
"start:typescript": "npm run build:typescript -- --watch"
"start:tsup": "npm run build:tsup -- --watch"
},
"localDependencies": {
"botframework-webchat-api": "production",
"botframework-webchat-base": "development",
"botframework-webchat-core": "production",
"botframework-webchat-styles": "production"
"botframework-webchat-styles": "development"
},
"pinDependencies": {
"@babel/cli": [
Expand Down Expand Up @@ -131,6 +127,8 @@
"@types/react": "^16.14.60",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"botframework-webchat-base": "0.0.0-0",
"botframework-webchat-styles": "0.0.0-0",
"concurrently": "^8.2.2",
"core-js": "^3.37.0",
"cross-env": "^7.0.3",
Expand All @@ -143,7 +141,6 @@
"base64-js": "1.5.1",
"botframework-webchat-api": "0.0.0-0",
"botframework-webchat-core": "0.0.0-0",
"botframework-webchat-styles": "0.0.0-0",
"classnames": "2.5.1",
"compute-scroll-into-view": "1.0.20",
"deep-freeze-strict": "1.1.1",
Expand Down
4 changes: 0 additions & 4 deletions packages/component/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "../lib",
"declarationMap": true,
"downlevelIteration": true,
"emitDeclarationOnly": true,
"jsx": "react",
"module": "ESNext",
"moduleResolution": "Bundler",
Expand Down

0 comments on commit d6e3822

Please sign in to comment.