diff --git a/scripts/generate.sh b/scripts/generate.sh index 6805d3586b..6cc714b0d9 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -74,8 +74,10 @@ typescript_fetch () { --git-host github.com \ -c ./config/client/typescript-fetch.yml.proc.yml - echo "Adding contrib files to barrel export..." - echo "export * from './contrib';" >> "${dir}/src/index.ts" + 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}" \