fix: bring back #1117 without breaking everything #1120
Merged
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.
🧰 Changes
we hit a bit of a wild edge case where the github action was only breaking in production builds due to how oclif loads the
package.json
and the only way we caught it was with this failure.it's fairly easy to reproduce: check out
v9.0.2
and run the following commands:this PR reverts #1119 (which in turn brings back #1117) with a slight tweak in f9461b4 to do the following:
package.json
to ourdist/
directory whenever we runnpm run build
. TS was automatically handling this when we were using JSON imports before but now it's not able to pick up on the import so we have to copy it over ourselves.additionally in 669cb4f, i added a little check so we can catch these sorts of things better going forward.
🧬 QA & Testing
Provide as much information as you can on how to test what you've done.