add t3-specific tsconfig

api-as-package
pegasust 2022-11-15 18:00:28 +00:00
parent 17c2717d2c
commit 8ea385a63a
4 changed files with 24 additions and 18 deletions

View File

@ -1,5 +1,3 @@
{ {
"extends": "tsconfig/nextjs.json", "extends": "tsconfig/t3.json",
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs"],
"exclude": ["node_modules"]
} }

View File

@ -13,12 +13,10 @@
"incremental": true, "incremental": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
"incremental": true, "incremental": true,
}, },
"include": ["src", "next-env.d.ts"], "include": ["src", "next-env.d.ts"],
"exclude": ["node_modules"] "exclude": ["node_modules"]

10
packages/tsconfig/t3.json Normal file
View File

@ -0,0 +1,10 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "create-t3-app",
"extends": "./nextjs.json",
"compilerOptions": {
"declaration": false
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs"],
"exclude": ["node_modules"]
}

View File

@ -5,19 +5,6 @@
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"] "outputs": ["dist/**", ".next/**"]
}, },
"about-me#build": {
"dependsOn": [
"^build"
],
"env": [
"VERCEL_URL",
"RENDER_INTERNAL_HOSTNAME",
"PORT",
"NODE_ENV",
"DATABASE_URL",
],
"outputs": ["dist/**", ".next/**"]
},
"lint": { "lint": {
"outputs": [] "outputs": []
}, },
@ -33,6 +20,19 @@
"test": { "test": {
"outputs": [], "outputs": [],
"cache": false "cache": false
},
"about-me#build": {
"dependsOn": [
"^build"
],
"env": [
"VERCEL_URL",
"RENDER_INTERNAL_HOSTNAME",
"PORT",
"NODE_ENV",
"DATABASE_URL"
],
"outputs": ["dist/**", ".next/**"]
} }
} }
} }