From 4aaa255f22c07618b65a9b4bc7be98524341c585 Mon Sep 17 00:00:00 2001 From: mersocarlin Date: Sun, 14 Apr 2024 07:26:53 +0100 Subject: [PATCH] Restore skipLibCheck flag --- app/utils/post.server.ts | 2 +- package-lock.json | 1 - package.json | 1 - tsconfig.json | 4 +++- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/utils/post.server.ts b/app/utils/post.server.ts index d9f62de..cdfd91c 100644 --- a/app/utils/post.server.ts +++ b/app/utils/post.server.ts @@ -47,7 +47,7 @@ async function parseMdxAsBlogPost({ const { code, frontmatter, matter } = await bundleMDX({ source: postContents, - mdxOptions(options) { + mdxOptions(options: any) { options.rehypePlugins = [ ...(options.rehypePlugins ?? []), rehypeAutolinkHeadings as any, diff --git a/package-lock.json b/package-lock.json index 0fff030..b038c1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "clsx": "^1.2.1", "cross-env": "^7.0.3", "date-fns": "^2.29.3", - "esbuild": "^0.20.2", "mdx-bundler": "^10.0.2", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/package.json b/package.json index 88e9e4d..c7bcf40 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "clsx": "^1.2.1", "cross-env": "^7.0.3", "date-fns": "^2.29.3", - "esbuild": "^0.20.2", "mdx-bundler": "^10.0.2", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/tsconfig.json b/tsconfig.json index 20f8a38..be4bba0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,17 +5,19 @@ "isolatedModules": true, "esModuleInterop": true, "jsx": "react-jsx", - "moduleResolution": "node", + "moduleResolution": "Bundler", "resolveJsonModule": true, "target": "ES2019", "strict": true, "allowJs": true, + "module": "esnext", "forceConsistentCasingInFileNames": true, "baseUrl": ".", "paths": { "~/*": ["./app/*"] }, + "skipLibCheck": true, // Remix takes care of building everything in `remix build`. "noEmit": true }