Skip to content

Commit 7dcf2de

Browse files
committed
fix bundler tests
1 parent 2c61703 commit 7dcf2de

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/metro.config.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const { assetExts, sourceExts } = defaultConfig.resolver;
55

66
const monorepoRoot = path.resolve(__dirname, '../');
77
const commonPath = path.join(__dirname, '/../common');
8+
const sdkAlphaPath = path.join(__dirname, '/../packages/sdk-alpha');
89
const trueMonorepoNodeModules = path.resolve(__dirname, '../node_modules');
910
const extraNodeModules = {
1011
stream: require.resolve('stream-browserify'),
@@ -14,6 +15,7 @@ const extraNodeModules = {
1415
'@babel/runtime': path.join(trueMonorepoNodeModules, '@babel/runtime'),
1516
'@src': path.join(__dirname, 'src'),
1617
'@selfxyz/common': path.resolve(commonPath, 'dist'),
18+
'@selfxyz/sdk-alpha': path.resolve(sdkAlphaPath, 'dist'),
1719
// Main exports
1820
'@selfxyz/common/utils': path.resolve(
1921
commonPath,
@@ -159,6 +161,7 @@ const watchFolders = [
159161
path.resolve(commonPath),
160162
trueMonorepoNodeModules,
161163
path.join(__dirname, 'src'),
164+
path.resolve(sdkAlphaPath),
162165
];
163166

164167
/**

app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"analyze:bundle:android": "node ./scripts/bundle-analyze-ci.cjs android",
8-
"analyze:bundle:ios": "node ./scripts/bundle-analyze-ci.cjs ios",
7+
"analyze:bundle:android": "yarn build:deps && node ./scripts/bundle-analyze-ci.cjs android",
8+
"analyze:bundle:ios": "yarn build:deps && node ./scripts/bundle-analyze-ci.cjs ios",
99
"analyze:tree-shaking": "node ./scripts/analyze-tree-shaking.cjs imports",
1010
"analyze:tree-shaking:web": "yarn web:build && node ./scripts/analyze-tree-shaking.cjs web",
1111
"android": "yarn build:deps && react-native run-android",

0 commit comments

Comments
 (0)