Skip to content

[BUG] typescript-rxjs generated code contains a .gitignore which is picked up by npm publish #22113

@leandrolerena

Description

@leandrolerena

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions