From 030171181bcbf58aaccac0afc32468f9fd0db3e4 Mon Sep 17 00:00:00 2001 From: RanolP Date: Tue, 7 Sep 2021 21:37:29 +0900 Subject: [PATCH] OK --- .github/workflows/deployment.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yaml b/.github/workflows/deployment.yaml index 9867d6b..6e14e80 100644 --- a/.github/workflows/deployment.yaml +++ b/.github/workflows/deployment.yaml @@ -31,9 +31,10 @@ jobs: - name: Tricky TSC ESM run: | for file in `find src -type f`; do - sed -ri "s/from '([^']+)\/apis'/from '\1\/apis\/index'/" $file - sed -ri "s/from '([^']+)\/models'/from '\1\/models\/index'/" $file + sed -ri "s/from '([^']+)\/apis'/from '\1\/apis\/index.js'/" $file + sed -ri "s/from '([^']+)\/models'/from '\1\/models\/index.js'/" $file sed -ri "s/from '([^']+)'/from '\1.js'/" $file + sed -ri "s/from '([^']+\.js)\.js'/from '\1'/" $file done - name: Build run: npm run build