Skip to content
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

Build: Bundle addons/storysource with ts-up #19482

Merged
merged 7 commits into from
Oct 17, 2022

Conversation

bryanjtc
Copy link
Member

@bryanjtc bryanjtc commented Oct 14, 2022

Related: #18732

What I did

Followed the instructions in the above issue

How to test

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@IanVS IanVS added the build Internal-facing build tooling & test updates label Oct 14, 2022
@IanVS IanVS changed the title chore: Migrated addons/storysource to tsup Build: Bundle addons/storysource with ts-up Oct 14, 2022
@bryanjtc
Copy link
Member Author

bryanjtc commented Oct 14, 2022

Should I include preset.js in the exports field and in the bundle?

@IanVS
Copy link
Member

IanVS commented Oct 14, 2022

I'm not sure, to be honest. Here was a previous attempt at this conversion, FWIW: #19284

I think @ndelangen can provide better guidance here.

@bryanjtc
Copy link
Member Author

bryanjtc commented Oct 14, 2022

It seems javascript files are not allowed by the typescript config of the bundle script. I will convert the preset.js file to ts.

@bryanjtc
Copy link
Member Author

bryanjtc commented Oct 15, 2022

@IanVS Converting preset.js to typescript and including that file in the bundle seems to have worked. CI is green. 🎉

@ndelangen ndelangen merged commit 3390717 into storybookjs:next Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants