mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 14:42:31 +00:00
Update dependencies and fix TS errors. (#1041)
This commit is contained in:
parent
7de01c40b9
commit
fecc60eb36
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -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,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll": true,
|
||||
|
@ -9,7 +9,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
<Suspense>{children}</Suspense>
|
||||
</div>
|
||||
</div>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
);
|
||||
|
@ -34,7 +34,6 @@ export default async function RootLayout({ children }: { children: ReactNode })
|
||||
return (
|
||||
<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">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Navbar />
|
||||
<Suspense>
|
||||
<main>{children}</main>
|
||||
|
@ -22,13 +22,10 @@ export const metadata = {
|
||||
export default async function HomePage() {
|
||||
return (
|
||||
<>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ThreeItemGrid />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Carousel />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
</Suspense>
|
||||
|
@ -97,7 +97,6 @@ export default async function ProductPage({ params }: { params: { handle: string
|
||||
</div>
|
||||
|
||||
<div className="p-6 lg:col-span-2">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<VariantSelector options={product.options} variants={product.variants} />
|
||||
|
||||
{product.descriptionHtml ? (
|
||||
@ -108,10 +107,8 @@ export default async function ProductPage({ params }: { params: { handle: string
|
||||
</div>
|
||||
</div>
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<RelatedProducts id={product.id} />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
</Suspense>
|
||||
|
@ -16,7 +16,6 @@ export default function SearchLayout({ children }: { children: React.ReactNode }
|
||||
<FilterList list={sorting} title="Sort by" />
|
||||
</div>
|
||||
</div>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
);
|
||||
|
@ -44,7 +44,6 @@ export default async function Navbar() {
|
||||
|
||||
<div className="flex w-1/3 justify-end">
|
||||
<Suspense fallback={<CartIcon className="h-6" />}>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Cart />
|
||||
</Suspense>
|
||||
</div>
|
||||
|
@ -31,7 +31,6 @@ export default function Collections() {
|
||||
</div>
|
||||
}
|
||||
>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<CollectionList />
|
||||
</Suspense>
|
||||
);
|
||||
|
24
package.json
24
package.json
@ -22,33 +22,33 @@
|
||||
"*": "prettier --write --ignore-unknown"
|
||||
},
|
||||
"dependencies": {
|
||||
"@headlessui/react": "^1.7.14",
|
||||
"@vercel/og": "^0.5.4",
|
||||
"@headlessui/react": "^1.7.15",
|
||||
"@vercel/og": "^0.5.6",
|
||||
"clsx": "^1.2.1",
|
||||
"framer-motion": "^10.12.8",
|
||||
"framer-motion": "^10.12.16",
|
||||
"is-empty-iterable": "^3.0.0",
|
||||
"next": "13.4.1",
|
||||
"next": "13.4.4",
|
||||
"react": "18.2.0",
|
||||
"react-cookie": "^4.1.1",
|
||||
"react-dom": "18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.33.0",
|
||||
"@playwright/test": "^1.34.3",
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"@types/node": "20.1.0",
|
||||
"@types/react": "18.2.6",
|
||||
"@types/node": "20.2.5",
|
||||
"@types/react": "18.2.8",
|
||||
"@types/react-dom": "18.2.4",
|
||||
"@vercel/git-hooks": "^1.0.0",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"eslint": "^8.40.0",
|
||||
"eslint-config-next": "^13.4.1",
|
||||
"eslint": "^8.42.0",
|
||||
"eslint-config-next": "^13.4.4",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-unicorn": "^47.0.0",
|
||||
"lint-staged": "^13.2.2",
|
||||
"postcss": "^8.4.23",
|
||||
"postcss": "^8.4.24",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-tailwindcss": "^0.2.8",
|
||||
"prettier-plugin-tailwindcss": "^0.3.0",
|
||||
"tailwindcss": "^3.3.2",
|
||||
"typescript": "5.0.4"
|
||||
"typescript": "5.1.3"
|
||||
}
|
||||
}
|
||||
|
534
pnpm-lock.yaml
generated
534
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user