refactor: Move tsconfig.*.json files to separate npm package (no-changelog) (#13426)

This commit is contained in:
Alex Grozav
2025-02-25 20:45:50 +02:00
committed by GitHub
parent 288cce6370
commit 2f395fe89a
62 changed files with 200 additions and 99 deletions

View File

@@ -0,0 +1,19 @@
{
"name": "@n8n/typescript-config",
"version": "1.1.0",
"type": "module",
"files": [
"tsconfig.backend.json",
"tsconfig.build.json",
"tsconfig.common.json",
"tsconfig.frontend.json"
],
"exports": {
"./tsconfig.backend.json": "./tsconfig.backend.json",
"./tsconfig.build.json": "./tsconfig.build.json",
"./tsconfig.common.json": "./tsconfig.common.json",
"./tsconfig.frontend.json": "./tsconfig.frontend.json",
"./*": "./*"
},
"license": "See LICENSE.md file in the root of the repository"
}

View File

@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.common.json",
"compilerOptions": {
"types": ["node", "jest"]
}
}

View File

@@ -0,0 +1,15 @@
{
"compilerOptions": {
"types": ["node"],
"noUnusedLocals": false,
"noUnusedParameters": false,
"declaration": true
},
"tsc-alias": {
"replacers": {
"base-url": {
"enabled": false
}
}
}
}

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"strict": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es2021",
"lib": ["es2021", "es2022.error", "dom"],
"removeComments": true,
"useUnknownInCatchVariables": true,
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
"preserveConstEnums": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"incremental": true,
"declaration": false,
"sourceMap": true,
"skipLibCheck": true
},
"files": ["../../../node_modules/jest-expect-message/types/index.d.ts"]
}

View File

@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.common.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"importHelpers": true,
"allowJs": true,
"incremental": false,
"allowSyntheticDefaultImports": true,
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": ["src/**/*.ts", "src/**/*.vue"]
}