mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
make blocks more self-contained
This commit is contained in:
parent
ab687a133f
commit
c52304288f
@ -24,37 +24,9 @@
|
||||
"url": "https://opencollective.com/storybook"
|
||||
},
|
||||
"license": "MIT",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./dist/index.js",
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./preview": {
|
||||
"require": "./dist/preview.js",
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
},
|
||||
"./preset": {
|
||||
"require": "./dist/preset.js",
|
||||
"import": "./dist/preset.mjs",
|
||||
"types": "./dist/preset.d.ts"
|
||||
},
|
||||
"./blocks": {
|
||||
"require": "./dist/blocks.js",
|
||||
"import": "./dist/blocks.mjs",
|
||||
"types": "./dist/blocks.d.ts"
|
||||
},
|
||||
"./dist/blocks": {
|
||||
"require": "./dist/blocks.js",
|
||||
"import": "./dist/blocks.mjs",
|
||||
"types": "./dist/blocks.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"main": "dist/cjs/index.js",
|
||||
"module": "dist/esm/index.mjs",
|
||||
"types": "dist/types/index.d.ts",
|
||||
"files": [
|
||||
"dist/**/*",
|
||||
"angular/**/*",
|
||||
@ -74,11 +46,12 @@
|
||||
],
|
||||
"scripts": {
|
||||
"check": "../../../scripts/node_modules/.bin/tsc --noEmit",
|
||||
"prep": "../../../scripts/prepare/bundle.ts"
|
||||
"prep": "node ../../../scripts/prepare.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-transform-react-jsx": "^7.12.12",
|
||||
"@jest/transform": "^26.6.2",
|
||||
"@mdx-js/react": "^2.1.5",
|
||||
"@storybook/blocks": "7.0.0-alpha.48",
|
||||
"@storybook/components": "7.0.0-alpha.48",
|
||||
"@storybook/csf-plugin": "7.0.0-alpha.48",
|
||||
@ -96,7 +69,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@mdx-js/react": "^2.1.5",
|
||||
"react": "^16.8.0",
|
||||
"react-dom": "16.14.0",
|
||||
"typescript": "~4.6.3"
|
||||
@ -104,14 +76,6 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"bundler": {
|
||||
"entries": [
|
||||
"./src/index.ts",
|
||||
"./src/preset.ts",
|
||||
"./src/preview.ts",
|
||||
"./src/blocks.ts"
|
||||
]
|
||||
},
|
||||
"gitHead": "b58a29b785462f8a8b711b6bb2d7223fd6dc17fd",
|
||||
"storybook": {
|
||||
"displayName": "Docs",
|
||||
|
@ -1 +1 @@
|
||||
module.exports = require('./dist/preset');
|
||||
module.exports = require('./dist/cjs/preset');
|
||||
|
@ -1 +1 @@
|
||||
export * from './dist/preview';
|
||||
export * from './dist/esm/preview';
|
||||
|
@ -38,13 +38,12 @@
|
||||
"*.d.ts"
|
||||
],
|
||||
"scripts": {
|
||||
"check": "../../../scripts/node_modules/.bin/tsc --noEmit",
|
||||
"prep": "../../../scripts/prepare/bundle.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@storybook/api": "7.0.0-alpha.48",
|
||||
"@storybook/channels": "7.0.0-alpha.48",
|
||||
"@storybook/client-logger": "7.0.0-alpha.48",
|
||||
"@storybook/components": "7.0.0-alpha.48",
|
||||
"@storybook/core-events": "7.0.0-alpha.48",
|
||||
"@storybook/csf": "next",
|
||||
"@storybook/docs-tools": "7.0.0-alpha.48",
|
||||
@ -53,21 +52,19 @@
|
||||
"@storybook/theming": "7.0.0-alpha.48",
|
||||
"@storybook/types": "7.0.0-alpha.48",
|
||||
"@types/lodash": "^4.14.167",
|
||||
"color-convert": "^2.0.1",
|
||||
"dequal": "^2.0.2",
|
||||
"global": "^4.4.0",
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-to-jsx": "^7.1.3",
|
||||
"memoizerific": "^1.11.3",
|
||||
"polished": "^4.2.2",
|
||||
"react-colorful": "^5.1.2",
|
||||
"ts-dedent": "^2.0.0",
|
||||
"util-deprecate": "^1.0.2"
|
||||
"memoizerific": "^1.11.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-actions": "7.0.0-alpha.48",
|
||||
"@storybook/addons": "7.0.0-alpha.48",
|
||||
"@types/color-convert": "^2.0.0"
|
||||
"@storybook/components": "7.0.0-alpha.48",
|
||||
"@types/color-convert": "^2.0.0",
|
||||
"color-convert": "^2.0.1",
|
||||
"markdown-to-jsx": "^7.1.3",
|
||||
"polished": "^4.2.2",
|
||||
"react-colorful": "^5.1.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||
|
@ -6111,8 +6111,6 @@ __metadata:
|
||||
resolution: "@storybook/blocks@workspace:ui/blocks"
|
||||
dependencies:
|
||||
"@storybook/addon-actions": 7.0.0-alpha.48
|
||||
"@storybook/addons": 7.0.0-alpha.48
|
||||
"@storybook/api": 7.0.0-alpha.48
|
||||
"@storybook/channels": 7.0.0-alpha.48
|
||||
"@storybook/client-logger": 7.0.0-alpha.48
|
||||
"@storybook/components": 7.0.0-alpha.48
|
||||
@ -6133,8 +6131,6 @@ __metadata:
|
||||
memoizerific: ^1.11.3
|
||||
polished: ^4.2.2
|
||||
react-colorful: ^5.1.2
|
||||
ts-dedent: ^2.0.0
|
||||
util-deprecate: ^1.0.2
|
||||
peerDependencies:
|
||||
react: ^16.8.0 || ^17.0.0 || ^18.0.0
|
||||
languageName: unknown
|
||||
|
Loading…
x
Reference in New Issue
Block a user