diff --git a/.changeset/small-sheep-travel.md b/.changeset/small-sheep-travel.md new file mode 100644 index 000000000000..84cdda21bfc2 --- /dev/null +++ b/.changeset/small-sheep-travel.md @@ -0,0 +1,6 @@ +--- +'@modern-js/storybook-builder': patch +--- + +fix(storybook-builder): add missing files +fix(storybook-builder): 添加全 files diff --git a/packages/storybook/builder/package.json b/packages/storybook/builder/package.json index 5c317cd4ea68..f763cbc4d08f 100644 --- a/packages/storybook/builder/package.json +++ b/packages/storybook/builder/package.json @@ -16,7 +16,9 @@ "test": "vitest run" }, "files": [ - "dist" + "dist", + "templates", + "preset.js" ], "exports": { ".": { diff --git a/packages/storybook/builder/preset.js b/packages/storybook/builder/preset.js index a2b0ad64d349..8b7b7a9f5179 100644 --- a/packages/storybook/builder/preset.js +++ b/packages/storybook/builder/preset.js @@ -1,2 +1,4 @@ // This file is for some package that can't use exports field, +// for example, framework needs to specify builder path using +// abs path, when resolve abs path, exports is ignored module.exports = require('./dist/cjs/preset.js');