feat(cli): add --compile flag to generate fromTemplate command#1979
feat(cli): add --compile flag to generate fromTemplate command#1979abhi-03-kh wants to merge 5 commits intoasyncapi:masterfrom
Conversation
🦋 Changeset detectedLatest commit: 22e0b58 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
|
/u |
|
Hi @AayushSaini101, I assume /u was meant to trigger a bot update? It seems it didn't pick it up, so I can merge the latest master manually to ensure the branch is up to date. Let me know if you'd like me to proceed with that! |
|
i don't think so as of now we require the changeset cc: @Shurtu-gal |
@AayushSaini101 , Should I remove the changeset, or is there a specific format issue with the one in commit fffc7e9? Happy to adjust as needed. |
|



Description
This PR enables the
--compileflag for thegenerate fromTemplatecommand, allowing users to opt-out of template compilation (e.g.,--no-compile).Fixes #1829
Changes
compileboolean flag tosharedFlags.ts(default:true).compileoption toBaseGeneratorCommand.tsoptions builder.fromTemplate.test.tsto verify the--no-compileflag is accepted without errors.Verification
npm test -- test/commands/generate/fromTemplate.test.ts