mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Move tsconfig.*.json files to separate npm package (no-changelog) (#13426)
This commit is contained in:
19
packages/@n8n/typescript-config/package.json
Normal file
19
packages/@n8n/typescript-config/package.json
Normal 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"
|
||||
}
|
||||
6
packages/@n8n/typescript-config/tsconfig.backend.json
Normal file
6
packages/@n8n/typescript-config/tsconfig.backend.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "./tsconfig.common.json",
|
||||
"compilerOptions": {
|
||||
"types": ["node", "jest"]
|
||||
}
|
||||
}
|
||||
15
packages/@n8n/typescript-config/tsconfig.build.json
Normal file
15
packages/@n8n/typescript-config/tsconfig.build.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"types": ["node"],
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
"declaration": true
|
||||
},
|
||||
"tsc-alias": {
|
||||
"replacers": {
|
||||
"base-url": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
25
packages/@n8n/typescript-config/tsconfig.common.json
Normal file
25
packages/@n8n/typescript-config/tsconfig.common.json
Normal 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"]
|
||||
}
|
||||
13
packages/@n8n/typescript-config/tsconfig.frontend.json
Normal file
13
packages/@n8n/typescript-config/tsconfig.frontend.json
Normal 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user