Skip to content

Commit 68c4312

Browse files
committed
chore: stop using TypeScript path aliases
1 parent 3d94928 commit 68c4312

File tree

9 files changed

+12
-20
lines changed

9 files changed

+12
-20
lines changed

apps/developer-hub/src/app/(docs)/[section]/[...slug]/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
export { DocumentationPage as default } from "@/src/components/Pages/DocumentationPage";
2-
3-
import { source } from "@/src/source";
1+
export { DocumentationPage as default } from "../../../../components/Pages/DocumentationPage";
42
import type { Metadata } from "next";
53
import { notFound } from "next/navigation";
4+
import { source } from "../../../../source";
65

76
export async function generateStaticParams() {
87
return source.generateParams();

apps/developer-hub/src/app/(docs)/[section]/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
export { LandingPage as default } from "@/src/components/Pages/LandingPage";
2-
3-
import { source } from "@/src/source";
1+
export { LandingPage as default } from "../../../components/Pages/LandingPage";
42
import type { Metadata } from "next";
53
import { notFound } from "next/navigation";
4+
import { source } from "../../../source";
65

76
export async function generateStaticParams() {
87
return source.generateParams();

apps/developer-hub/src/app/(docs)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { docsOptions } from "@/src/config/layout.config";
21
import { DocsLayout } from "fumadocs-ui/layouts/docs";
32
import type { ReactNode } from "react";
3+
import { docsOptions } from "../../config/layout.config";
44

55
export default function Layout({ children }: { children: ReactNode }) {
66
return <DocsLayout {...docsOptions}>{children}</DocsLayout>;

apps/developer-hub/src/app/(homepage)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { baseOptions } from "@/src/config/layout.config";
21
import { HomeLayout } from "fumadocs-ui/layouts/home";
32
import type { ReactNode } from "react";
3+
import { baseOptions } from "../../config/layout.config";
44

55
export default function Layout({ children }: { children: ReactNode }) {
66
return <HomeLayout {...baseOptions}>{children}</HomeLayout>;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { Homepage as default } from "@/src/components/Pages/Homepage";
1+
export { Homepage as default } from "../../components/Pages/Homepage";

apps/developer-hub/src/components/Pages/BasePage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { getMDXComponents } from "@/src/mdx-components";
2-
import { source } from "@/src/source";
31
import {
42
DocsBody,
53
DocsDescription,
64
DocsPage,
75
DocsTitle,
86
} from "fumadocs-ui/page";
97
import { notFound } from "next/navigation";
8+
import { getMDXComponents } from "../../../mdx-components";
9+
import { source } from "../../../source";
1010

1111
export function BasePage(props: { params: { slug: string[] } }) {
1212
const page = source.getPage(props.params.slug);

apps/developer-hub/src/config/layout.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { source } from "@/src/source";
21
import type { DocsLayoutProps } from "fumadocs-ui/layouts/docs";
32
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
3+
import { source } from "../source";
44

55
export const baseOptions: BaseLayoutProps = {
66
nav: {

apps/developer-hub/src/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { docs } from "@/.source";
21
import {
32
CardsThree,
43
ChartLine,
@@ -10,6 +9,7 @@ import {
109
import type { InferMetaType, InferPageType } from "fumadocs-core/source";
1110
import { loader } from "fumadocs-core/source";
1211
import { createElement } from "react";
12+
import { docs } from "../.source";
1313

1414
const icons: Record<string, React.ComponentType> = {
1515
CardsThree,

apps/developer-hub/tsconfig.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
22
"extends": "@cprussin/tsconfig/nextjs.json",
33
"include": ["svg.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
4-
"exclude": ["node_modules"],
5-
"compilerOptions": {
6-
"baseUrl": ".",
7-
"paths": {
8-
"@/*": ["./*"]
9-
}
10-
}
4+
"exclude": ["node_modules"]
115
}

0 commit comments

Comments
 (0)