Skip to content

Commit

Permalink
Generate addons/backgrounds with ts-up
Browse files Browse the repository at this point in the history
Ref: #18732
  • Loading branch information
Saunved committed Jul 25, 2022
1 parent de56145 commit b2a7a17
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addons/backgrounds/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 addons/backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,32 @@
},
"license": "MIT",
"author": "jbaxleyiii",
"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"
},
"./preview": {
"require": "./dist/preview.js",
"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 @@ -36,9 +59,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.16",
"@storybook/api": "7.0.0-alpha.16",
"@storybook/client-logger": "7.0.0-alpha.16",
Expand Down Expand Up @@ -70,6 +94,13 @@
"publishConfig": {
"access": "public"
},
"bundler": {
"entries": [
"./src/index.ts",
"./src/manager.tsx",
"./src/preview.tsx"
]
},
"gitHead": "df30e7db2b251418af106345e5722477f057ec36",
"storybook": {
"displayName": "Backgrounds",
Expand Down
2 changes: 1 addition & 1 deletion addons/backgrounds/preview.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './dist/esm/preview';
import './dist/preview';
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6910,6 +6910,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@storybook/addon-backgrounds@workspace:addons/backgrounds"
dependencies:
"@digitak/esrun": ^3.2.2
"@storybook/addons": 7.0.0-alpha.16
"@storybook/api": 7.0.0-alpha.16
"@storybook/client-logger": 7.0.0-alpha.16
Expand Down

0 comments on commit b2a7a17

Please sign in to comment.