4
0
forked from crowetic/commerce

Update dependencies and fix TS errors. (#1041)

This commit is contained in:
Lee Robinson 2023-06-06 18:36:44 -07:00 committed by GitHub
parent 7de01c40b9
commit fecc60eb36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 281 additions and 290 deletions

View File

@ -1,5 +1,5 @@
{ {
"typescript.tsdk": "node_modules/.pnpm/typescript@4.9.5/node_modules/typescript/lib", "typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true, "typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll": true, "source.fixAll": true,

View File

@ -9,7 +9,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<Suspense>{children}</Suspense> <Suspense>{children}</Suspense>
</div> </div>
</div> </div>
{/* @ts-expect-error Server Component */}
<Footer /> <Footer />
</Suspense> </Suspense>
); );

View File

@ -34,7 +34,6 @@ export default async function RootLayout({ children }: { children: ReactNode })
return ( return (
<html lang="en" className={inter.variable}> <html lang="en" className={inter.variable}>
<body className="bg-white text-black selection:bg-teal-300 dark:bg-black dark:text-white dark:selection:bg-fuchsia-600 dark:selection:text-white"> <body className="bg-white text-black selection:bg-teal-300 dark:bg-black dark:text-white dark:selection:bg-fuchsia-600 dark:selection:text-white">
{/* @ts-expect-error Server Component */}
<Navbar /> <Navbar />
<Suspense> <Suspense>
<main>{children}</main> <main>{children}</main>

View File

@ -22,13 +22,10 @@ export const metadata = {
export default async function HomePage() { export default async function HomePage() {
return ( return (
<> <>
{/* @ts-expect-error Server Component */}
<ThreeItemGrid /> <ThreeItemGrid />
<Suspense> <Suspense>
{/* @ts-expect-error Server Component */}
<Carousel /> <Carousel />
<Suspense> <Suspense>
{/* @ts-expect-error Server Component */}
<Footer /> <Footer />
</Suspense> </Suspense>
</Suspense> </Suspense>

View File

@ -97,7 +97,6 @@ export default async function ProductPage({ params }: { params: { handle: string
</div> </div>
<div className="p-6 lg:col-span-2"> <div className="p-6 lg:col-span-2">
{/* @ts-expect-error Server Component */}
<VariantSelector options={product.options} variants={product.variants} /> <VariantSelector options={product.options} variants={product.variants} />
{product.descriptionHtml ? ( {product.descriptionHtml ? (
@ -108,10 +107,8 @@ export default async function ProductPage({ params }: { params: { handle: string
</div> </div>
</div> </div>
<Suspense> <Suspense>
{/* @ts-expect-error Server Component */}
<RelatedProducts id={product.id} /> <RelatedProducts id={product.id} />
<Suspense> <Suspense>
{/* @ts-expect-error Server Component */}
<Footer /> <Footer />
</Suspense> </Suspense>
</Suspense> </Suspense>

View File

@ -16,7 +16,6 @@ export default function SearchLayout({ children }: { children: React.ReactNode }
<FilterList list={sorting} title="Sort by" /> <FilterList list={sorting} title="Sort by" />
</div> </div>
</div> </div>
{/* @ts-expect-error Server Component */}
<Footer /> <Footer />
</Suspense> </Suspense>
); );

View File

@ -44,7 +44,6 @@ export default async function Navbar() {
<div className="flex w-1/3 justify-end"> <div className="flex w-1/3 justify-end">
<Suspense fallback={<CartIcon className="h-6" />}> <Suspense fallback={<CartIcon className="h-6" />}>
{/* @ts-expect-error Server Component */}
<Cart /> <Cart />
</Suspense> </Suspense>
</div> </div>

View File

@ -31,7 +31,6 @@ export default function Collections() {
</div> </div>
} }
> >
{/* @ts-expect-error Server Component */}
<CollectionList /> <CollectionList />
</Suspense> </Suspense>
); );

View File

@ -22,33 +22,33 @@
"*": "prettier --write --ignore-unknown" "*": "prettier --write --ignore-unknown"
}, },
"dependencies": { "dependencies": {
"@headlessui/react": "^1.7.14", "@headlessui/react": "^1.7.15",
"@vercel/og": "^0.5.4", "@vercel/og": "^0.5.6",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"framer-motion": "^10.12.8", "framer-motion": "^10.12.16",
"is-empty-iterable": "^3.0.0", "is-empty-iterable": "^3.0.0",
"next": "13.4.1", "next": "13.4.4",
"react": "18.2.0", "react": "18.2.0",
"react-cookie": "^4.1.1", "react-cookie": "^4.1.1",
"react-dom": "18.2.0" "react-dom": "18.2.0"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.33.0", "@playwright/test": "^1.34.3",
"@tailwindcss/typography": "^0.5.9", "@tailwindcss/typography": "^0.5.9",
"@types/node": "20.1.0", "@types/node": "20.2.5",
"@types/react": "18.2.6", "@types/react": "18.2.8",
"@types/react-dom": "18.2.4", "@types/react-dom": "18.2.4",
"@vercel/git-hooks": "^1.0.0", "@vercel/git-hooks": "^1.0.0",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"eslint": "^8.40.0", "eslint": "^8.42.0",
"eslint-config-next": "^13.4.1", "eslint-config-next": "^13.4.4",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^8.8.0",
"eslint-plugin-unicorn": "^47.0.0", "eslint-plugin-unicorn": "^47.0.0",
"lint-staged": "^13.2.2", "lint-staged": "^13.2.2",
"postcss": "^8.4.23", "postcss": "^8.4.24",
"prettier": "^2.8.8", "prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8", "prettier-plugin-tailwindcss": "^0.3.0",
"tailwindcss": "^3.3.2", "tailwindcss": "^3.3.2",
"typescript": "5.0.4" "typescript": "5.1.3"
} }
} }

534
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff