Skip to content

Commit

Permalink
Use tsconfig paths
Browse files Browse the repository at this point in the history
  • Loading branch information
morr0ne committed Feb 12, 2025
1 parent 82685db commit 84a17de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import './src/styles/global.css';
import Credits from '../components/Credits.astro';
import '@/styles/global.css';
import Credits from '@/components/Credits.astro';
---

<html lang="en">
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}

0 comments on commit 84a17de

Please sign in to comment.