From 0140f7e6ba57e9f0ed3062079878273d4ba19055 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 28 Feb 2024 12:11:33 +0100 Subject: [PATCH] add preset/manager/preview entry files back to the root --- manager.js | 1 + package.json | 2 +- preset.js | 4 ++++ preview.js | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 manager.js create mode 100644 preset.js create mode 100644 preview.js diff --git a/manager.js b/manager.js new file mode 100644 index 0000000..8a2eae4 --- /dev/null +++ b/manager.js @@ -0,0 +1 @@ +import './dist/manager'; diff --git a/package.json b/package.json index 0add362..36d896d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "storybook-addon-kit", + "name": "storybook-addon-kit-test-module", "version": "0.0.0", "description": "everything you need to build a Storybook addon", "keywords": [ diff --git a/preset.js b/preset.js new file mode 100644 index 0000000..bd94354 --- /dev/null +++ b/preset.js @@ -0,0 +1,4 @@ +// this file is slightly misleading. It needs to be CJS, and thus in this "type": "module" package it should be named preset.cjs +// but Storybook won't pick that filename up so we have to name it preset.js instead + +module.exports = require('./dist/preset.cjs'); diff --git a/preview.js b/preview.js new file mode 100644 index 0000000..49ad602 --- /dev/null +++ b/preview.js @@ -0,0 +1 @@ +export * from './dist/preview';