Skip to content

Commit

Permalink
add src path to tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrobskyhuntley committed Feb 28, 2024
1 parent 6f08475 commit 2a46f1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
}[];
}
import data from "../config.json";
import data from "@src/config.json";
const { navItems } = Astro.props;
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ContentLayout from '@layouts/ContentLayout.astro'
import People from '@components/People.astro'
import Organization from '@components/Organization.astro'
import data from "../config.json";
import data from "@src/config.json";
---
<ContentLayout name={data.name}>
<div class="columns">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import BaseLayout from '@layouts/BaseLayout.astro';
import Hero from '@components/Hero.astro';
import Globe from '@components/Globe.astro';
import data from "../config.json";
import data from "@src/config.json";
---
<BaseLayout name={data.name}>
<Hero title={data.name}, subtitle={data.subtitle}/>
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"baseUrl": ".",
"paths": {
"@components/*": ["src/components/*"],
"@layouts/*": ["src/layouts/*"]
"@layouts/*": ["src/layouts/*"],
"@src/*": ["src/*"]
}
}
}

0 comments on commit 2a46f1c

Please sign in to comment.