ci: Setup TS project references for nodes-base, and stop packaging tests in the npm package (no-changelog) (#5635)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-03-08 14:33:13 +01:00 committed by GitHub
parent 0d49ad8b93
commit 0b6fa6b20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 7 deletions

View file

@ -15,7 +15,8 @@
"scripts": { "scripts": {
"clean": "rimraf dist .turbo", "clean": "rimraf dist .turbo",
"dev": "pnpm watch", "dev": "pnpm watch",
"build": "tsc && gulp build:icons && gulp build:translations && pnpm build:metadata", "typecheck": "tsc",
"build": "tsc -p tsconfig.build.json && gulp build:icons && gulp build:translations && pnpm build:metadata",
"build:translations": "gulp build:translations", "build:translations": "gulp build:translations",
"build:metadata": "pnpm n8n-generate-known && pnpm n8n-generate-ui-types", "build:metadata": "pnpm n8n-generate-known && pnpm n8n-generate-ui-types",
"format": "prettier --write . --ignore-path ../../.prettierignore", "format": "prettier --write . --ignore-path ../../.prettierignore",

View file

@ -0,0 +1,16 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"types": ["node"],
"noEmit": false,
"tsBuildInfoFile": "dist/build.tsbuildinfo"
},
"include": [
"credentials/**/*.ts",
"nodes/**/*.ts",
"nodes/**/*.json",
"credentials/translations/**/*.json"
],
"exclude": ["nodes/**/*.test.ts", "test/**"]
}

View file

@ -1,18 +1,17 @@
{ {
"extends": "../../tsconfig.json", "extends": "../../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "dist",
"lib": ["dom", "es2020", "es2022.error"], "lib": ["dom", "es2020", "es2022.error"],
"types": ["node", "jest"], "types": ["node", "jest"],
"noEmit": true,
// TODO: remove all options below this line // TODO: remove all options below this line
"noImplicitReturns": false, "noImplicitReturns": false,
"noUnusedLocals": false, "noUnusedLocals": false,
"useUnknownInCatchVariables": false "useUnknownInCatchVariables": false
}, },
"include": [ "include": ["credentials/**/*.ts", "nodes/**/*.ts"],
"credentials/**/*.ts", "references": [
"nodes/**/*.ts", { "path": "../workflow/tsconfig.build.json" },
"nodes/**/*.json", { "path": "../core/tsconfig.build.json" }
"credentials/translations/**/*.json"
] ]
} }