Skip to content

Commit

Permalink
build(addon-viewport): use ts-up to build addon-viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
luciana-mendonca committed Aug 16, 2022
1 parent 06ffa29 commit 4e32262
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.20",
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": "a6c00d2ebed21da54b4772b4a4f7fed9258f0ab4",
"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 4e32262

Please sign in to comment.