mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
ci: Setup TS project references for nodes-base, and stop packaging tests in the npm package (no-changelog) (#5635)
This commit is contained in:
parent
0d49ad8b93
commit
0b6fa6b20e
|
@ -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",
|
||||||
|
|
16
packages/nodes-base/tsconfig.build.json
Normal file
16
packages/nodes-base/tsconfig.build.json
Normal 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/**"]
|
||||||
|
}
|
|
@ -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"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue