Skip to content

Conversation

@jeronimoalbi
Copy link
Member

Fixes #2829

With the latest changes it is possible to only define a config path for
the Vuex generation leaving the TS client path empty. This changeset
makes sure that in that case there is a default value for it.
@jeronimoalbi jeronimoalbi changed the title fix: change TS client generation to use a default config generating vuex fix: change vuex generation to use a default TS client path Sep 14, 2022
jeronimoalbi added 6 commits September 19, 2022 11:14
This change keeps the semantics of the `Generate` function targets and
allows overriding the configured or default output path when generating
the typescript client.
The TS client folder can be a name in which case it should be considered
a relative path, which is the case for the default directory name
"ts-client".
@ilgooz ilgooz requested a review from clockworkgr September 22, 2022 12:00
@ilgooz ilgooz merged commit 9ec59a8 into develop Sep 22, 2022
@ilgooz ilgooz deleted the fix/missing-typescript-path-config branch September 22, 2022 12:00
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
)

* fix: change TS client generation to use a default config generating vuex

With the latest changes it is possible to only define a config path for
the Vuex generation leaving the TS client path empty. This changeset
makes sure that in that case there is a default value for it.

* chore: update changelog

* chore: check that package.json exists before trying to update it

* chore: clean the configured TS client path

* refactor: add output path support ts-client generation cmd

* refactor: change `GenerateTSClient` to accept the output path

This change keeps the semantics of the `Generate` function targets and
allows overriding the configured or default output path when generating
the typescript client.

* fix: change vuex dependency update to handle non absolute paths

The TS client folder can be a name in which case it should be considered
a relative path, which is the case for the default directory name
"ts-client".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

report type:error Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scaffolding no longer works because of a TypeScript code gen bug

5 participants