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 addons-actions with ts-up #18775

Merged
merged 10 commits into from
Sep 27, 2022
2 changes: 1 addition & 1 deletion addons/actions/manager.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './dist/esm/manager';
import './dist/manager';
34 changes: 30 additions & 4 deletions addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,27 @@
"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"
},
"./manager": {
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
},
"./register": {
"require": "./dist/manager.js",
"import": "./dist/manager.mjs",
"types": "./dist/manager.d.ts"
},
"./package.json": "./package.json"
},
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"dist/**/*",
"README.md",
Expand All @@ -32,9 +50,10 @@
],
"scripts": {
"check": "tsc --noEmit",
"prepare": "node ../../scripts/prepare.js"
"prepare": "esrun ../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@digitak/esrun": "^3.2.2",
"@storybook/addons": "7.0.0-alpha.13",
"@storybook/api": "7.0.0-alpha.13",
"@storybook/client-logger": "7.0.0-alpha.13",
Expand Down Expand Up @@ -73,6 +92,13 @@
"publishConfig": {
"access": "public"
},
"bundler": {
"entries": [
"./src/index.ts",
"./src/manager.tsx",
"./src/preset/preview.tsx"
ndelangen marked this conversation as resolved.
Show resolved Hide resolved
]
},
"gitHead": "9ac4d2e0a05eb945713a0e6689abc3b12359e181",
"storybook": {
"displayName": "Actions",
Expand Down
2 changes: 1 addition & 1 deletion addons/actions/preview.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/esm/preset/preview';
import './dist/preset/preview';
ndelangen marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6875,6 +6875,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@storybook/addon-actions@workspace:addons/actions"
dependencies:
"@digitak/esrun": ^3.2.2
"@storybook/addons": 7.0.0-alpha.13
"@storybook/api": 7.0.0-alpha.13
"@storybook/client-logger": 7.0.0-alpha.13
Expand Down