diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 51f0416..9867d6b 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -31,9 +31,9 @@ jobs: - name: Tricky TSC ESM run: | for file in `find src -type f`; do - sed -ri "s/from '([^']+)\/api'/from '\1\/api\/index.js'/" $file - sed -ri "s/from '([^']+)\/models'/from '\1\/models\/index.js'/" $file - sed -ri "s/from '([^']+(\?\!\.js))'/from '\1.js'/" $file + sed -ri "s/from '([^']+)\/apis'/from '\1\/apis\/index'/" $file + sed -ri "s/from '([^']+)\/models'/from '\1\/models\/index'/" $file + sed -ri "s/from '([^']+)'/from '\1.js'/" $file done - name: Build run: npm run build