diff --git a/src/pages/index.astro b/src/pages/index.astro index cdb38dc..39b4269 100755 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,10 +3,10 @@ import Base from "@/layouts/Base.astro"; import { markdownify } from "@/lib/utils/textConverter"; import CallToAction from "@/partials/CallToAction.astro"; import Testimonial from "@/partials/Testimonial.astro"; +import type { Button, Feature } from "@/types"; import { Image } from "@astrojs/image/components"; import { getEntryBySlug } from "astro:content"; import { FaCheck } from "react-icons/fa/index.js"; -import type { Button, Feature } from "types"; interface Homepage { banner: { diff --git a/types/index.d.ts b/src/types/index.d.ts similarity index 100% rename from types/index.d.ts rename to src/types/index.d.ts diff --git a/tsconfig.json b/tsconfig.json index bed3a4e..6f95bb7 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,21 +1,25 @@ { "extends": "astro/tsconfigs/strict", "compilerOptions": { - "jsx": "react", "baseUrl": ".", + "target": "es6", + "allowJs": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "noEmit": true, + "jsx": "react", "resolveJsonModule": true, + "isolatedModules": true, + "incremental": true, "allowSyntheticDefaultImports": true, "paths": { - "@/function-components/*": ["./src/layouts/function-components/*"], "@/components/*": ["./src/layouts/components/*"], "@/shortcodes/*": ["./src/layouts/shortcodes/*"], "@/partials/*": ["./src/layouts/partials/*"], - "@/layouts/*": ["./src/layouts/*"], - "@/content/*": ["./src/content/*"], - "@/config/*": ["./src/config/*"], - "@/styles/*": ["./src/styles/*"], - "@/hooks/*": ["./src/hooks/*"], - "@/lib/*": ["./src/lib/*"] + "@/*": ["./src/*"], + "react": ["./node_modules/@types/react"] } - } + }, + "include": ["**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] }