From 4a7b5a57db86b42d24b8a07aa9f670dcf0eef5a6 Mon Sep 17 00:00:00 2001 From: David Watson Date: Tue, 1 Aug 2023 17:55:33 +1000 Subject: [PATCH] Moved source code to src directory --- .github/workflows/open-ai-app.yml | 3 +++ .gitignore | 12 ++++++------ README.md | 2 +- .env.example => src/.env.example | 2 +- .eslintrc.json => src/.eslintrc.json | 0 {app => src/app}/api/auth/[...nextauth]/route.ts | 0 {app => src/app}/api/chat/route.ts | 0 {app => src/app}/chat/[id]/loading.tsx | 0 {app => src/app}/chat/[id]/not-found.tsx | 0 {app => src/app}/chat/[id]/page.tsx | 0 {app => src/app}/chat/layout.tsx | 0 {app => src/app}/chat/loading.tsx | 0 {app => src/app}/chat/page.tsx | 0 {app => src/app}/favicon.ico | Bin {app => src/app}/globals.css | 0 {app => src/app}/layout.tsx | 0 {app => src/app}/loading.tsx | 0 {app => src/app}/page.tsx | 0 {app => src/app}/reporting/[chatid]/loading.tsx | 0 {app => src/app}/reporting/[chatid]/page.tsx | 0 {app => src/app}/reporting/layout.tsx | 0 {app => src/app}/reporting/loading.tsx | 0 {app => src/app}/reporting/page.tsx | 0 components.json => src/components.json | 0 {components => src/components}/chat/chat-input.tsx | 0 .../components}/chat/chat-loading.tsx | 0 {components => src/components}/chat/chat-row.tsx | 0 {components => src/components}/chat/code-block.tsx | 0 .../components}/chat/memoized-react-markdown.tsx | 0 .../components}/hooks/use-chat-scroll-anchor.tsx | 0 {components => src/components}/login/login.tsx | 0 {components => src/components}/menu.tsx | 0 {components => src/components}/theme-provider.tsx | 0 {components => src/components}/typography.tsx | 0 {components => src/components}/ui/avatar.tsx | 0 {components => src/components}/ui/button.tsx | 0 {components => src/components}/ui/card.tsx | 0 {components => src/components}/ui/dropdown-menu.tsx | 0 {components => src/components}/ui/input.tsx | 0 {components => src/components}/ui/label.tsx | 0 {components => src/components}/ui/table.tsx | 0 {components => src/components}/ui/tabs.tsx | 0 {components => src/components}/ui/textarea.tsx | 0 {components => src/components}/ui/toast.tsx | 0 {components => src/components}/ui/toaster.tsx | 0 {components => src/components}/ui/use-toast.ts | 0 {features => src/features}/auth/auth-api.ts | 0 {features => src/features}/auth/helpers.ts | 0 {features => src/features}/auth/protected-page.tsx | 0 .../azure-cog-search/azure-cog-vector-store.ts | 0 {features => src/features}/chat/chat-api-data.ts | 0 {features => src/features}/chat/chat-api-helpers.ts | 0 {features => src/features}/chat/chat-api.ts | 0 {features => src/features}/chat/chat-helpers.ts | 0 .../features}/chat/chat-menu/chat-menu.tsx | 0 .../features}/chat/chat-menu/menu-items.tsx | 0 .../features}/chat/chat-menu/new-chat.tsx | 0 {features => src/features}/chat/chat-service.ts | 0 .../features}/chat/chat-thread-service.ts | 0 {features => src/features}/chat/chat-ui.tsx | 0 {features => src/features}/common/cosmos.ts | 0 .../langchain/stores/cosmosdb-chat-service.ts | 0 .../features}/langchain/stores/cosmosdb.ts | 0 .../features}/langchain/stores/utils.ts | 0 {features => src/features}/loading-skeleton.tsx | 0 {features => src/features}/menu/menu.tsx | 0 {features => src/features}/providers.tsx | 0 .../features}/reporting/chat-reporting-ui.tsx | 0 .../features}/reporting/reporting-service.ts | 0 {features => src/features}/reporting/reporting.tsx | 0 {features => src/features}/theme/theme-toggle.tsx | 0 {features => src/features}/user-profile.tsx | 0 {lib => src/lib}/utils.ts | 0 middleware.ts => src/middleware.ts | 0 next.config.js => src/next.config.js | 0 package-lock.json => src/package-lock.json | 0 package.json => src/package.json | 0 postcss.config.js => src/postcss.config.js | 0 {public => src/public}/ai-icon.png | Bin tailwind.config.js => src/tailwind.config.js | 0 tsconfig.json => src/tsconfig.json | 2 +- type.ts => src/type.ts | 0 82 files changed, 12 insertions(+), 9 deletions(-) rename .env.example => src/.env.example (93%) rename .eslintrc.json => src/.eslintrc.json (100%) rename {app => src/app}/api/auth/[...nextauth]/route.ts (100%) rename {app => src/app}/api/chat/route.ts (100%) rename {app => src/app}/chat/[id]/loading.tsx (100%) rename {app => src/app}/chat/[id]/not-found.tsx (100%) rename {app => src/app}/chat/[id]/page.tsx (100%) rename {app => src/app}/chat/layout.tsx (100%) rename {app => src/app}/chat/loading.tsx (100%) rename {app => src/app}/chat/page.tsx (100%) rename {app => src/app}/favicon.ico (100%) rename {app => src/app}/globals.css (100%) rename {app => src/app}/layout.tsx (100%) rename {app => src/app}/loading.tsx (100%) rename {app => src/app}/page.tsx (100%) rename {app => src/app}/reporting/[chatid]/loading.tsx (100%) rename {app => src/app}/reporting/[chatid]/page.tsx (100%) rename {app => src/app}/reporting/layout.tsx (100%) rename {app => src/app}/reporting/loading.tsx (100%) rename {app => src/app}/reporting/page.tsx (100%) rename components.json => src/components.json (100%) rename {components => src/components}/chat/chat-input.tsx (100%) rename {components => src/components}/chat/chat-loading.tsx (100%) rename {components => src/components}/chat/chat-row.tsx (100%) rename {components => src/components}/chat/code-block.tsx (100%) rename {components => src/components}/chat/memoized-react-markdown.tsx (100%) rename {components => src/components}/hooks/use-chat-scroll-anchor.tsx (100%) rename {components => src/components}/login/login.tsx (100%) rename {components => src/components}/menu.tsx (100%) rename {components => src/components}/theme-provider.tsx (100%) rename {components => src/components}/typography.tsx (100%) rename {components => src/components}/ui/avatar.tsx (100%) rename {components => src/components}/ui/button.tsx (100%) rename {components => src/components}/ui/card.tsx (100%) rename {components => src/components}/ui/dropdown-menu.tsx (100%) rename {components => src/components}/ui/input.tsx (100%) rename {components => src/components}/ui/label.tsx (100%) rename {components => src/components}/ui/table.tsx (100%) rename {components => src/components}/ui/tabs.tsx (100%) rename {components => src/components}/ui/textarea.tsx (100%) rename {components => src/components}/ui/toast.tsx (100%) rename {components => src/components}/ui/toaster.tsx (100%) rename {components => src/components}/ui/use-toast.ts (100%) rename {features => src/features}/auth/auth-api.ts (100%) rename {features => src/features}/auth/helpers.ts (100%) rename {features => src/features}/auth/protected-page.tsx (100%) rename {features => src/features}/azure-cog-search/azure-cog-vector-store.ts (100%) rename {features => src/features}/chat/chat-api-data.ts (100%) rename {features => src/features}/chat/chat-api-helpers.ts (100%) rename {features => src/features}/chat/chat-api.ts (100%) rename {features => src/features}/chat/chat-helpers.ts (100%) rename {features => src/features}/chat/chat-menu/chat-menu.tsx (100%) rename {features => src/features}/chat/chat-menu/menu-items.tsx (100%) rename {features => src/features}/chat/chat-menu/new-chat.tsx (100%) rename {features => src/features}/chat/chat-service.ts (100%) rename {features => src/features}/chat/chat-thread-service.ts (100%) rename {features => src/features}/chat/chat-ui.tsx (100%) rename {features => src/features}/common/cosmos.ts (100%) rename {features => src/features}/langchain/stores/cosmosdb-chat-service.ts (100%) rename {features => src/features}/langchain/stores/cosmosdb.ts (100%) rename {features => src/features}/langchain/stores/utils.ts (100%) rename {features => src/features}/loading-skeleton.tsx (100%) rename {features => src/features}/menu/menu.tsx (100%) rename {features => src/features}/providers.tsx (100%) rename {features => src/features}/reporting/chat-reporting-ui.tsx (100%) rename {features => src/features}/reporting/reporting-service.ts (100%) rename {features => src/features}/reporting/reporting.tsx (100%) rename {features => src/features}/theme/theme-toggle.tsx (100%) rename {features => src/features}/user-profile.tsx (100%) rename {lib => src/lib}/utils.ts (100%) rename middleware.ts => src/middleware.ts (100%) rename next.config.js => src/next.config.js (100%) rename package-lock.json => src/package-lock.json (100%) rename package.json => src/package.json (100%) rename postcss.config.js => src/postcss.config.js (100%) rename {public => src/public}/ai-icon.png (100%) rename tailwind.config.js => src/tailwind.config.js (100%) rename tsconfig.json => src/tsconfig.json (87%) rename type.ts => src/type.ts (100%) diff --git a/.github/workflows/open-ai-app.yml b/.github/workflows/open-ai-app.yml index ad52d9bf..79532100 100644 --- a/.github/workflows/open-ai-app.yml +++ b/.github/workflows/open-ai-app.yml @@ -12,6 +12,9 @@ on: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./src steps: - name: 🌱 Checkout to the branch diff --git a/.gitignore b/.gitignore index ef6d861d..464d7083 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,19 @@ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # dependencies -/node_modules -/.pnp +**/node_modules +**/.pnp .pnp.js # testing -/coverage +**/coverage # next.js -/.next/ -/out/ +**/.next/ +**/out/ # production -/build +**/build # misc .DS_Store diff --git a/README.md b/README.md index e273c48a..bb8d581e 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ Please see the [section below](#🪪-add-an-identity-provider) for important inf # 👨🏻‍💻 Run from your local machine -Clone this repository locally or fork to your Github account. +Clone this repository locally or fork to your Github account. Run all of the the steps below from the "src" directory. 1. Create a new file named `.env.local` to store the environment variables add the following variables diff --git a/.env.example b/src/.env.example similarity index 93% rename from .env.example rename to src/.env.example index 9dfede3a..3b3a9978 100644 --- a/.env.example +++ b/src/.env.example @@ -11,7 +11,7 @@ AZURE_AD_CLIENT_SECRET= AZURE_AD_TENANT_ID= NEXTAUTH_SECRET=this-is-a-secret-with-minimum-length-of-32-characters -NEXTAUTH_URL=http://localhost:3000 # add your production URL here +NEXTAUTH_URL=http://localhost:3000 # add your production URL here (and remove this comment) AZURE_COSMOSEDB_URI= AZURE_COSMOSEDB_KEY= \ No newline at end of file diff --git a/.eslintrc.json b/src/.eslintrc.json similarity index 100% rename from .eslintrc.json rename to src/.eslintrc.json diff --git a/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts similarity index 100% rename from app/api/auth/[...nextauth]/route.ts rename to src/app/api/auth/[...nextauth]/route.ts diff --git a/app/api/chat/route.ts b/src/app/api/chat/route.ts similarity index 100% rename from app/api/chat/route.ts rename to src/app/api/chat/route.ts diff --git a/app/chat/[id]/loading.tsx b/src/app/chat/[id]/loading.tsx similarity index 100% rename from app/chat/[id]/loading.tsx rename to src/app/chat/[id]/loading.tsx diff --git a/app/chat/[id]/not-found.tsx b/src/app/chat/[id]/not-found.tsx similarity index 100% rename from app/chat/[id]/not-found.tsx rename to src/app/chat/[id]/not-found.tsx diff --git a/app/chat/[id]/page.tsx b/src/app/chat/[id]/page.tsx similarity index 100% rename from app/chat/[id]/page.tsx rename to src/app/chat/[id]/page.tsx diff --git a/app/chat/layout.tsx b/src/app/chat/layout.tsx similarity index 100% rename from app/chat/layout.tsx rename to src/app/chat/layout.tsx diff --git a/app/chat/loading.tsx b/src/app/chat/loading.tsx similarity index 100% rename from app/chat/loading.tsx rename to src/app/chat/loading.tsx diff --git a/app/chat/page.tsx b/src/app/chat/page.tsx similarity index 100% rename from app/chat/page.tsx rename to src/app/chat/page.tsx diff --git a/app/favicon.ico b/src/app/favicon.ico similarity index 100% rename from app/favicon.ico rename to src/app/favicon.ico diff --git a/app/globals.css b/src/app/globals.css similarity index 100% rename from app/globals.css rename to src/app/globals.css diff --git a/app/layout.tsx b/src/app/layout.tsx similarity index 100% rename from app/layout.tsx rename to src/app/layout.tsx diff --git a/app/loading.tsx b/src/app/loading.tsx similarity index 100% rename from app/loading.tsx rename to src/app/loading.tsx diff --git a/app/page.tsx b/src/app/page.tsx similarity index 100% rename from app/page.tsx rename to src/app/page.tsx diff --git a/app/reporting/[chatid]/loading.tsx b/src/app/reporting/[chatid]/loading.tsx similarity index 100% rename from app/reporting/[chatid]/loading.tsx rename to src/app/reporting/[chatid]/loading.tsx diff --git a/app/reporting/[chatid]/page.tsx b/src/app/reporting/[chatid]/page.tsx similarity index 100% rename from app/reporting/[chatid]/page.tsx rename to src/app/reporting/[chatid]/page.tsx diff --git a/app/reporting/layout.tsx b/src/app/reporting/layout.tsx similarity index 100% rename from app/reporting/layout.tsx rename to src/app/reporting/layout.tsx diff --git a/app/reporting/loading.tsx b/src/app/reporting/loading.tsx similarity index 100% rename from app/reporting/loading.tsx rename to src/app/reporting/loading.tsx diff --git a/app/reporting/page.tsx b/src/app/reporting/page.tsx similarity index 100% rename from app/reporting/page.tsx rename to src/app/reporting/page.tsx diff --git a/components.json b/src/components.json similarity index 100% rename from components.json rename to src/components.json diff --git a/components/chat/chat-input.tsx b/src/components/chat/chat-input.tsx similarity index 100% rename from components/chat/chat-input.tsx rename to src/components/chat/chat-input.tsx diff --git a/components/chat/chat-loading.tsx b/src/components/chat/chat-loading.tsx similarity index 100% rename from components/chat/chat-loading.tsx rename to src/components/chat/chat-loading.tsx diff --git a/components/chat/chat-row.tsx b/src/components/chat/chat-row.tsx similarity index 100% rename from components/chat/chat-row.tsx rename to src/components/chat/chat-row.tsx diff --git a/components/chat/code-block.tsx b/src/components/chat/code-block.tsx similarity index 100% rename from components/chat/code-block.tsx rename to src/components/chat/code-block.tsx diff --git a/components/chat/memoized-react-markdown.tsx b/src/components/chat/memoized-react-markdown.tsx similarity index 100% rename from components/chat/memoized-react-markdown.tsx rename to src/components/chat/memoized-react-markdown.tsx diff --git a/components/hooks/use-chat-scroll-anchor.tsx b/src/components/hooks/use-chat-scroll-anchor.tsx similarity index 100% rename from components/hooks/use-chat-scroll-anchor.tsx rename to src/components/hooks/use-chat-scroll-anchor.tsx diff --git a/components/login/login.tsx b/src/components/login/login.tsx similarity index 100% rename from components/login/login.tsx rename to src/components/login/login.tsx diff --git a/components/menu.tsx b/src/components/menu.tsx similarity index 100% rename from components/menu.tsx rename to src/components/menu.tsx diff --git a/components/theme-provider.tsx b/src/components/theme-provider.tsx similarity index 100% rename from components/theme-provider.tsx rename to src/components/theme-provider.tsx diff --git a/components/typography.tsx b/src/components/typography.tsx similarity index 100% rename from components/typography.tsx rename to src/components/typography.tsx diff --git a/components/ui/avatar.tsx b/src/components/ui/avatar.tsx similarity index 100% rename from components/ui/avatar.tsx rename to src/components/ui/avatar.tsx diff --git a/components/ui/button.tsx b/src/components/ui/button.tsx similarity index 100% rename from components/ui/button.tsx rename to src/components/ui/button.tsx diff --git a/components/ui/card.tsx b/src/components/ui/card.tsx similarity index 100% rename from components/ui/card.tsx rename to src/components/ui/card.tsx diff --git a/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx similarity index 100% rename from components/ui/dropdown-menu.tsx rename to src/components/ui/dropdown-menu.tsx diff --git a/components/ui/input.tsx b/src/components/ui/input.tsx similarity index 100% rename from components/ui/input.tsx rename to src/components/ui/input.tsx diff --git a/components/ui/label.tsx b/src/components/ui/label.tsx similarity index 100% rename from components/ui/label.tsx rename to src/components/ui/label.tsx diff --git a/components/ui/table.tsx b/src/components/ui/table.tsx similarity index 100% rename from components/ui/table.tsx rename to src/components/ui/table.tsx diff --git a/components/ui/tabs.tsx b/src/components/ui/tabs.tsx similarity index 100% rename from components/ui/tabs.tsx rename to src/components/ui/tabs.tsx diff --git a/components/ui/textarea.tsx b/src/components/ui/textarea.tsx similarity index 100% rename from components/ui/textarea.tsx rename to src/components/ui/textarea.tsx diff --git a/components/ui/toast.tsx b/src/components/ui/toast.tsx similarity index 100% rename from components/ui/toast.tsx rename to src/components/ui/toast.tsx diff --git a/components/ui/toaster.tsx b/src/components/ui/toaster.tsx similarity index 100% rename from components/ui/toaster.tsx rename to src/components/ui/toaster.tsx diff --git a/components/ui/use-toast.ts b/src/components/ui/use-toast.ts similarity index 100% rename from components/ui/use-toast.ts rename to src/components/ui/use-toast.ts diff --git a/features/auth/auth-api.ts b/src/features/auth/auth-api.ts similarity index 100% rename from features/auth/auth-api.ts rename to src/features/auth/auth-api.ts diff --git a/features/auth/helpers.ts b/src/features/auth/helpers.ts similarity index 100% rename from features/auth/helpers.ts rename to src/features/auth/helpers.ts diff --git a/features/auth/protected-page.tsx b/src/features/auth/protected-page.tsx similarity index 100% rename from features/auth/protected-page.tsx rename to src/features/auth/protected-page.tsx diff --git a/features/azure-cog-search/azure-cog-vector-store.ts b/src/features/azure-cog-search/azure-cog-vector-store.ts similarity index 100% rename from features/azure-cog-search/azure-cog-vector-store.ts rename to src/features/azure-cog-search/azure-cog-vector-store.ts diff --git a/features/chat/chat-api-data.ts b/src/features/chat/chat-api-data.ts similarity index 100% rename from features/chat/chat-api-data.ts rename to src/features/chat/chat-api-data.ts diff --git a/features/chat/chat-api-helpers.ts b/src/features/chat/chat-api-helpers.ts similarity index 100% rename from features/chat/chat-api-helpers.ts rename to src/features/chat/chat-api-helpers.ts diff --git a/features/chat/chat-api.ts b/src/features/chat/chat-api.ts similarity index 100% rename from features/chat/chat-api.ts rename to src/features/chat/chat-api.ts diff --git a/features/chat/chat-helpers.ts b/src/features/chat/chat-helpers.ts similarity index 100% rename from features/chat/chat-helpers.ts rename to src/features/chat/chat-helpers.ts diff --git a/features/chat/chat-menu/chat-menu.tsx b/src/features/chat/chat-menu/chat-menu.tsx similarity index 100% rename from features/chat/chat-menu/chat-menu.tsx rename to src/features/chat/chat-menu/chat-menu.tsx diff --git a/features/chat/chat-menu/menu-items.tsx b/src/features/chat/chat-menu/menu-items.tsx similarity index 100% rename from features/chat/chat-menu/menu-items.tsx rename to src/features/chat/chat-menu/menu-items.tsx diff --git a/features/chat/chat-menu/new-chat.tsx b/src/features/chat/chat-menu/new-chat.tsx similarity index 100% rename from features/chat/chat-menu/new-chat.tsx rename to src/features/chat/chat-menu/new-chat.tsx diff --git a/features/chat/chat-service.ts b/src/features/chat/chat-service.ts similarity index 100% rename from features/chat/chat-service.ts rename to src/features/chat/chat-service.ts diff --git a/features/chat/chat-thread-service.ts b/src/features/chat/chat-thread-service.ts similarity index 100% rename from features/chat/chat-thread-service.ts rename to src/features/chat/chat-thread-service.ts diff --git a/features/chat/chat-ui.tsx b/src/features/chat/chat-ui.tsx similarity index 100% rename from features/chat/chat-ui.tsx rename to src/features/chat/chat-ui.tsx diff --git a/features/common/cosmos.ts b/src/features/common/cosmos.ts similarity index 100% rename from features/common/cosmos.ts rename to src/features/common/cosmos.ts diff --git a/features/langchain/stores/cosmosdb-chat-service.ts b/src/features/langchain/stores/cosmosdb-chat-service.ts similarity index 100% rename from features/langchain/stores/cosmosdb-chat-service.ts rename to src/features/langchain/stores/cosmosdb-chat-service.ts diff --git a/features/langchain/stores/cosmosdb.ts b/src/features/langchain/stores/cosmosdb.ts similarity index 100% rename from features/langchain/stores/cosmosdb.ts rename to src/features/langchain/stores/cosmosdb.ts diff --git a/features/langchain/stores/utils.ts b/src/features/langchain/stores/utils.ts similarity index 100% rename from features/langchain/stores/utils.ts rename to src/features/langchain/stores/utils.ts diff --git a/features/loading-skeleton.tsx b/src/features/loading-skeleton.tsx similarity index 100% rename from features/loading-skeleton.tsx rename to src/features/loading-skeleton.tsx diff --git a/features/menu/menu.tsx b/src/features/menu/menu.tsx similarity index 100% rename from features/menu/menu.tsx rename to src/features/menu/menu.tsx diff --git a/features/providers.tsx b/src/features/providers.tsx similarity index 100% rename from features/providers.tsx rename to src/features/providers.tsx diff --git a/features/reporting/chat-reporting-ui.tsx b/src/features/reporting/chat-reporting-ui.tsx similarity index 100% rename from features/reporting/chat-reporting-ui.tsx rename to src/features/reporting/chat-reporting-ui.tsx diff --git a/features/reporting/reporting-service.ts b/src/features/reporting/reporting-service.ts similarity index 100% rename from features/reporting/reporting-service.ts rename to src/features/reporting/reporting-service.ts diff --git a/features/reporting/reporting.tsx b/src/features/reporting/reporting.tsx similarity index 100% rename from features/reporting/reporting.tsx rename to src/features/reporting/reporting.tsx diff --git a/features/theme/theme-toggle.tsx b/src/features/theme/theme-toggle.tsx similarity index 100% rename from features/theme/theme-toggle.tsx rename to src/features/theme/theme-toggle.tsx diff --git a/features/user-profile.tsx b/src/features/user-profile.tsx similarity index 100% rename from features/user-profile.tsx rename to src/features/user-profile.tsx diff --git a/lib/utils.ts b/src/lib/utils.ts similarity index 100% rename from lib/utils.ts rename to src/lib/utils.ts diff --git a/middleware.ts b/src/middleware.ts similarity index 100% rename from middleware.ts rename to src/middleware.ts diff --git a/next.config.js b/src/next.config.js similarity index 100% rename from next.config.js rename to src/next.config.js diff --git a/package-lock.json b/src/package-lock.json similarity index 100% rename from package-lock.json rename to src/package-lock.json diff --git a/package.json b/src/package.json similarity index 100% rename from package.json rename to src/package.json diff --git a/postcss.config.js b/src/postcss.config.js similarity index 100% rename from postcss.config.js rename to src/postcss.config.js diff --git a/public/ai-icon.png b/src/public/ai-icon.png similarity index 100% rename from public/ai-icon.png rename to src/public/ai-icon.png diff --git a/tailwind.config.js b/src/tailwind.config.js similarity index 100% rename from tailwind.config.js rename to src/tailwind.config.js diff --git a/tsconfig.json b/src/tsconfig.json similarity index 87% rename from tsconfig.json rename to src/tsconfig.json index e06a4454..10f48f33 100644 --- a/tsconfig.json +++ b/src/tsconfig.json @@ -23,6 +23,6 @@ "@/*": ["./*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": ["src/next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], "exclude": ["node_modules"] } diff --git a/type.ts b/src/type.ts similarity index 100% rename from type.ts rename to src/type.ts