generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix generated ESM, revamp build system #113
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0f5bf98
replace build system with svelte-package. refactor for typescript. lo…
hobbes7878 67bc5e4
adds test-runner
hobbes7878 53f31e9
resolve merge conflicts
hobbes7878 40c1152
await click in interaction test
hobbes7878 25a4298
finish tests with vitest. cleanup deps and package.json
hobbes7878 02ce02a
fix dedent dependency
hobbes7878 5857238
Update src/plugins/vite-svelte-csf.ts
hobbes7878 fa5505b
adds handling for Windows paths
hobbes7878 70c1500
Apply suggestions from code review
hobbes7878 9abce0f
cleanup scripts and expand vite peer deps range
hobbes7878 139f47e
strict typescript
hobbes7878 920391d
force resolutions of string-width and wrap-ansi
hobbes7878 acf9548
fix node-logger calls so just one arg is passed
hobbes7878 079431e
fix a few outstanding type errors in parser and preset
hobbes7878 529e422
stray comment
hobbes7878 7aad038
convert to pnpm
hobbes7878 78fc850
regen lockfile
hobbes7878 9cebdba
add fetch depth for actions/checkout@v3
hobbes7878 4269195
cleanup package.json scripts and pnpm in release workflow
hobbes7878 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ storybook-static/ | |
build-storybook.log | ||
package-lock.json | ||
.DS_Store | ||
.env | ||
.env | ||
*.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { StorybookConfig } from '@storybook/svelte-vite'; | ||
|
||
const config: StorybookConfig = { | ||
framework: '@storybook/svelte-vite', | ||
stories: [ | ||
'../stories/**/*.stories.svelte', | ||
], | ||
addons: [ | ||
'../dist/preset/index.js', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
], | ||
}; | ||
export default config; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You say this works in storybook?
I would expect this to be broken, but honestly I've not yet tried, so maybe I'm wrong.
What i know of the preset-loading mechanism in storybook is what when an addon-entry is added, storybook will try resolving
${name}/preset
(with node).It will do the same for
manager
andpreview
FYI.Maybe with
type: module
these exports fields are actually respected/used?If so that's great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah,
type: "module"
is the key there as far as I understand it, which is mostly from sindresorhus's explanation...But yes, working in Node 16+ with Storybook 7.1+ in the repo.