migrate preview-web to tsup

This commit is contained in:
Norbert de Langen 2022-10-27 23:11:18 +02:00
parent 183db07bda
commit ffb04a295f
No known key found for this signature in database
GPG Key ID: FD0E78AF9A837762
2 changed files with 17 additions and 6 deletions

View File

@ -20,9 +20,17 @@
}, },
"license": "MIT", "license": "MIT",
"sideEffects": false, "sideEffects": false,
"main": "dist/cjs/index.js", "exports": {
"module": "dist/esm/index.js", ".": {
"types": "dist/types/index.d.ts", "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": [ "files": [
"dist/**/*", "dist/**/*",
"README.md", "README.md",
@ -31,7 +39,7 @@
], ],
"scripts": { "scripts": {
"check": "../../../scripts/node_modules/.bin/tsc --noEmit", "check": "../../../scripts/node_modules/.bin/tsc --noEmit",
"prep": "node ../../../scripts/prepare.js" "prep": "../../../scripts/prepare/bundle.ts"
}, },
"dependencies": { "dependencies": {
"@storybook/addons": "7.0.0-alpha.44", "@storybook/addons": "7.0.0-alpha.44",
@ -57,5 +65,10 @@
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
"bundler": {
"entries": [
"./src/index.ts"
]
},
"gitHead": "d4965bd328d8f83c279560c7bc8428e490b275f3" "gitHead": "d4965bd328d8f83c279560c7bc8428e490b275f3"
} }

View File

@ -64,8 +64,6 @@ export class PreviewWeb<TFramework extends AnyFramework> extends Preview<TFramew
view: WebView; view: WebView;
previewEntryError?: Error;
currentSelection?: Store_Selection; currentSelection?: Store_Selection;
currentRender?: PossibleRender<TFramework>; currentRender?: PossibleRender<TFramework>;