Use /dist/preview in addons

This commit is contained in:
Ian VanSchooten 2022-11-02 16:02:17 -04:00
parent cec66540e3
commit a61403ae0b
15 changed files with 22 additions and 36 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"
},

View File

@ -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';

View File

@ -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';

View File

@ -1,3 +1 @@
// This lint rule fails because it doesn't use export maps correctly
export * from '@storybook/addon-docs/preview';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -1 +1,4 @@
declare module 'fs';
// TODO: Remove this once addon-docs is generated with tsup
declare module '@storybook/addon-docs/preview';

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"