mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-08-17 11:10:37 +03:00
Uses extends
in the user land tsconfig.json (#1793)
This commit is contained in:
parent
4ae6696374
commit
c11e83311e
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -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",
|
||||
}
|
||||
|
31
waspc/data/Generator/templates/sdk/wasp/dev/tsconfig.json
Normal file
31
waspc/data/Generator/templates/sdk/wasp/dev/tsconfig.json
Normal 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"
|
||||
],
|
||||
}
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
31
waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/dev/tsconfig.json
generated
Normal file
31
waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/build/sdk/wasp/dev/tsconfig.json
generated
Normal 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"
|
||||
],
|
||||
}
|
@ -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",
|
||||
|
31
waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal file
31
waspc/e2e-test/test-outputs/waspBuild-golden/waspBuild/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal 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"
|
||||
],
|
||||
}
|
@ -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",
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
31
waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal file
31
waspc/e2e-test/test-outputs/waspCompile-golden/waspCompile/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal 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"
|
||||
],
|
||||
}
|
@ -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",
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
@ -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"
|
||||
],
|
||||
}
|
@ -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",
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
31
waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal file
31
waspc/e2e-test/test-outputs/waspJob-golden/waspJob/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal 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"
|
||||
],
|
||||
}
|
@ -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",
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
],
|
||||
[
|
||||
[
|
||||
|
31
waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal file
31
waspc/e2e-test/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/sdk/wasp/dev/tsconfig.json
generated
Normal 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"
|
||||
],
|
||||
}
|
@ -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",
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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",
|
||||
}
|
||||
|
1172
waspc/examples/todo-typescript/package-lock.json
generated
1172
waspc/examples/todo-typescript/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
}
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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",
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user