Skip to content

Commit

Permalink
Temp: Debugging Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jsubloom committed Sep 2, 2023
1 parent 45fbc02 commit 8dcc0ed
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/build-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:

build-mobile:
name: ${{ matrix.platform }} binaries
if: ${{ always() }}
needs: build-dependencies
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -122,6 +123,23 @@ jobs:
echo "The file does not exist at assets/web-dist/index.html"
exit 1
- name: Debugging node_modules/bloom-reader-lite-web
run: ls -laR node_modules/bloom-reader-lite-web/node_modules/uuid

#- name: Debugging [web] package
# run: ls -laR ../web/

# It is a symlink, no surprise there.
# - name: Check if symlink
# run: |
# packagePath="node_modules/bloom-reader-lite-web"
# if [ -L "$packagePath" ]; then
# echo "$packagePath is a symlink."
# else
# echo "$packagePath is not a symlink."
# exit 1
# fi

- name: 3) [${{ matrix.platform }}] Setup EAS
uses: expo/expo-github-action@v8
with:
Expand Down
1 change: 1 addition & 0 deletions packages/mobile/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = function (api) {
root: ["."],
alias: {
"@shared": "../shared/dist",
"@web": "../web/dist",
},
},
],
Expand Down
5 changes: 5 additions & 0 deletions packages/mobile/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ config.resolver.assetExts.push(
"bloompub", // For sample books
"htm" // For bloomplayer.htm
);
// https://docs.expo.dev/guides/monorepos/#modify-the-metro-config
config.resolver.nodeModulesPaths.push(
path.resolve("../packages/web", "node_modules")
);
config.resolver.disableHierarchicalLookup = true;

if (!config.watchFolders) {
config.watchFolders = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dependencies": {
"@react-native-async-storage/async-storage": "1.18.2",
"bloom-reader-lite-shared": "link:./../shared",
"bloom-reader-lite-web": "link:./../web",
"bloom-reader-lite-web": "file:./../web",
"expo": "~49.0.5",
"expo-asset": "~8.10.1",
"expo-dev-client": "~2.4.6",
Expand Down

0 comments on commit 8dcc0ed

Please sign in to comment.