-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: path resolution (#294)
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# TODO: This assumes nibiru is a relative path in the current working directory, but this doesn't work locally | ||
cd nibiru | ||
git checkout releases/v0.21.x | ||
cd .. | ||
yarn gql-generate | ||
yarn proto-gen | ||
yarn build:tsc | ||
yarn docgen | ||
|
||
echo "Fix path resolution" | ||
dist_folder="./dist" | ||
# Go through all ts and js files in the dist folder | ||
find "$dist_folder" -type f \( -name "*.ts" -o -name "*.js" \) -exec sed -i 's|require("@/|require("src/|g' {} + | ||
|
||
|
||
# yarn docgen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6c76223
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.