Skip to content

Commit

Permalink
fix: network client generation order (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Jan 2, 2025
1 parent 96ff717 commit 60214d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ typescript_fetch () {

config_file=./config/client/typescript-fetch.yml.proc.yml
if [ $project == "client" ]; then
echo "Adding contrib files"
echo "export * from './contrib';" >> "${dir}/src/index.ts"
config_file=./config/client/typescript-client-fetch.yml.proc.yml
fi

Expand All @@ -82,6 +80,11 @@ typescript_fetch () {
--git-host github.com \
-c ./config/client/typescript-client-fetch.yml.proc.yml

if [ $project == "client" ]; then
echo "Adding contrib files"
echo "export * from './contrib';" >> "${dir}/src/index.ts"
fi

file="${dir}/package.json"
jq -r ".author = "'"'"Ory Corp"'"'" | .license = "'"'"Apache-2.0"'"' "${file}" \
> tmp.$$.json && mv tmp.$$.json "${file}"
Expand Down

0 comments on commit 60214d9

Please sign in to comment.