From 9a15e8158d58abfc975e92cf39c022802bc3cef0 Mon Sep 17 00:00:00 2001 From: Aman Chaturvedi Date: Fri, 22 Sep 2023 12:22:19 +0530 Subject: [PATCH] TP-0 | Root alias added --- babel.config.js | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/babel.config.js b/babel.config.js index 4b6206a9..ae7561b4 100644 --- a/babel.config.js +++ b/babel.config.js @@ -8,6 +8,7 @@ module.exports = { cwd: 'babelrc', extensions: ['.ts', '.tsx', '.js', '.ios.js', '.android.js'], alias: { + '@root': './src', '@components': './src/components', '@hooks': './src/hooks', '@actions': './src/action', diff --git a/tsconfig.json b/tsconfig.json index da6b376f..d9248cf8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "skipLibCheck": true, /* Skip type checking all .d.ts files. */ "baseUrl": ".", "paths": { + "@root/*": ["."], "@components/*": ["src/components/*"], "@hooks": ["src/hooks/index"], "@hooks/*": ["src/hooks/*"],