Skip to content

Commit

Permalink
fix: fix openapi-fetch-runtime package import
Browse files Browse the repository at this point in the history
  • Loading branch information
junjie-w committed Dec 25, 2024
1 parent b0698b6 commit ceb8465
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,16 @@ jobs:
jq '.dependencies["@api-client-sdk-streamline-sample/openapi-fetch-runtime"] = "^1.0.0"' \
package.json > tmp.json && mv tmp.json package.json

find ./src -type f -exec sed -i "s|from '../runtime';|from '@api-client-sdk-streamline-sample/openapi-fetch-runtime';|g" {} +


find ./src/apis -type f -exec sed -i "s|from '../runtime';|from '@api-client-sdk-streamline-sample/openapi-fetch-runtime';|g" {} +
find ./src/models -type f -exec sed -i "s|from '../runtime';|from '@api-client-sdk-streamline-sample/openapi-fetch-runtime';|g" {} +

sed -i "/export \* from '\.\/runtime';/d" ./src/index.ts

echo "🗑️ Removing generated runtime..."
rm -rf ./src/runtime.ts

echo "📂 Final project structure:"
echo "📂 Final project structure after cleanup:"
ls -R

- name: Display package info
Expand Down

0 comments on commit ceb8465

Please sign in to comment.