Skip to content

Commit 69f2e2a

Browse files
authored
Migrate waspc/examples apps to 0.16.0 (#2467)
1 parent b81e6bc commit 69f2e2a

File tree

6 files changed

+51
-30
lines changed

6 files changed

+51
-30
lines changed

waspc/examples/crud-testing/main.wasp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
app crudTesting {
22
wasp: {
3-
version: "^0.15.0"
3+
version: "^0.16.0"
44
},
55
head: [
66
"<link rel=\"stylesheet\" href=\"https://unpkg.com/[email protected]/mvp.css\">"

waspc/examples/crud-testing/tsconfig.json

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
// =============================== IMPORTANT =================================
2+
// This file is mainly used for Wasp IDE support.
23
//
3-
// This file is only used for Wasp IDE support. You can change it to configure
4-
// your IDE checks, but none of these options will affect the TypeScript
5-
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
4+
// Wasp will compile your code with slightly different (less strict) compilerOptions.
5+
// You can increase the configuration's strictness (e.g., by adding
6+
// "noUncheckedIndexedAccess": true), but you shouldn't reduce it (e.g., by
7+
// adding "strict": false). Just keep in mind that this will only affect your
8+
// IDE support, not the actual compilation.
9+
//
10+
// Full TypeScript configurability is coming very soon :)
611
{
712
"compilerOptions": {
813
"module": "esnext",
14+
// Needed because this is used as a project reference.
15+
"composite": true,
916
"target": "esnext",
1017
// We're bundling all code in the end so this is the most appropriate option,
1118
// it's also important for autocomplete to work properly.
@@ -20,6 +27,7 @@
2027
"dom.iterable",
2128
"esnext"
2229
],
30+
"skipLibCheck": true,
2331
"allowJs": true,
2432
"typeRoots": [
2533
// This is needed to properly support Vitest testing with jest-dom matchers.
@@ -32,10 +40,9 @@
3240
// Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
3341
"node_modules/@types"
3442
],
35-
// Since this TS config is used only for IDE support and not for
36-
// compilation, the following directory doesn't exist. We need to specify
37-
// it to prevent this error:
38-
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
39-
"outDir": ".wasp/phantom"
40-
}
43+
"outDir": ".wasp/out/user"
44+
},
45+
"include": [
46+
"src"
47+
]
4148
}

waspc/examples/pg-vector-example/main.wasp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
app pgVectorExample {
22
wasp: {
3-
version: "^0.15.0"
3+
version: "^0.16.0"
44
},
55
title: "PG Vector Example",
66
client: {

waspc/examples/pg-vector-example/tsconfig.json

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
// =============================== IMPORTANT =================================
2+
// This file is mainly used for Wasp IDE support.
23
//
3-
// This file is only used for Wasp IDE support. You can change it to configure
4-
// your IDE checks, but none of these options will affect the TypeScript
5-
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
4+
// Wasp will compile your code with slightly different (less strict) compilerOptions.
5+
// You can increase the configuration's strictness (e.g., by adding
6+
// "noUncheckedIndexedAccess": true), but you shouldn't reduce it (e.g., by
7+
// adding "strict": false). Just keep in mind that this will only affect your
8+
// IDE support, not the actual compilation.
9+
//
10+
// Full TypeScript configurability is coming very soon :)
611
{
712
"compilerOptions": {
813
"module": "esnext",
14+
// Needed because this is used as a project reference.
15+
"composite": true,
916
"target": "esnext",
1017
// We're bundling all code in the end so this is the most appropriate option,
1118
// it's also important for autocomplete to work properly.
@@ -20,6 +27,7 @@
2027
"dom.iterable",
2128
"esnext"
2229
],
30+
"skipLibCheck": true,
2331
"allowJs": true,
2432
"typeRoots": [
2533
// This is needed to properly support Vitest testing with jest-dom matchers.
@@ -32,10 +40,9 @@
3240
// Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
3341
"node_modules/@types"
3442
],
35-
// Since this TS config is used only for IDE support and not for
36-
// compilation, the following directory doesn't exist. We need to specify
37-
// it to prevent this error:
38-
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
39-
"outDir": ".wasp/phantom"
40-
}
43+
"outDir": ".wasp/out/user"
44+
},
45+
"include": [
46+
"src"
47+
]
4148
}

waspc/examples/todo-typescript/main.wasp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
app TodoTypescript {
22
wasp: {
3-
version: "^0.15.0"
3+
version: "^0.16.0"
44
},
55
title: "ToDo TypeScript",
66

waspc/examples/todo-typescript/tsconfig.json

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
// =============================== IMPORTANT =================================
2+
// This file is mainly used for Wasp IDE support.
23
//
3-
// This file is only used for Wasp IDE support. You can change it to configure
4-
// your IDE checks, but none of these options will affect the TypeScript
5-
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
4+
// Wasp will compile your code with slightly different (less strict) compilerOptions.
5+
// You can increase the configuration's strictness (e.g., by adding
6+
// "noUncheckedIndexedAccess": true), but you shouldn't reduce it (e.g., by
7+
// adding "strict": false). Just keep in mind that this will only affect your
8+
// IDE support, not the actual compilation.
9+
//
10+
// Full TypeScript configurability is coming very soon :)
611
{
712
"compilerOptions": {
813
"module": "esnext",
14+
// Needed because this is used as a project reference.
15+
"composite": true,
916
"target": "esnext",
1017
// We're bundling all code in the end so this is the most appropriate option,
1118
// it's also important for autocomplete to work properly.
@@ -20,6 +27,7 @@
2027
"dom.iterable",
2128
"esnext"
2229
],
30+
"skipLibCheck": true,
2331
"allowJs": true,
2432
"typeRoots": [
2533
// This is needed to properly support Vitest testing with jest-dom matchers.
@@ -32,10 +40,9 @@
3240
// Source 2: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
3341
"node_modules/@types"
3442
],
35-
// Since this TS config is used only for IDE support and not for
36-
// compilation, the following directory doesn't exist. We need to specify
37-
// it to prevent this error:
38-
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
39-
"outDir": ".wasp/phantom"
40-
}
43+
"outDir": ".wasp/out/user"
44+
},
45+
"include": [
46+
"src"
47+
]
4148
}

0 commit comments

Comments
 (0)