From c487e4dbac33d98f19c79db18c04b4c824345bed Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Thu, 29 Dec 2022 14:38:00 +0100 Subject: [PATCH] clean up path imports --- website/jsconfig.json | 8 -------- website/src/pages/create/summarize_story.tsx | 2 +- website/src/pages/create/user_reply.tsx | 2 +- website/src/pages/evaluate/rank_initial_prompts.tsx | 2 +- website/src/pages/evaluate/rate_summary.tsx | 2 +- website/tsconfig.json | 5 +---- 6 files changed, 5 insertions(+), 16 deletions(-) delete mode 100644 website/jsconfig.json diff --git a/website/jsconfig.json b/website/jsconfig.json deleted file mode 100644 index 2c8ee2bb..00000000 --- a/website/jsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "paths": { - "@/*": ["src/*"] - } - } -} diff --git a/website/src/pages/create/summarize_story.tsx b/website/src/pages/create/summarize_story.tsx index 208f9285..26900c4d 100644 --- a/website/src/pages/create/summarize_story.tsx +++ b/website/src/pages/create/summarize_story.tsx @@ -9,7 +9,7 @@ import poster from "src/lib/poster"; import { TwoColumns } from "src/components/TwoColumns"; import { Button } from "src/components/Button"; -import { LoadingScreen } from "@/components/Loading/LoadingScreen"; +import { LoadingScreen } from "src/components/Loading/LoadingScreen"; const SummarizeStory = () => { // Use an array of tasks that record the sequence of steps until a task is diff --git a/website/src/pages/create/user_reply.tsx b/website/src/pages/create/user_reply.tsx index 18427c71..40bdb5c5 100644 --- a/website/src/pages/create/user_reply.tsx +++ b/website/src/pages/create/user_reply.tsx @@ -8,7 +8,7 @@ import poster from "src/lib/poster"; import { Messages } from "src/components/Messages"; import { TwoColumns } from "src/components/TwoColumns"; import { Button } from "src/components/Button"; -import { LoadingScreen } from "@/components/Loading/LoadingScreen"; +import { LoadingScreen } from "src/components/Loading/LoadingScreen"; const UserReply = () => { const [tasks, setTasks] = useState([]); diff --git a/website/src/pages/evaluate/rank_initial_prompts.tsx b/website/src/pages/evaluate/rank_initial_prompts.tsx index 49e1bd69..d0522b15 100644 --- a/website/src/pages/evaluate/rank_initial_prompts.tsx +++ b/website/src/pages/evaluate/rank_initial_prompts.tsx @@ -9,7 +9,7 @@ import fetcher from "src/lib/fetcher"; import poster from "src/lib/poster"; import { Button } from "src/components/Button"; -import { LoadingScreen } from "@/components/Loading/LoadingScreen"; +import { LoadingScreen } from "src/components/Loading/LoadingScreen"; const RankInitialPrompts = () => { const [tasks, setTasks] = useState([]); diff --git a/website/src/pages/evaluate/rate_summary.tsx b/website/src/pages/evaluate/rate_summary.tsx index 6ff74c37..cc529324 100644 --- a/website/src/pages/evaluate/rate_summary.tsx +++ b/website/src/pages/evaluate/rate_summary.tsx @@ -11,7 +11,7 @@ import poster from "src/lib/poster"; import { TwoColumns } from "src/components/TwoColumns"; import { Button } from "src/components/Button"; -import { LoadingScreen } from "@/components/Loading/LoadingScreen"; +import { LoadingScreen } from "src/components/Loading/LoadingScreen"; const RateSummary = () => { // Use an array of tasks that record the sequence of steps until a task is diff --git a/website/tsconfig.json b/website/tsconfig.json index 8a5ec4fe..4f09afda 100644 --- a/website/tsconfig.json +++ b/website/tsconfig.json @@ -14,10 +14,7 @@ "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "baseUrl": ".", - "paths": { - "@/*": ["src/*"] - } + "baseUrl": "." }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules"]