Skip to content

Commit

Permalink
Enable sourcemap generation (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos authored Nov 21, 2022
1 parent 6418ae0 commit dd9af3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-published-releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +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~" {} +
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
- name: Publish pre-release to NPM
if: ${{ github.event.release.prerelease }}
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": true,
},
"exclude": [
"test/**/*.ts"
]
Expand Down

0 comments on commit dd9af3d

Please sign in to comment.