Skip to content

TypeScript code snippet – How to overwsrote ts config?

tsc --project main/tsconfig.json

{
	"extends": "./main/tsconfig.json",
	"compilerOptions": {
		"outDir": "dist",
		"target": "ESNext",
		"module": "CommonJS",
		"moduleResolution": "Node",
		"esModuleInterop": true,
		"allowSyntheticDefaultImports": true,
		"emitDecoratorMetadata": true,
		"experimentalDecorators": true,
		"allowUmdGlobalAccess": true,
		"downlevelIteration": true,
		"declaration": true,
		"noEmitOnError": true,
		"strict": true,
		"noImplicitAny": false,
		"noImplicitThis": false,
		"typeRoots": ["node_modules/@types", "src/server/types"]
	},
	"include": ["src/**/*.ts", "configs/config.ts"],
	"exclude": [
		"node_modules",
		"dist",
		"esm",
		"__test__/**/*.{test.ts,spec.ts}",
		"coverage",
		".github",
		"configs/config.ts"
	]
}
See also  TypeScript code snippet - How to make snippets vsExample?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.