Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Use TSUP to compile the renderers #18534

Merged
merged 16 commits into from
Jun 29, 2022
Merged
Prev Previous commit
Next Next commit
another one
  • Loading branch information
ndelangen committed Jun 22, 2022
commit 7a895a15f2e0ab38e563765f3db152e5dc751575
30 changes: 26 additions & 4 deletions renderers/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,34 @@
"url": "https://opencollective.com/storybook"
},
"license": "MIT",
"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"
},
"./preview": {
"require": "./dist/config.js",
"import": "./dist/config.mjs",
"types": "./dist/config.d.ts"
},
"./package.json": {
"require": "./package.json",
"import": "./package.json",
"types": "./package.json"
}
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"README.md",
"*.js",
"*.d.ts"
],
"scripts": {
"prepare": "node ../../scripts/prepare.js"
"prepare": "esrun ../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.5",
Expand All @@ -45,6 +62,7 @@
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@digitak/esrun": "^3.2.2",
"vue": "^2.6.12"
},
"peerDependencies": {
Expand All @@ -59,5 +77,9 @@
"publishConfig": {
"access": "public"
},
"bundlerEntrypoint": [
"./src/index.ts",
"./src/config.ts"
],
"gitHead": "3dd46982823b34d9f37be917b6247631081feff7"
}
2 changes: 1 addition & 1 deletion renderers/vue/preview.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/esm/config';
export * from './dist/config';
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9678,6 +9678,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@storybook/vue@workspace:renderers/vue"
dependencies:
"@digitak/esrun": ^3.2.2
"@storybook/addons": 7.0.0-alpha.5
"@storybook/client-logger": 7.0.0-alpha.5
"@storybook/core-client": 7.0.0-alpha.5
Expand Down