Merge pull request #19694 from bryanjtc/tsup-lib-channel-websocket

Build: Bundle lib/channel-websocket with tsup
This commit is contained in:
Norbert de Langen 2022-11-19 01:35:23 +01:00 committed by GitHub
commit 48c4c42f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,9 +20,17 @@
},
"license": "MIT",
"sideEffects": false,
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"README.md",
@ -31,7 +39,7 @@
],
"scripts": {
"check": "../../../scripts/node_modules/.bin/tsc --noEmit",
"prep": "node ../../../scripts/prepare.js"
"prep": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/channels": "7.0.0-alpha.50",
@ -42,6 +50,11 @@
"devDependencies": {
"typescript": "^4.9.3"
},
"bundler": {
"entries": [
"./src/index.ts"
]
},
"publishConfig": {
"access": "public"
},