Skip to content

Commit

Permalink
Merge pull request #18943 from luciana-mendonca/build/addon-viewport-…
Browse files Browse the repository at this point in the history
…tsup

Build: Use ts-up to build addon-viewport
  • Loading branch information
ndelangen authored Aug 23, 2022
2 parents 6ec7732 + a2d4e74 commit 8688770
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/addons/viewport/manager.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import './dist/esm/manager';
import './dist/manager';
39 changes: 35 additions & 4 deletions code/addons/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,32 @@
"url": "https://opencollective.com/storybook"
},
"license": "MIT",
"main": "dist/cjs/preview.js",
"module": "dist/esm/preview.js",
"types": "dist/types/preview.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"
},
"./preview": {
"require": "./dist/preview.ts",
"import": "./dist/preview.mjs",
"types": "./dist/preview.d.ts"
},
"./register.js": {
"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 @@ -33,7 +56,7 @@
],
"scripts": {
"check": "tsc --noEmit",
"prepare": "node ../../../scripts/prepare.js"
"prepare": "../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@storybook/addons": "7.0.0-alpha.23",
Expand Down Expand Up @@ -65,6 +88,14 @@
"publishConfig": {
"access": "public"
},
"bundler": {
"entries": [
"./src/index.ts",
"./src/models/index.ts",
"./src/manager.tsx",
"./src/preview.ts"
]
},
"gitHead": "0900e20acfbc12551c6a3f788b8de5dd6af5f80a",
"storybook": {
"displayName": "Viewport",
Expand Down
3 changes: 3 additions & 0 deletions code/addons/viewport/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './constants';
export * from './defaults';
export * from './shortcuts';

0 comments on commit 8688770

Please sign in to comment.