Skip to content

Fix template path handling and make output parameter required #1113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

smorimoto
Copy link
Collaborator

@smorimoto smorimoto commented Mar 24, 2025

Closes #853
Closes #935

@Copilot Copilot AI review requested due to automatic review settings March 24, 2025 10:06
Copy link

changeset-bot bot commented Mar 24, 2025

🦋 Changeset detected

Latest commit: 28d43b4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Patch

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

@smorimoto smorimoto added the bug Something isn't working label Mar 24, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the template path handling by replacing a hardcoded directory with the process working directory and makes the output parameter for the generate templates command required.

  • Update changelog files to document the patch changes
  • Mark the output parameter as required in the command configuration
  • Replace a hardcoded root path with process.cwd() in the template generation process

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.changeset/chubby-bats-brake.md Documenting the change to use process.cwd() for rootDir
.changeset/silver-shirts-visit.md Documenting making the output path required in generateTemplatesCommand
index.ts Adding a required flag for the output parameter in the command configuration
src/commands/generate-templates/templates-gen-process.ts Changing rootDir from a hardcoded path to process.cwd()

@smorimoto smorimoto merged commit 41d6b2e into main Mar 24, 2025
4 checks passed
@smorimoto smorimoto deleted the fix-gen-template branch March 24, 2025 10:16
@github-actions github-actions bot mentioned this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Claims to be using a template, but actually - not command generate-templates is not working
1 participant