packages,plugins: point types to src/ for development #864
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.
First and most obvious build setup fix coming out of #834
So my initial approach was to do this through publishConfig, docs for that are here. Turns out that their main docs point to the unreleased yarn v2 though, and that feature doesn't exist yet ¯\(ツ)/¯.
Looked though some 10 monrepos you there, mostly from https://github.com/brillout/awesome-react-components. Can't find any repo that has separate types config for published packages, so no prior art for this T_T
I'm thinking that adding pre-/post-pack scripts is the cleanest way to go about this for now. If we switch to yarn 2 me might be able to remove them. Or if we switch to pnpm who's had the feature for ages 😁
The postpack script also doesn't get called right now, bug in yarn, yarnpkg/yarn#7924, so publishing or trying out pack locally leaves some garbage in the packages.