Configure aliases pages and types in tsconfig and vite (#37)

### TL;DR

Updated paths in `tsconfig.json` and `vite.config.ts`

### What changed?

The paths for `pages` and `types` have been added to both `tsconfig.json` and `vite.config.ts` to support easier importing.

### How to test?

Check if imports using the new paths are working correctly in the code.

### Why make this change?

These changes seem to be for better organization and accessibility of different parts of the code by providing clear and quick paths for `pages` and `types`.
This commit is contained in:
Vivian Phung 2024-05-14 15:18:19 -04:00 committed by GitHub
commit 327ac62186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -27,7 +27,8 @@
"utils/*": ["./src/utils/*"],
"assets/*": ["./src/assets/*"],
"context/*": ["./src/context/*"],
"components/*": ["./src/components/*"]
"components/*": ["./src/components/*"],
"pages/*": ["./src/pages/*"]
}
},
"include": ["src"],

View File

@ -10,6 +10,8 @@ export default defineConfig({
assets: '/src/assets',
context: '/src/context',
components: '/src/components',
pages: '/src/pages',
types: '/src/types',
},
},
define: {