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.
related #1079
related #2183
related #2237
related #2401
The pull request resolving the issue introduced a few problems. The first one appeared when running openapi-ts locally using
pnpm --filter @hey-api/openapi-ts dev:Error parsing: /hey-api/openapi-ts/packages/openapi-ts/dist/chunk-JBFAKSWW.js:2026:9 dist/chunk-JBFAKSWW.js (2026:9): Identifier "createRequire" has already been declaredThe second one happened after trying to execute the built package using
./packages/openapi-ts/bin/index.cjs -f ./packages/openapi-ts-tests/main/test/openapi-ts.config.ts:🛑 @hey-api/openapi-ts encountered an error. ❗️ Error: Dynamic require of "child_process" is not supportedI am partially reverting related #2401 here, let's see if that makes everyone happy!