mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 12:41:06 +08:00
Use /dist/preview in addons
This commit is contained in:
parent
cec66540e3
commit
a61403ae0b
@ -36,7 +36,7 @@
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
},
|
||||
"./preview": {
|
||||
"./dist/preview": {
|
||||
"require": "./dist/preview.js",
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
|
@ -37,7 +37,7 @@
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
},
|
||||
"./preview": {
|
||||
"./dist/preview": {
|
||||
"require": "./dist/preview.js",
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
|
@ -36,7 +36,7 @@
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
},
|
||||
"./preview": {
|
||||
"./dist/preview": {
|
||||
"require": "./dist/preview.js",
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
|
@ -30,32 +30,32 @@
|
||||
"./preview/actions": {
|
||||
"require": "./dist/preview/actions.js",
|
||||
"import": "./dist/preview/actions.mjs",
|
||||
"types": "./dist/actions.d.ts"
|
||||
"types": "./dist/preview/actions.d.ts"
|
||||
},
|
||||
"./preview/backgrounds": {
|
||||
"require": "./dist/preview/backgrounds.js",
|
||||
"import": "./dist/preview/backgrounds.mjs",
|
||||
"types": "./dist/backgrounds.d.ts"
|
||||
"types": "./dist/preview/backgrounds.d.ts"
|
||||
},
|
||||
"./preview/docs": {
|
||||
"require": "./dist/preview/docs.js",
|
||||
"import": "./dist/preview/docs.mjs",
|
||||
"types": "./dist/docs.d.ts"
|
||||
"types": "./dist/preview/docs.d.ts"
|
||||
},
|
||||
"./preview/highlight": {
|
||||
"require": "./dist/preview/highlight.js",
|
||||
"import": "./dist/preview/highlight.mjs",
|
||||
"types": "./dist/highlight.d.ts"
|
||||
"types": "./dist/preview/highlight.d.ts"
|
||||
},
|
||||
"./preview/measure": {
|
||||
"require": "./dist/preview/measure.js",
|
||||
"import": "./dist/preview/measure.mjs",
|
||||
"types": "./dist/measure.d.ts"
|
||||
"types": "./dist/preview/measure.d.ts"
|
||||
},
|
||||
"./preview/outline": {
|
||||
"require": "./dist/preview/outline.js",
|
||||
"import": "./dist/preview/outline.mjs",
|
||||
"types": "./dist/outline.d.ts"
|
||||
"types": "./dist/preview/outline.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
|
@ -1,4 +1 @@
|
||||
/* eslint-disable import/export */
|
||||
// This lint rule fails because it doesn't use export maps correctly
|
||||
|
||||
export * from '@storybook/addon-actions/preview';
|
||||
export * from '@storybook/addon-actions/dist/preview';
|
||||
|
@ -1,4 +1 @@
|
||||
/* eslint-disable import/export */
|
||||
// This lint rule fails because it doesn't use export maps correctly
|
||||
|
||||
export * from '@storybook/addon-backgrounds/preview';
|
||||
export * from '@storybook/addon-backgrounds/dist/preview';
|
||||
|
@ -1,3 +1 @@
|
||||
// This lint rule fails because it doesn't use export maps correctly
|
||||
|
||||
export * from '@storybook/addon-docs/preview';
|
||||
|
@ -1,4 +1 @@
|
||||
/* eslint-disable import/export */
|
||||
// This lint rule fails because it doesn't use export maps correctly
|
||||
|
||||
export * from '@storybook/addon-highlight/preview';
|
||||
export * from '@storybook/addon-highlight/dist/preview';
|
||||
|
@ -1,4 +1 @@
|
||||
/* eslint-disable import/export */
|
||||
// This lint rule fails because it doesn't use export maps correctly
|
||||
|
||||
export * from '@storybook/addon-measure/preview';
|
||||
export * from '@storybook/addon-measure/dist/preview';
|
||||
|
@ -1,4 +1 @@
|
||||
/* eslint-disable import/export */
|
||||
// This lint rule fails because it doesn't use export maps correctly
|
||||
|
||||
export * from '@storybook/addon-outline/preview';
|
||||
export * from '@storybook/addon-outline/dist/preview';
|
||||
|
3
code/addons/essentials/src/typings.d.ts
vendored
3
code/addons/essentials/src/typings.d.ts
vendored
@ -1 +1,4 @@
|
||||
declare module 'fs';
|
||||
|
||||
// TODO: Remove this once addon-docs is generated with tsup
|
||||
declare module '@storybook/addon-docs/preview';
|
||||
|
@ -27,7 +27,7 @@
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./dist/manager": {
|
||||
"./manager": {
|
||||
"require": "./dist/manager.js",
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
|
@ -32,7 +32,7 @@
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
},
|
||||
"./preview": {
|
||||
"./dist/preview": {
|
||||
"require": "./dist/preview.js",
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
|
@ -35,7 +35,7 @@
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
},
|
||||
"./preview": {
|
||||
"./dist/preview": {
|
||||
"require": "./dist/preview.js",
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
|
@ -33,7 +33,7 @@
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./dist/manager": {
|
||||
"./manager": {
|
||||
"require": "./dist/manager.js",
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
@ -43,7 +43,7 @@
|
||||
"import": "./dist/preview.mjs",
|
||||
"types": "./dist/preview.d.ts"
|
||||
},
|
||||
"./dist/register": {
|
||||
"./register": {
|
||||
"require": "./dist/manager.js",
|
||||
"import": "./dist/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
|
Loading…
x
Reference in New Issue
Block a user