From 1ab05271a1aca6354b6683d2bb61830cdcb91a15 Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Tue, 2 Apr 2024 15:00:19 +0200 Subject: [PATCH 1/6] Updates SDK tsconfig to enable incremental Signed-off-by: Mihovil Ilakovac --- waspc/data/Generator/templates/sdk/wasp/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json index 39bc110351..5ccaa2e978 100644 --- a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json +++ b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json @@ -28,6 +28,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ From 1152cc537060681b383656705274147769312909 Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Tue, 2 Apr 2024 15:17:54 +0200 Subject: [PATCH 2/6] e2e tests Signed-off-by: Mihovil Ilakovac --- waspc/e2e-test/GoldenTest.hs | 3 ++- .../waspBuild-golden/waspBuild/.wasp/build/.waspchecksums | 2 +- .../waspBuild/.wasp/build/sdk/wasp/tsconfig.json | 1 + .../waspBuild/.wasp/out/sdk/wasp/tsconfig.json | 1 + .../waspCompile-golden/waspCompile/.wasp/out/.waspchecksums | 2 +- .../waspCompile/.wasp/out/sdk/wasp/tsconfig.json | 1 + .../waspComplexTest/.wasp/out/.waspchecksums | 2 +- .../waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json | 1 + .../waspJob-golden/waspJob/.wasp/out/.waspchecksums | 2 +- .../waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json | 1 + .../waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums | 2 +- .../waspMigrate/.wasp/out/sdk/wasp/tsconfig.json | 1 + 12 files changed, 13 insertions(+), 6 deletions(-) diff --git a/waspc/e2e-test/GoldenTest.hs b/waspc/e2e-test/GoldenTest.hs index b158ad0c1d..2c46479e1f 100644 --- a/waspc/e2e-test/GoldenTest.hs +++ b/waspc/e2e-test/GoldenTest.hs @@ -96,7 +96,8 @@ runGoldenTest goldenTest = do "dev.db-journal", "package-lock.json", ".gitignore", - ".DS_Store" + ".DS_Store", + "tsconfig.tsbuildinfo" ] writeFileManifest :: String -> [FilePath] -> FilePath -> IO () diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums index 504e8390a4..680583fa20 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json index a7030c61d5..8e3eeab6f4 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json @@ -27,6 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..8e3eeab6f4 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums index 8a425bb024..0e251162f3 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..8e3eeab6f4 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums index 516a71636f..fc6a6b676c 100644 --- a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums @@ -718,7 +718,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..8e3eeab6f4 100644 --- a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums index 1567f02c19..3e36054f36 100644 --- a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums @@ -382,7 +382,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..8e3eeab6f4 100644 --- a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ diff --git a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums index b3a45e8d57..3bf780a1c0 100644 --- a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3" + "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json index a7030c61d5..8e3eeab6f4 100644 --- a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { // "@wasp/*": [ From 18e5162b7e072fe50d7ee96e1158e9a22deaf44f Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Wed, 3 Apr 2024 14:22:43 +0200 Subject: [PATCH 3/6] Adds comment --- waspc/data/Generator/templates/sdk/wasp/tsconfig.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json index 5ccaa2e978..8153439a45 100644 --- a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json +++ b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json @@ -28,6 +28,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // * This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { From 9c4e5522318f217af0cd6f215482f69c19661ce1 Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Wed, 3 Apr 2024 14:24:55 +0200 Subject: [PATCH 4/6] e2e tests Signed-off-by: Mihovil Ilakovac --- waspc/data/Generator/templates/sdk/wasp/tsconfig.json | 2 +- .../waspBuild-golden/waspBuild/.wasp/build/.waspchecksums | 2 +- .../waspBuild/.wasp/build/sdk/wasp/tsconfig.json | 4 ++++ .../waspBuild/.wasp/out/sdk/wasp/tsconfig.json | 4 ++++ .../waspCompile-golden/waspCompile/.wasp/out/.waspchecksums | 2 +- .../waspCompile/.wasp/out/sdk/wasp/tsconfig.json | 4 ++++ .../waspComplexTest/.wasp/out/.waspchecksums | 2 +- .../waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json | 4 ++++ .../waspJob-golden/waspJob/.wasp/out/.waspchecksums | 2 +- .../waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json | 4 ++++ .../waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums | 2 +- .../waspMigrate/.wasp/out/sdk/wasp/tsconfig.json | 4 ++++ 12 files changed, 30 insertions(+), 6 deletions(-) diff --git a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json index 8153439a45..22f943266a 100644 --- a/waspc/data/Generator/templates/sdk/wasp/tsconfig.json +++ b/waspc/data/Generator/templates/sdk/wasp/tsconfig.json @@ -28,7 +28,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], - // * This option enables faster SDK compilation, less Vite HMR messages + // This option enables faster SDK compilation, less Vite HMR messages // and it prevent unnecessary full-page reloads when using Vite HMR. // While this is great, we still want to dig deeper at some point to understand // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums index 680583fa20..a165a89980 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json index 8e3eeab6f4..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/tsconfig.json @@ -27,6 +27,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { diff --git a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json index 8e3eeab6f4..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums index 0e251162f3..57f0b67361 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" + "12af0c4d2260bd6da3cec5088cbed373eaff9045d1bea89ed90528c18fff2410" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json index 8e3eeab6f4..77468c49f4 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // * This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { diff --git a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums index fc6a6b676c..328da67b18 100644 --- a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums @@ -718,7 +718,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json index 8e3eeab6f4..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { diff --git a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums index 3e36054f36..a27fe5e85b 100644 --- a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums @@ -382,7 +382,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json index 8e3eeab6f4..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { diff --git a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums index 3bf780a1c0..c6df881423 100644 --- a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "bb27765d7626ad98b4c95d8d5745657c2dc3e7882b4f74757a85bc00bf5cde3a" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json index 8e3eeab6f4..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/tsconfig.json @@ -27,6 +27,10 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], + // This option enables faster SDK compilation, less Vite HMR messages + // and it prevent unnecessary full-page reloads when using Vite HMR. + // While this is great, we still want to dig deeper at some point to understand + // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 "incremental": true, // todo(filip): Only works with common js, see https://www.typescriptlang.org/tsconfig#paths and daily-article. // "paths": { From 6b71f194b3457bfe4b9c7c20b2b7a4aa7f716227 Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Wed, 3 Apr 2024 14:42:56 +0200 Subject: [PATCH 5/6] e2e test another one Signed-off-by: Mihovil Ilakovac --- .../waspCompile-golden/waspCompile/.wasp/out/.waspchecksums | 2 +- .../waspCompile/.wasp/out/sdk/wasp/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums index 57f0b67361..d6d1dec709 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums @@ -326,7 +326,7 @@ "file", "../out/sdk/wasp/tsconfig.json" ], - "12af0c4d2260bd6da3cec5088cbed373eaff9045d1bea89ed90528c18fff2410" + "d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544" ], [ [ diff --git a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json index 77468c49f4..e7297a629c 100644 --- a/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json +++ b/waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/tsconfig.json @@ -27,7 +27,7 @@ // about missing types e.g. when using `toBeInTheDocument` and other matchers. "@testing-library/jest-dom" ], - // * This option enables faster SDK compilation, less Vite HMR messages + // This option enables faster SDK compilation, less Vite HMR messages // and it prevent unnecessary full-page reloads when using Vite HMR. // While this is great, we still want to dig deeper at some point to understand // better why Vite HMR misbehaves when the SDK is recompiled: https://github.com/wasp-lang/wasp/issues/1934 From 57853e722f0773ffca03e25a3d9b9627e481a2c5 Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Wed, 3 Apr 2024 14:49:22 +0200 Subject: [PATCH 6/6] Update the Changelog --- waspc/ChangeLog.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/waspc/ChangeLog.md b/waspc/ChangeLog.md index af747cfc35..7d34099283 100644 --- a/waspc/ChangeLog.md +++ b/waspc/ChangeLog.md @@ -1,5 +1,16 @@ # Changelog +## 0.13.1 (2024-04-04) + +### 🐞 Bug fixes + +- Vite HMR now works correctly with Wasp's new project structure (no more full-page reloads). +- Keycloak UI helpers are now correctly exported. + +### 🔧 Small improvements + +- Improved how IDEs auto-import symbols from `wasp/*` modules. + ## 0.13.0 (2024-03-18) ### ⚠️ Breaking changes