From aa66223adb3a821a3570a2ad154d5a1f2a6aa447 Mon Sep 17 00:00:00 2001 From: daishi Date: Fri, 18 Oct 2024 13:22:19 +0900 Subject: [PATCH 1/2] chore: run tsc examples 2 --- examples/tsconfig.json | 23 +++++++++++++++++ package.json | 2 +- tsconfig.e2e.json | 56 +++++++++++------------------------------- tsconfig.json | 20 ++++----------- 4 files changed, 43 insertions(+), 58 deletions(-) create mode 100644 examples/tsconfig.json diff --git a/examples/tsconfig.json b/examples/tsconfig.json new file mode 100644 index 000000000..0e8585778 --- /dev/null +++ b/examples/tsconfig.json @@ -0,0 +1,23 @@ +{ + "extends": "../tsconfig.json", + "references": [ + { "path": "01_template" }, + { "path": "03_demo" }, + { "path": "04_cssmodules" }, + { "path": "11_fs-router" }, + { "path": "12_nossr" }, + { "path": "21_create-pages" }, + { "path": "22_define-router" }, + { "path": "31_minimal" }, + { "path": "33_promise" }, + { "path": "34_functions" }, + { "path": "35_nesting" }, + { "path": "36_form" }, + { "path": "37_css" }, + { "path": "38_cookies" }, + { "path": "39_api" }, + { "path": "41_path-alias" }, + { "path": "42_react-tweet" }, + { "path": "43_weave-render" } + ] +} diff --git a/package.json b/package.json index 74086315a..7c12ae59e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "pnpm -r --filter='./packages/*' run dev", "compile": "pnpm -r --filter='./packages/*' run compile", "csb-install-FIXME": "pnpm install --no-frozen-lockfile", - "test": "prettier -c . && eslint . && tsc -b && tsc -b --noEmit `find examples -mindepth 1 -maxdepth 1 -type d ! -name '*_js'` && pnpm run --filter waku test", + "test": "prettier -c . && eslint . && tsc -b --noEmit && tsc -b --noEmit examples && pnpm run --filter waku test", "e2e": "playwright test", "examples:dev": "(cd ./examples/${NAME} && pnpm run dev)", "examples:build": "(cd ./examples/${NAME} && pnpm run build)", diff --git a/tsconfig.e2e.json b/tsconfig.e2e.json index 9b2e8c2ea..e9ce023c6 100644 --- a/tsconfig.e2e.json +++ b/tsconfig.e2e.json @@ -6,47 +6,19 @@ }, "include": ["playwright.config.base.ts", "playwright.config.ts", "./e2e"], "references": [ - { - "path": "./e2e/fixtures/rsc-basic/tsconfig.json" - }, - { - "path": "./e2e/fixtures/rsc-css-modules/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssr-basic/tsconfig.json" - }, - { - "path": "./e2e/fixtures/rsc-router/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssr-target-bundle/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssr-swr/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssr-context-provider/tsconfig.json" - }, - { - "path": "./e2e/fixtures/render-type/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssg-performance/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssg-wildcard/tsconfig.json" - }, - { - "path": "./e2e/fixtures/partial-build/tsconfig.json" - }, - { - "path": "./e2e/fixtures/ssr-catch-error/tsconfig.json" - }, - { - "path": "./e2e/fixtures/use-router/tsconfig.json" - }, - { - "path": "./e2e/fixtures/broken-links/tsconfig.json" - } + { "path": "./e2e/fixtures/rsc-basic/tsconfig.json" }, + { "path": "./e2e/fixtures/rsc-css-modules/tsconfig.json" }, + { "path": "./e2e/fixtures/ssr-basic/tsconfig.json" }, + { "path": "./e2e/fixtures/rsc-router/tsconfig.json" }, + { "path": "./e2e/fixtures/ssr-target-bundle/tsconfig.json" }, + { "path": "./e2e/fixtures/ssr-swr/tsconfig.json" }, + { "path": "./e2e/fixtures/ssr-context-provider/tsconfig.json" }, + { "path": "./e2e/fixtures/render-type/tsconfig.json" }, + { "path": "./e2e/fixtures/ssg-performance/tsconfig.json" }, + { "path": "./e2e/fixtures/ssg-wildcard/tsconfig.json" }, + { "path": "./e2e/fixtures/partial-build/tsconfig.json" }, + { "path": "./e2e/fixtures/ssr-catch-error/tsconfig.json" }, + { "path": "./e2e/fixtures/use-router/tsconfig.json" }, + { "path": "./e2e/fixtures/broken-links/tsconfig.json" } ] } diff --git a/tsconfig.json b/tsconfig.json index f5c21e12b..74b4778e0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,22 +27,12 @@ "include": [], "references": [ // Packages - { - "path": "./packages/waku" - }, - { - "path": "./packages/create-waku" - }, - { - "path": "./packages/website" - }, + { "path": "./packages/waku" }, + { "path": "./packages/create-waku" }, + { "path": "./packages/website" }, // E2E - { - "path": "./tsconfig.e2e.json" - }, + { "path": "./tsconfig.e2e.json" }, // Test - { - "path": "./packages/waku/tests" - } + { "path": "./packages/waku/tests" } ] } From 033078a56f095a02a738f5869dd8fc919fa171dc Mon Sep 17 00:00:00 2001 From: daishi Date: Fri, 18 Oct 2024 13:26:37 +0900 Subject: [PATCH 2/2] this? --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7c12ae59e..fa4801e16 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "dev": "pnpm -r --filter='./packages/*' run dev", "compile": "pnpm -r --filter='./packages/*' run compile", "csb-install-FIXME": "pnpm install --no-frozen-lockfile", - "test": "prettier -c . && eslint . && tsc -b --noEmit && tsc -b --noEmit examples && pnpm run --filter waku test", + "test": "prettier -c . && eslint . && tsc -b && tsc -b --noEmit examples && pnpm run --filter waku test", "e2e": "playwright test", "examples:dev": "(cd ./examples/${NAME} && pnpm run dev)", "examples:build": "(cd ./examples/${NAME} && pnpm run build)",