From bfa5382ce2f0e4b94b3090950b07df8c1ae1abef Mon Sep 17 00:00:00 2001 From: julien Date: Sat, 23 Sep 2023 19:39:38 +0200 Subject: [PATCH] chore: fix turndown's sub dependency causing problems when building the app in nextjs 13 with app router https://github.com/mixmark-io/turndown/issues/378 --- next-env.d.ts | 1 + package.json | 6 +++++- tsconfig.json | 28 +++++++++++++++++++++++----- yarn.lock | 9 ++++----- 4 files changed, 33 insertions(+), 11 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 4f11a03..fd36f94 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/package.json b/package.json index 55fb295..380c708 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,11 @@ "react-icons": "^4.6.0", "react-markdown": "^8.0.3", "react-query": "^3.39.0", - "turndown": "^7.1.1" + "turndown": "^7.1.2" + }, + "//": "https://github.com/mixmark-io/turndown/issues/378", + "resolutions": { + "domino": "Haringat/domino#2721294c75334ece635dfc72cad0a3dede7391fb" }, "devDependencies": { "@trivago/prettier-plugin-sort-imports": "^4.0.0", diff --git a/tsconfig.json b/tsconfig.json index 0959d68..4914445 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -16,9 +20,23 @@ "incremental": true, "baseUrl": ".", "paths": { - "@caviardeul/*": ["*"] - } + "@caviardeul/*": [ + "*" + ] + }, + "plugins": [ + { + "name": "next" + } + ] }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts" + ], + "exclude": [ + "node_modules" + ] } diff --git a/yarn.lock b/yarn.lock index dd92a25..cb767f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -962,10 +962,9 @@ domhandler@^5.0.2, domhandler@^5.0.3: dependencies: domelementtype "^2.3.0" -domino@^2.1.6: +domino@Haringat/domino#2721294c75334ece635dfc72cad0a3dede7391fb, domino@^2.1.6: version "2.1.6" - resolved "https://registry.yarnpkg.com/domino/-/domino-2.1.6.tgz#fe4ace4310526e5e7b9d12c7de01b7f485a57ffe" - integrity sha512-3VdM/SXBZX2omc9JF9nOPCtDaYQ67BGp5CoLpIQlO2KCAPETs8TcDHacF26jXadGbvUteZzRTeos2fhID5+ucQ== + resolved "https://codeload.github.com/Haringat/domino/tar.gz/2721294c75334ece635dfc72cad0a3dede7391fb" domutils@^3.0.1: version "3.1.0" @@ -2278,7 +2277,7 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -next@^13.0.0: +next@^13.1.0: version "13.4.19" resolved "https://registry.yarnpkg.com/next/-/next-13.4.19.tgz#2326e02aeedee2c693d4f37b90e4f0ed6882b35f" integrity sha512-HuPSzzAbJ1T4BD8e0bs6B9C1kWQ6gv8ykZoRWs5AQoiIuqbGHHdQO7Ljuvg05Q0Z24E2ABozHe6FxDvI6HfyAw== @@ -2954,7 +2953,7 @@ tslib@^2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== -turndown@^7.1.1: +turndown@^7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/turndown/-/turndown-7.1.2.tgz#7feb838c78f14241e79ed92a416e0d213e044a29" integrity sha512-ntI9R7fcUKjqBP6QU8rBK2Ehyt8LAzt3UBT9JR9tgo6GtuKvyUzpayWmeMKJw1DPdXzktvtIT8m2mVXz+bL/Qg==