Skip to content

Commit

Permalink
Merge pull request #66 from storybookjs/jeppe/add-root-entries
Browse files Browse the repository at this point in the history
Fix addons not working when resolved with `getAbsolutePath`
  • Loading branch information
JReinhold committed Feb 28, 2024
2 parents cf0875f + 0140f7e commit 971e1bb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions manager.js
@@ -0,0 +1 @@
import './dist/manager';
2 changes: 1 addition & 1 deletion 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": [
Expand Down
4 changes: 4 additions & 0 deletions 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');
1 change: 1 addition & 0 deletions preview.js
@@ -0,0 +1 @@
export * from './dist/preview';

0 comments on commit 971e1bb

Please sign in to comment.