From d91a64141dfdb7eb2dcf7eb1950ff8a5e9cc616b Mon Sep 17 00:00:00 2001 From: Marcos Passos Date: Mon, 21 Nov 2022 13:19:06 -0400 Subject: [PATCH] Fix source map packaging (#289) --- .github/workflows/deploy-published-releases.yaml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-published-releases.yaml b/.github/workflows/deploy-published-releases.yaml index bd9c4e3a..63617d10 100644 --- a/.github/workflows/deploy-published-releases.yaml +++ b/.github/workflows/deploy-published-releases.yaml @@ -43,7 +43,7 @@ jobs: run: |- cp package.json LICENSE README.md build/ cd build - find . -type f -path '*/*\.js.map' -exec sed -i -e "s~../src~.src~" {} + + find . -type f -path '*/*\.js.map' -exec sed -i -e "s~../src~src~" {} + sed -i -e "s~\"version\": \"0.0.0-dev\"~\"version\": \"${GITHUB_REF##*/}\"~" package.json sed -i -e "s~<@version@>~${GITHUB_REF##*/}~" constants.* sed -i -e "s~<@cidAssignerEndpointUrl@>~${CID_ASSIGNER_ENDPOINT}~" constants.* @@ -51,7 +51,7 @@ jobs: sed -i -e "s~<@evaluationEndpointUrl@>~${EVALUATION_ENDPOINT}~" constants.* sed -i -e "s~<@contentEndpointUrl@>~${CONTENT_ENDPOINT}~" constants.* sed -i -e "s~parseInt('<@maxQueryLength@>', 10)~${MAX_QUERY_LENGTH}~" constants.* - cp -r ../src ./.src + cp -r ../src src - name: Publish pre-release to NPM if: ${{ github.event.release.prerelease }} diff --git a/package.json b/package.json index cfc5b8e5..d795143e 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,8 @@ }, "files": [ "**/*.js", - "**/*.ts" + "**/*.ts", + "**/*.map" ], "browserslist": [ "last 1 version"