Skip to content

Allow running any commit through npx #1457

Closed
@jmorel

Description

@jmorel

It is currently possible to use this library without having to manually checkout the repository thanks to npx:

npx openapi-typescript-codegen --input openapi.yaml --output client/ 

With npx, I can target the latest release, any previous release or even any commit. For example, it is acceptable to do:

npx https://github.com/ferdikoomen/openapi-typescript-codegen/tree/c8cf2ec2547653a8fc6901983d6b42d12a65c4a9 --input openapi.yaml --output client/ 

Unfortunately, this will fail because the command needs the dist files to run, and these files are not committed. They are included in the releases though, which is why npx can be used for them.

By committing the dist files to the repository, we would be able to run any commit without having to wait for a full release. For example, this allows the use of yet-to-be-released features such as the --postfixModel immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions