-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The generated code from typescript-txjs contains a .gitgnore with the entry "dist". When publishing using npm publish, the compiled code will be ignored, resulting in a corrupt package.
openapi-generator version
7.16
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
cd dist/xxx-rxjs-client && npm install && npm run build && npm publish --dry-run
then observe the .gitignore
Related issues/PRs
Suggest a fix
Either provide a .npmignore or remove dist from .gitignore
My quick fix:
cd dist/xxx-rxjs-client && printf "\n!/dist/\n" >> .gitignore && npm install && npm run build && npm publish --dry-run