Skip to content

Commit

Permalink
Fix source map packaging (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos authored Nov 21, 2022
1 parent dd9af3d commit d91a641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-published-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ 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.*
sed -i -e "s~<@trackerEndpointUrl@>~${TRACKER_ENDPOINT}~" constants.*
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 }}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
},
"files": [
"**/*.js",
"**/*.ts"
"**/*.ts",
"**/*.map"
],
"browserslist": [
"last 1 version"
Expand Down

0 comments on commit d91a641

Please sign in to comment.