Skip to content

Fix /types regeneration when using npm run watch #66

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

Closed
tniezg opened this issue Mar 22, 2019 · 1 comment
Closed

Fix /types regeneration when using npm run watch #66

tniezg opened this issue Mar 22, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@tniezg
Copy link
Contributor

tniezg commented Mar 22, 2019

Context

Related to #63. After initial bundle, every .ts file with just TS interfaces gets ignored. Since we started clearing /types before bundle regens, these files end up missing when developing the SDK and cause errors.

Expected Behavior

  • Force Webpack to regen all .d.ts files, including those with just interfaces.

Possible Fixes

A. add generic import <...>.ts everywhere an interface file is loaded (maaaany places)
B. somehow fix how Webpack regens /types, but difficult due to issues reported in #63

Your Environment

-

@tniezg tniezg assigned tniezg and unassigned tniezg Mar 22, 2019
@tniezg tniezg added the bug Something isn't working label Apr 11, 2019
@oleksify oleksify self-assigned this Apr 30, 2019
@tniezg tniezg changed the title Fix /types regeneration when using yarn watch Fix /types regeneration when using npm watch Mar 27, 2021
@tniezg tniezg changed the title Fix /types regeneration when using npm watch Fix /types regeneration when using npm run watch Mar 27, 2021
@tniezg
Copy link
Contributor Author

tniezg commented Apr 7, 2021

Solved by https://www.staging-typescript.org/tsconfig#importsNotUsedAsValues (and updates to ts-loader 💪 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants