chore(tsconfig): add base tsconfig.json

development
Anatoliy Mayorov 2022-10-23 10:33:45 +03:00
parent ef76a1db87
commit 7e5360ad97
3 changed files with 21 additions and 16 deletions

View File

@ -1,4 +1,5 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
@ -6,19 +7,12 @@
"declarationDir": "./dist/types",
"declarationMap": false,
"emitDeclarationOnly": true,
"esModuleInterop": true,
"isolatedModules": true,
"module": "ES2020",
"lib": ["dom"],
"moduleResolution": "node",
"outDir": "./dist/esm",
"strict": true,
"target": "ES2020",
"skipLibCheck": false,
"forceConsistentCasingInFileNames": true
},
"exclude": ["node_modules", "e2e", "**/*.json", "**/*.spec.ts"],
"include": ["src/**/*.ts", "./*.ts"],
"include": ["src/**/*.ts"],
"typedocOptions": {
"out": "../../docs/api",
"readme": "none",

View File

@ -1,19 +1,13 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true
},
"include": ["src"]
"include": ["src/*.ts"]
}

17
tsconfig.json Normal file
View File

@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "es2020",
"lib": ["dom", "es2020"],
"target": "es2020",
"moduleResolution": "node",
"strict": true,
"esModuleInterop": true,
"isolatedModules": true
},
"paths": {
"@maxgraph/core": ["packages/core/src/index.ts"],
"@maxgraph/ts-example": ["packages/ts-example/src/main.ts"]
},
"exclude": ["node_modules", "**/*.spec.ts"],
"include": ["packages/*/src"]
}