Skip to content

Commit

Permalink
fix(storybook-builder): add missing files (#4837)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng authored Oct 24, 2023
1 parent 6e354e2 commit af507b3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/small-sheep-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/storybook-builder': patch
---

fix(storybook-builder): add missing files
fix(storybook-builder): 添加全 files
4 changes: 3 additions & 1 deletion packages/storybook/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"test": "vitest run"
},
"files": [
"dist"
"dist",
"templates",
"preset.js"
],
"exports": {
".": {
Expand Down
2 changes: 2 additions & 0 deletions packages/storybook/builder/preset.js
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit af507b3

Please sign in to comment.