You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
Is there an easy way to combine the collected types from typewiz-webpack and multiple typewiz-node runs?
I think there are two specific questions here:
When I go from page to page, typewiz-webpack regenerates a new collected-types.json (it's cleared on page load). Can I combine multiple?
typewiz-node immediately applies types to the codebase on termination. Is there any way to instead get a collected-types.json, in the same fashion as typewiz-webpack?
Even if you had a simple snippet or some such for combining these, that would be fantastic. I tried simply concatenating the .json files, and that did not go over well. :) Thanks!
(My use case: I'm interested in types from many typewiz-webpack outputs over frontend code, typewiz-node outputs over server code, and typewiz-node outputs over jest executions.)
The text was updated successfully, but these errors were encountered:
There is currently no way to combine multiple types. I can look into that, perhaps this would be easy with a little refactoring of the collected type format (and can also address #36)
Regarding running typewiz-node without applying the types immediately, it is possible with a small wrapper script, I made a small example repo for you:
Is there an easy way to combine the collected types from typewiz-webpack and multiple typewiz-node runs?
I think there are two specific questions here:
When I go from page to page, typewiz-webpack regenerates a new collected-types.json (it's cleared on page load). Can I combine multiple?
typewiz-node immediately applies types to the codebase on termination. Is there any way to instead get a collected-types.json, in the same fashion as typewiz-webpack?
Even if you had a simple snippet or some such for combining these, that would be fantastic. I tried simply concatenating the .json files, and that did not go over well. :) Thanks!
(My use case: I'm interested in types from many typewiz-webpack outputs over frontend code, typewiz-node outputs over server code, and typewiz-node outputs over jest executions.)
The text was updated successfully, but these errors were encountered: