Skip to content

anmiles/tsconfig

Repository files navigation

@anmiles/tsconfig

Base tsconfig for all projects


Installation

npm install --save-dev @anmiles/tsconfig

Usage examples

tsconfig.json

{
	"extends": "./node_modules/@anmiles/tsconfig/tsconfig.json",

	"compilerOptions": {
		"rootDir": "./src",
		"outDir": "./dist",
	},

	"include": [
		"src",
	],
}

tsconfig.build.json

{
	"extends": "./tsconfig.json",

	"exclude": [
		"**/__tests__/",
	],
}

tsconfig.test.json

{
	"extends": "./tsconfig.json",

	"compilerOptions": {
		"verbatimModuleSyntax": false
	}
}