Skip to content

Commit 69c4b32

Browse files
authored
Merge pull request #76 from Resgrid/develop
CU-868cu9311 Working on fixing build resolvers
2 parents 415da9a + d864586 commit 69c4b32

File tree

7 files changed

+147
-128
lines changed

7 files changed

+147
-128
lines changed

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-engines pnpm

babel.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ module.exports = function (api) {
1616
'@tailwind.config': './tailwind.config.js',
1717
'@assets': './assets',
1818
},
19+
extensions: [
20+
'.ios.ts',
21+
'.android.ts',
22+
'.ts',
23+
'.ios.tsx',
24+
'.android.tsx',
25+
'.tsx',
26+
'.jsx',
27+
'.js',
28+
'.json',
29+
],
1930
},
2031
],
2132
'react-native-reanimated/plugin',

metro.config.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,22 @@
22

33
const { getSentryExpoConfig } = require('@sentry/react-native/metro');
44
//const { getDefaultConfig } = require('expo/metro-config');
5-
const path = require('path');
5+
//const path = require('path');
66
const { withNativeWind } = require('nativewind/metro');
77

8-
const projectRoot = __dirname;
9-
//const config = getDefaultConfig(projectRoot, {
10-
// isCSSEnabled: true,
11-
//});
12-
138
const config = getSentryExpoConfig(__dirname, {
149
isCSSEnabled: true,
1510
});
1611

1712
// 1. Watch all files within the monorepo
1813
// 2. Let Metro know where to resolve packages and in what order
19-
config.resolver.nodeModulesPaths = [path.resolve(projectRoot, 'node_modules')];
14+
//config.resolver.nodeModulesPaths = [path.resolve(__dirname, 'node_modules')];
2015

2116
// Configure path aliases
22-
config.resolver.extraNodeModules = {
23-
'@': path.resolve(__dirname, 'src'),
24-
'@env': path.resolve(__dirname, 'src/lib/env.js'),
25-
'@assets': path.resolve(__dirname, 'assets'),
26-
};
17+
//config.resolver.extraNodeModules = {
18+
// '@': path.resolve(__dirname, 'src'),
19+
// '@env': path.resolve(__dirname, 'src/lib/env.js'),
20+
// '@assets': path.resolve(__dirname, 'assets'),
21+
//};
2722

2823
module.exports = withNativeWind(config, { input: './global.css', inlineRem: 16 });

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"@tanstack/react-query": "~5.52.1",
8787
"app-icon-badge": "~0.1.2",
8888
"axios": "~1.7.5",
89+
"babel-plugin-module-resolver": "^5.0.2",
8990
"buffer": "~6.0.3",
9091
"expo": "~52.0.46",
9192
"expo-asset": "~11.0.5",
@@ -161,7 +162,6 @@
161162
"@typescript-eslint/eslint-plugin": "~5.62.0",
162163
"@typescript-eslint/parser": "~5.62.0",
163164
"babel-jest": "~30.0.0",
164-
"babel-plugin-module-resolver": "^5.0.2",
165165
"cross-env": "~7.0.3",
166166
"dotenv": "~16.4.5",
167167
"eslint": "~8.57.0",

src/app/login/login-form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type LoginFormProps = {
3737
error?: string;
3838
};
3939

40-
export const LoginForm = ({ onSubmit = () => {}, isLoading = false, error = undefined }: LoginFormProps) => {
40+
export const LoginForm = ({ onSubmit = () => { }, isLoading = false, error = undefined }: LoginFormProps) => {
4141
const { colorScheme } = useColorScheme();
4242
const { t } = useTranslation();
4343
const {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"paths": {
1818
"@/*": ["./src/*"],
1919
"@env": ["./src/lib/env.js"],
20-
"@/assets/*": ["./assets/*"],
20+
"@assets/*": ["./assets/*"],
2121
"tailwind.config": ["./tailwind.config.js"]
2222
},
2323
"esModuleInterop": true,

yarn.lock

Lines changed: 125 additions & 113 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)