|
2 | 2 | "name": "botframework-webchat-api",
|
3 | 3 | "version": "0.0.0-0",
|
4 | 4 | "description": "React DOM component of botframework-webchat",
|
5 |
| - "main": "./lib/index.js", |
6 |
| - "types": "./lib/index.d.ts", |
| 5 | + "main": "./dist/botframework-webchat-api.js", |
| 6 | + "types": "./dist/botframework-webchat-api.d.ts", |
7 | 7 | "exports": {
|
8 | 8 | ".": {
|
9 | 9 | "import": {
|
10 | 10 | "types": "./dist/botframework-webchat-api.d.mts",
|
11 | 11 | "default": "./dist/botframework-webchat-api.mjs"
|
12 | 12 | },
|
13 | 13 | "require": {
|
14 |
| - "types": "./lib/index.d.ts", |
15 |
| - "default": "./lib/index.js" |
| 14 | + "types": "./dist/botframework-webchat-api.d.ts", |
| 15 | + "default": "./dist/botframework-webchat-api.js" |
16 | 16 | }
|
17 | 17 | },
|
18 | 18 | "./internal": {
|
|
21 | 21 | "default": "./dist/botframework-webchat-api.internal.mjs"
|
22 | 22 | },
|
23 | 23 | "require": {
|
24 |
| - "types": "./lib/internal.d.ts", |
25 |
| - "default": "./lib/internal.js" |
| 24 | + "types": "./dist/botframework-webchat-api.internal.d.ts", |
| 25 | + "default": "./dist/botframework-webchat-api.internal.js" |
26 | 26 | }
|
27 | 27 | },
|
28 | 28 | "./decorator": {
|
|
31 | 31 | "default": "./dist/botframework-webchat-api.decorator.mjs"
|
32 | 32 | },
|
33 | 33 | "require": {
|
34 |
| - "types": "./lib/decorator/index.d.ts", |
35 |
| - "default": "./lib/decorator/index.js" |
| 34 | + "types": "./dist/botframework-webchat-api.decorator.d.ts", |
| 35 | + "default": "./dist/botframework-webchat-api.decorator.js" |
36 | 36 | }
|
37 | 37 | }
|
38 | 38 | },
|
|
51 | 51 | "files": [
|
52 | 52 | "./dist/**/*",
|
53 | 53 | "./*.js",
|
54 |
| - "./lib/**/*", |
55 | 54 | "./src/**/*"
|
56 | 55 | ],
|
57 | 56 | "homepage": "https://github.com/microsoft/BotFramework-WebChat/tree/main/packages/component#readme",
|
58 | 57 | "scripts": {
|
59 |
| - "build": "npm run build:globalize && npm run build:tsup && npm run build:typescript && npm run build:babel", |
60 |
| - "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", |
| 58 | + "build": "npm run build:globalize && npm run build:tsup", |
61 | 59 | "build:globalize": "node scripts/createPrecompiledGlobalize.mjs",
|
62 | 60 | "build:tsup": "tsup --config ./tsup.config.ts",
|
63 |
| - "build:typescript": "tsc --project src/tsconfig.json", |
64 | 61 | "bump": "npm run bump:prod && npm run bump:dev && (npm audit fix || exit 0)",
|
65 | 62 | "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",
|
66 | 63 | "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",
|
|
71 | 68 | "precommit:typecheck": "tsc --project ./src --emitDeclarationOnly false --esModuleInterop true --noEmit --pretty false",
|
72 | 69 | "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",
|
73 | 70 | "start": "concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
|
74 |
| - "start:babel": "npm run build:babel -- --skip-initial-build --watch", |
75 |
| - "start:tsup": "npm run build:tsup -- --watch", |
76 |
| - "start:typescript": "npm run build:typescript -- --watch" |
| 71 | + "start:tsup": "npm run build:tsup -- --watch" |
77 | 72 | },
|
78 | 73 | "localDependencies": {
|
79 | 74 | "botframework-webchat-cldr-data": "development",
|
|
0 commit comments