Updates SDK tsconfig to enable the incremental (#1931)

This commit is contained in:
Mihovil Ilakovac 2024-04-03 15:11:03 +02:00 committed by GitHub
parent 2767ca0fa4
commit 2b3bbf97f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 53 additions and 6 deletions

View File

@ -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

View File

@ -28,6 +28,11 @@
// 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": {
// "@wasp/*": [

View File

@ -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 ()

View File

@ -326,7 +326,7 @@
"file",
"../out/sdk/wasp/tsconfig.json"
],
"5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3"
"d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544"
],
[
[

View File

@ -27,6 +27,11 @@
// 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": {
// "@wasp/*": [

View File

@ -27,6 +27,11 @@
// 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": {
// "@wasp/*": [

View File

@ -326,7 +326,7 @@
"file",
"../out/sdk/wasp/tsconfig.json"
],
"5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3"
"d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544"
],
[
[

View File

@ -27,6 +27,11 @@
// 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": {
// "@wasp/*": [

View File

@ -718,7 +718,7 @@
"file",
"../out/sdk/wasp/tsconfig.json"
],
"5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3"
"d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544"
],
[
[

View File

@ -27,6 +27,11 @@
// 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": {
// "@wasp/*": [

View File

@ -382,7 +382,7 @@
"file",
"../out/sdk/wasp/tsconfig.json"
],
"5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3"
"d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544"
],
[
[

View File

@ -27,6 +27,11 @@
// 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": {
// "@wasp/*": [

View File

@ -326,7 +326,7 @@
"file",
"../out/sdk/wasp/tsconfig.json"
],
"5a1d45e247132b9afbfabb9073749a924a86bfefe945a954c1f44ec672e1fef3"
"d96d435d03a397474a3edf3f1c0bbc58edd9860d9575bb59ba51e7d764339544"
],
[
[

View File

@ -27,6 +27,11 @@
// 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": {
// "@wasp/*": [