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

fix: bring back #1117 without breaking everything #1120

Merged
merged 7 commits into from
Dec 11, 2024

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Dec 11, 2024

🧰 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:

npm ci
npm run build:gha
node dist-gha/run.cjs

this PR reverts #1119 (which in turn brings back #1117) with a slight tweak in f9461b4 to do the following:

  • make our import paths friendlier to github actions
  • manually copy over the package.json to our dist/ directory whenever we run npm 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.

@kanadgupta kanadgupta marked this pull request as ready for review December 11, 2024 01:16
@kanadgupta kanadgupta added the bug Something isn't working label Dec 11, 2024
@kanadgupta kanadgupta merged commit d5d74c5 into next Dec 11, 2024
11 checks passed
@kanadgupta kanadgupta deleted the kanad-2024-12-10/postmortem branch December 11, 2024 01:18
kanadgupta pushed a commit that referenced this pull request Dec 11, 2024
## [9.0.4-next.1](v9.0.3...v9.0.4-next.1) (2024-12-11)

### Bug Fixes

* bring back [#1117](#1117) without breaking everything ([#1120](#1120)) ([d5d74c5](d5d74c5))

[skip ci]
kanadgupta pushed a commit that referenced this pull request Dec 12, 2024
## [9.0.4](v9.0.3...v9.0.4) (2024-12-12)

### Bug Fixes

* bring back [#1117](#1117) without breaking everything ([#1120](#1120)) ([d5d74c5](d5d74c5))
* **ci:** semantic-release workflow for v9 releases ([#1082](#1082)) ([410daa7](410daa7))
* copy package.json file instead of symlinking ([1d56c21](1d56c21))
* openapi arg doc enhancements, refactors ([#1122](#1122)) ([b83b233](b83b233))

[skip ci]
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

Successfully merging this pull request may close these issues.

1 participant