diff --git a/babel.config.js b/babel.config.js index 5bff64bf..a9ea82f9 100644 --- a/babel.config.js +++ b/babel.config.js @@ -8,7 +8,23 @@ module.exports = { cwd: 'babelrc', extensions: ['.ts', '.tsx', '.js', '.ios.js', '.android.js'], alias: { - '@cuteapp': './app', + '@components': './src/components', + '@hooks': './src/hooks', + '@actions': './src/action', + '@reducers': './src/reducer', + '@constants': './src/constants', + '@screens': './src/screens', + '@services': './src/services', + '@types': './src/types', + '@common': './src/common', + '@assets': './src/assets', + '@store': './src/store/store', + '@utils': './src/utlis', + '@rn-ui-lib/components': './RN-UI-LIB/src/components', + '@rn-ui-lib/icons': './RN-UI-LIB/src/Icons', + '@rn-ui-lib/styles': './RN-UI-LIB/src/styles/index', + '@rn-ui-lib/colors': './RN-UI-LIB/src/styles/colors', + '@rn-ui-lib/utils': './RN-UI-LIB/src/utlis', }, }, ], diff --git a/tsconfig.json b/tsconfig.json index bc394ebd..82cea311 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,9 +5,33 @@ /* Visit https://aka.ms/tsconfig.json to read more about this file */ "emitDecoratorMetadata": true, "experimentalDecorators": true, - "lib": ["dom","es5","es2020"], - + "lib": [ + "dom", + "es5", + "es2020" + ], /* Completeness */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ + "baseUrl": ".", + "paths": { + "@components/*": ["src/components/*"], + "@hooks": ["src/hooks/index"], + "@hooks/*": ["src/hooks/*"], + "@actions/*": ["src/action/*"], + "@reducers/*": ["src/reducer/*"], + "@constants/*": ["src/constants/*"], + "@screens/*": ["src/screens/*"], + "@services/*": ["src/services/*"], + "@types/*": ["src/types/*"], + "@common/*": ["src/common/*"], + "@assets/*": ["src/assets/*"], + "@store": ["src/store/store"], + "@utils/*": ["src/utlis/*"], + "@rn-ui-lib/components/*": ["RN-UI-LIB/src/components/*"], + "@rn-ui-lib/icons/*": ["RN-UI-LIB/src/Icons/*"], + "@rn-ui-lib/styles": ["RN-UI-LIB/src/styles/index"], + "@rn-ui-lib/colors": ["RN-UI-LIB/src/styles/colors"], + "@rn-ui-lib/utils/*": ["RN-UI-LIB/src/utlis/*"], + } }, }