Uses extends in the user land tsconfig.json (#1793)

This commit is contained in:
Mihovil Ilakovac 2024-02-21 16:12:52 +01:00 committed by GitHub
parent 4ae6696374
commit c11e83311e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
40 changed files with 1424 additions and 423 deletions

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json"
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json"
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json"
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json"
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -110,7 +110,9 @@
"./client/router": "./dist/client/router/index.js",
"./client/test": "./dist/client/test/index.js",
"./client": "./dist/client/index.js",
"./dev": "./dist/dev/index.js"
"./dev": "./dist/dev/index.js",
{=! tsconfig.json doesn't get copied to the ./dist folder, so we are exporting the source file =}
"./dev/tsconfig.json": "./dev/tsconfig.json"
},
{=!
TypeScript doesn't care about the redirects we define above in "exports" field; those

View File

@ -28,6 +28,7 @@ waspBuild/.wasp/build/sdk/wasp/client/test/vitest/helpers.tsx
waspBuild/.wasp/build/sdk/wasp/core/config.ts
waspBuild/.wasp/build/sdk/wasp/core/storage.ts
waspBuild/.wasp/build/sdk/wasp/dev/index.ts
waspBuild/.wasp/build/sdk/wasp/dev/tsconfig.json
waspBuild/.wasp/build/sdk/wasp/dist/api/events.d.ts
waspBuild/.wasp/build/sdk/wasp/dist/api/events.js
waspBuild/.wasp/build/sdk/wasp/dist/api/events.js.map
@ -249,6 +250,7 @@ waspBuild/.wasp/out/sdk/wasp/client/test/vitest/helpers.tsx
waspBuild/.wasp/out/sdk/wasp/core/config.ts
waspBuild/.wasp/out/sdk/wasp/core/storage.ts
waspBuild/.wasp/out/sdk/wasp/dev/index.ts
waspBuild/.wasp/out/sdk/wasp/dev/tsconfig.json
waspBuild/.wasp/out/sdk/wasp/dist/api/events.d.ts
waspBuild/.wasp/out/sdk/wasp/dist/api/events.js
waspBuild/.wasp/out/sdk/wasp/dist/api/events.js.map

View File

@ -167,6 +167,13 @@
],
"1c15a2858ffe39f3ef83e53705cb25b00f09e895c04cf1a354210b5babdde895"
],
[
[
"file",
"../out/sdk/wasp/dev/tsconfig.json"
],
"507eb35fffcb698bc03427ec79bd3983b78276ec4edde5410ad14d9a0530c046"
],
[
[
"file",
@ -207,7 +214,7 @@
"file",
"../out/sdk/wasp/package.json"
],
"6691a48b86fa7e4133f01e647534c32c378755b9c4f266853fdcdc61907e711c"
"ab014558130a62fb7646b322b258e44c7e48fc6d46cf0fd8757ce3a447da935f"
],
[
[

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -50,6 +50,7 @@
"./core/stitches.config": "./dist/core/stitches.config.js",
"./core/storage": "./dist/core/storage.js",
"./dev": "./dist/dev/index.js",
"./dev/tsconfig.json": "./dev/tsconfig.json",
"./entities": "./dist/entities/index.js",
"./ext-src/*": "./dist/ext-src/*.js",
"./operations": "./dist/operations/index.js",

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -50,6 +50,7 @@
"./core/stitches.config": "./dist/core/stitches.config.js",
"./core/storage": "./dist/core/storage.js",
"./dev": "./dist/dev/index.js",
"./dev/tsconfig.json": "./dev/tsconfig.json",
"./entities": "./dist/entities/index.js",
"./ext-src/*": "./dist/ext-src/*.js",
"./operations": "./dist/operations/index.js",

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -27,6 +27,7 @@ waspCompile/.wasp/out/sdk/wasp/client/test/vitest/helpers.tsx
waspCompile/.wasp/out/sdk/wasp/core/config.ts
waspCompile/.wasp/out/sdk/wasp/core/storage.ts
waspCompile/.wasp/out/sdk/wasp/dev/index.ts
waspCompile/.wasp/out/sdk/wasp/dev/tsconfig.json
waspCompile/.wasp/out/sdk/wasp/dist/api/events.d.ts
waspCompile/.wasp/out/sdk/wasp/dist/api/events.js
waspCompile/.wasp/out/sdk/wasp/dist/api/events.js.map

View File

@ -167,6 +167,13 @@
],
"1c15a2858ffe39f3ef83e53705cb25b00f09e895c04cf1a354210b5babdde895"
],
[
[
"file",
"../out/sdk/wasp/dev/tsconfig.json"
],
"507eb35fffcb698bc03427ec79bd3983b78276ec4edde5410ad14d9a0530c046"
],
[
[
"file",
@ -207,7 +214,7 @@
"file",
"../out/sdk/wasp/package.json"
],
"6691a48b86fa7e4133f01e647534c32c378755b9c4f266853fdcdc61907e711c"
"ab014558130a62fb7646b322b258e44c7e48fc6d46cf0fd8757ce3a447da935f"
],
[
[

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -50,6 +50,7 @@
"./core/stitches.config": "./dist/core/stitches.config.js",
"./core/storage": "./dist/core/storage.js",
"./dev": "./dist/dev/index.js",
"./dev/tsconfig.json": "./dev/tsconfig.json",
"./entities": "./dist/entities/index.js",
"./ext-src/*": "./dist/ext-src/*.js",
"./operations": "./dist/operations/index.js",

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -59,6 +59,7 @@ waspComplexTest/.wasp/out/sdk/wasp/core/config.ts
waspComplexTest/.wasp/out/sdk/wasp/core/stitches.config.ts
waspComplexTest/.wasp/out/sdk/wasp/core/storage.ts
waspComplexTest/.wasp/out/sdk/wasp/dev/index.ts
waspComplexTest/.wasp/out/sdk/wasp/dev/tsconfig.json
waspComplexTest/.wasp/out/sdk/wasp/dist/api/events.d.ts
waspComplexTest/.wasp/out/sdk/wasp/dist/api/events.js
waspComplexTest/.wasp/out/sdk/wasp/dist/api/events.js.map

View File

@ -377,6 +377,13 @@
],
"1c15a2858ffe39f3ef83e53705cb25b00f09e895c04cf1a354210b5babdde895"
],
[
[
"file",
"../out/sdk/wasp/dev/tsconfig.json"
],
"507eb35fffcb698bc03427ec79bd3983b78276ec4edde5410ad14d9a0530c046"
],
[
[
"file",
@ -480,7 +487,7 @@
"file",
"../out/sdk/wasp/package.json"
],
"b53c678e00bdf4457cbb1f957482203dad88eb527fcd2d81e87d5f49004e78e1"
"761e255a0445945119bfe61a7083a57ebab720ee3089bec4d19944d7debc0700"
],
[
[

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -56,6 +56,7 @@
"./core/stitches.config": "./dist/core/stitches.config.js",
"./core/storage": "./dist/core/storage.js",
"./dev": "./dist/dev/index.js",
"./dev/tsconfig.json": "./dev/tsconfig.json",
"./entities": "./dist/entities/index.js",
"./ext-src/*": "./dist/ext-src/*.js",
"./operations": "./dist/operations/index.js",

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -28,6 +28,7 @@ waspJob/.wasp/out/sdk/wasp/client/test/vitest/helpers.tsx
waspJob/.wasp/out/sdk/wasp/core/config.ts
waspJob/.wasp/out/sdk/wasp/core/storage.ts
waspJob/.wasp/out/sdk/wasp/dev/index.ts
waspJob/.wasp/out/sdk/wasp/dev/tsconfig.json
waspJob/.wasp/out/sdk/wasp/dist/api/events.d.ts
waspJob/.wasp/out/sdk/wasp/dist/api/events.js
waspJob/.wasp/out/sdk/wasp/dist/api/events.js.map

View File

@ -167,6 +167,13 @@
],
"1c15a2858ffe39f3ef83e53705cb25b00f09e895c04cf1a354210b5babdde895"
],
[
[
"file",
"../out/sdk/wasp/dev/tsconfig.json"
],
"507eb35fffcb698bc03427ec79bd3983b78276ec4edde5410ad14d9a0530c046"
],
[
[
"file",
@ -214,7 +221,7 @@
"file",
"../out/sdk/wasp/package.json"
],
"7da143b79de48120d1d0ff96aa813f59ef44582c375cb3c624467cb9afa7223b"
"2fffd87549c5726c3ead917c0b1cd45cde2f67e7eaf243ba1fb08b027f921deb"
],
[
[

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -51,6 +51,7 @@
"./core/stitches.config": "./dist/core/stitches.config.js",
"./core/storage": "./dist/core/storage.js",
"./dev": "./dist/dev/index.js",
"./dev/tsconfig.json": "./dev/tsconfig.json",
"./entities": "./dist/entities/index.js",
"./ext-src/*": "./dist/ext-src/*.js",
"./operations": "./dist/operations/index.js",

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -31,6 +31,7 @@ waspMigrate/.wasp/out/sdk/wasp/client/test/vitest/helpers.tsx
waspMigrate/.wasp/out/sdk/wasp/core/config.ts
waspMigrate/.wasp/out/sdk/wasp/core/storage.ts
waspMigrate/.wasp/out/sdk/wasp/dev/index.ts
waspMigrate/.wasp/out/sdk/wasp/dev/tsconfig.json
waspMigrate/.wasp/out/sdk/wasp/dist/api/events.d.ts
waspMigrate/.wasp/out/sdk/wasp/dist/api/events.js
waspMigrate/.wasp/out/sdk/wasp/dist/api/events.js.map

View File

@ -167,6 +167,13 @@
],
"1c15a2858ffe39f3ef83e53705cb25b00f09e895c04cf1a354210b5babdde895"
],
[
[
"file",
"../out/sdk/wasp/dev/tsconfig.json"
],
"507eb35fffcb698bc03427ec79bd3983b78276ec4edde5410ad14d9a0530c046"
],
[
[
"file",
@ -207,7 +214,7 @@
"file",
"../out/sdk/wasp/package.json"
],
"6691a48b86fa7e4133f01e647534c32c378755b9c4f266853fdcdc61907e711c"
"ab014558130a62fb7646b322b258e44c7e48fc6d46cf0fd8757ce3a447da935f"
],
[
[

View File

@ -0,0 +1,31 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Wasp IDE Support",
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}

View File

@ -50,6 +50,7 @@
"./core/stitches.config": "./dist/core/stitches.config.js",
"./core/storage": "./dist/core/storage.js",
"./dev": "./dist/dev/index.js",
"./dev/tsconfig.json": "./dev/tsconfig.json",
"./entities": "./dist/entities/index.js",
"./ext-src/*": "./dist/ext-src/*.js",
"./operations": "./dist/operations/index.js",

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

File diff suppressed because it is too large Load Diff

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}
"extends": "wasp/dev/tsconfig.json"
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -4,31 +4,5 @@
// your IDE checks, but none of these options will affect the TypeScript
// compiler. Proper TS compiler configuration in Wasp is coming soon :)
{
"compilerOptions": {
// JSX support
"jsx": "preserve",
"strict": true,
// Allow default imports.
"esModuleInterop": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"types": [
// This is needed to properly support Vitest testing with jest-dom matchers.
// Types for jest-dom are not recognized automatically and Typescript complains
// about missing types e.g. when using `toBeInTheDocument` and other matchers.
"@testing-library/jest-dom"
],
// Since this TS config is used only for IDE support and not for
// compilation, the following directory doesn't exist. We need to specify
// it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom",
},
"exclude": [
"phantom"
],
}
"extends": "wasp/dev/tsconfig.json",
}

View File

@ -90,6 +90,7 @@ genSdkReal spec =
genFileCopy [relfile|client/test/index.ts|],
genFileCopy [relfile|client/index.ts|],
genFileCopy [relfile|dev/index.ts|],
genFileCopy [relfile|dev/tsconfig.json|],
genServerConfigFile spec,
genTsConfigJson,
genServerUtils spec,