mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
ci: Move type-checking out of the build process (no-changelog) (#9730)
This commit is contained in:
parent
ab29ba9b58
commit
c8f0029bc5
|
@ -13,7 +13,7 @@
|
||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
"build:backend": "pnpm --filter=!@n8n/chat --filter=!@n8n/codemirror-lang --filter=!n8n-design-system --filter=!n8n-editor-ui build",
|
"build:backend": "pnpm --filter=!@n8n/chat --filter=!@n8n/codemirror-lang --filter=!n8n-design-system --filter=!n8n-editor-ui build",
|
||||||
"build:frontend": "pnpm --filter=@n8n/chat --filter=@n8n/codemirror-lang --filter=n8n-design-system --filter=n8n-editor-ui build",
|
"build:frontend": "pnpm --filter=@n8n/chat --filter=@n8n/codemirror-lang --filter=n8n-design-system --filter=n8n-editor-ui build",
|
||||||
"typecheck": "pnpm --filter=!@n8n/chat --filter=!@n8n/storybook --filter=!n8n-core --filter=!n8n-editor-ui --filter=!n8n-workflow --filter=!n8n typecheck",
|
"typecheck": "pnpm --filter=!@n8n/storybook --filter=!n8n-core --filter=!n8n-workflow --filter=!n8n typecheck",
|
||||||
"dev": "turbo run dev --parallel --filter=!n8n-design-system --filter=!@n8n/chat",
|
"dev": "turbo run dev --parallel --filter=!n8n-design-system --filter=!@n8n/chat",
|
||||||
"dev:ai": "turbo run dev --parallel --filter=@n8n/nodes-langchain --filter=n8n --filter=n8n-core",
|
"dev:ai": "turbo run dev --parallel --filter=@n8n/nodes-langchain --filter=n8n --filter=n8n-core",
|
||||||
"clean": "turbo run clean --parallel",
|
"clean": "turbo run clean --parallel",
|
||||||
|
@ -58,7 +58,6 @@
|
||||||
"turbo": "1.13.3",
|
"turbo": "1.13.3",
|
||||||
"typescript": "*",
|
"typescript": "*",
|
||||||
"vite": "^5.2.12",
|
"vite": "^5.2.12",
|
||||||
"vite-plugin-checker": "^0.6.4",
|
|
||||||
"vitest": "^1.6.0",
|
"vitest": "^1.6.0",
|
||||||
"vue-tsc": "^2.0.19"
|
"vue-tsc": "^2.0.19"
|
||||||
},
|
},
|
||||||
|
@ -86,7 +85,6 @@
|
||||||
"pyodide@0.23.4": "patches/pyodide@0.23.4.patch",
|
"pyodide@0.23.4": "patches/pyodide@0.23.4.patch",
|
||||||
"@types/express-serve-static-core@4.17.43": "patches/@types__express-serve-static-core@4.17.43.patch",
|
"@types/express-serve-static-core@4.17.43": "patches/@types__express-serve-static-core@4.17.43.patch",
|
||||||
"@types/ws@8.5.4": "patches/@types__ws@8.5.4.patch",
|
"@types/ws@8.5.4": "patches/@types__ws@8.5.4.patch",
|
||||||
"vite-plugin-checker@0.6.4": "patches/vite-plugin-checker@0.6.4.patch",
|
|
||||||
"@types/uuencode@0.0.3": "patches/@types__uuencode@0.0.3.patch"
|
"@types/uuencode@0.0.3": "patches/@types__uuencode@0.0.3.patch"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import checker from 'vite-plugin-checker';
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import icons from 'unplugin-icons/vite';
|
import icons from 'unplugin-icons/vite';
|
||||||
|
@ -8,21 +7,16 @@ import dts from 'vite-plugin-dts';
|
||||||
const includeVue = process.env.INCLUDE_VUE === 'true';
|
const includeVue = process.env.INCLUDE_VUE === 'true';
|
||||||
const srcPath = resolve(__dirname, 'src');
|
const srcPath = resolve(__dirname, 'src');
|
||||||
|
|
||||||
const plugins = [
|
// https://vitejs.dev/config/
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
icons({
|
icons({
|
||||||
compiler: 'vue3',
|
compiler: 'vue3',
|
||||||
autoInstall: true,
|
autoInstall: true,
|
||||||
}),
|
}),
|
||||||
dts(),
|
dts(),
|
||||||
];
|
],
|
||||||
if (!process.env.VITEST) {
|
|
||||||
plugins.push(checker({ vueTsc: true }));
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
|
||||||
plugins,
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': srcPath,
|
'@': srcPath,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { defineConfig, mergeConfig } from 'vite';
|
import { defineConfig, mergeConfig } from 'vite';
|
||||||
import checker from 'vite-plugin-checker';
|
|
||||||
import { type UserConfig } from 'vitest';
|
import { type UserConfig } from 'vitest';
|
||||||
import { defineConfig as defineVitestConfig } from 'vitest/config';
|
import { defineConfig as defineVitestConfig } from 'vitest/config';
|
||||||
|
|
||||||
|
@ -29,14 +28,9 @@ export const vitestConfig = defineVitestConfig({
|
||||||
},
|
},
|
||||||
}) as UserConfig;
|
}) as UserConfig;
|
||||||
|
|
||||||
const plugins = [vue()];
|
|
||||||
if (!process.env.VITEST) {
|
|
||||||
plugins.push(checker({ vueTsc: true }));
|
|
||||||
}
|
|
||||||
|
|
||||||
export default mergeConfig(
|
export default mergeConfig(
|
||||||
defineConfig({
|
defineConfig({
|
||||||
plugins,
|
plugins: [vue()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': resolve(__dirname, 'src'),
|
'@': resolve(__dirname, 'src'),
|
||||||
|
|
|
@ -2,7 +2,6 @@ import vue from '@vitejs/plugin-vue';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import { defineConfig, mergeConfig } from 'vite';
|
import { defineConfig, mergeConfig } from 'vite';
|
||||||
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
import { sentryVitePlugin } from '@sentry/vite-plugin';
|
||||||
import checker from 'vite-plugin-checker';
|
|
||||||
|
|
||||||
import packageJSON from './package.json';
|
import packageJSON from './package.json';
|
||||||
import { vitestConfig } from '../design-system/vite.config.mts';
|
import { vitestConfig } from '../design-system/vite.config.mts';
|
||||||
|
@ -78,13 +77,6 @@ const plugins = [
|
||||||
vue(),
|
vue(),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!process.env.VITEST) {
|
|
||||||
plugins.push({
|
|
||||||
...checker({ vueTsc: true }),
|
|
||||||
apply: 'build'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
const { SENTRY_AUTH_TOKEN: authToken, RELEASE: release } = process.env;
|
const { SENTRY_AUTH_TOKEN: authToken, RELEASE: release } = process.env;
|
||||||
if (release && authToken) {
|
if (release && authToken) {
|
||||||
plugins.push(
|
plugins.push(
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/dist/esm/checkers/vueTsc/prepareVueTsc.js b/dist/esm/checkers/vueTsc/prepareVueTsc.js
|
|
||||||
index 94334b8862feddf28cf32cad5a67112eb3a58cec..f5693c9b8ec1b74e54cb18c9ba72bac3b761d231 100644
|
|
||||||
--- a/dist/esm/checkers/vueTsc/prepareVueTsc.js
|
|
||||||
+++ b/dist/esm/checkers/vueTsc/prepareVueTsc.js
|
|
||||||
@@ -8,7 +8,7 @@ const { copy, mkdir } = fsExtra;
|
|
||||||
const _require = createRequire(import.meta.url);
|
|
||||||
const _filename = fileURLToPath(import.meta.url);
|
|
||||||
const _dirname = dirname(_filename);
|
|
||||||
-const proxyApiPath = _require.resolve("vue-tsc/out/index");
|
|
||||||
+const proxyApiPath = _require.resolve("vue-tsc/index");
|
|
||||||
async function prepareVueTsc() {
|
|
||||||
const targetTsDir = path.resolve(_dirname, "typescript-vue-tsc");
|
|
||||||
const vueTscFlagFile = path.resolve(targetTsDir, "vue-tsc-resolve-path");
|
|
114
pnpm-lock.yaml
114
pnpm-lock.yaml
|
@ -39,9 +39,6 @@ patchedDependencies:
|
||||||
typedi@0.10.0:
|
typedi@0.10.0:
|
||||||
hash: sk6omkefrosihg7lmqbzh7vfxe
|
hash: sk6omkefrosihg7lmqbzh7vfxe
|
||||||
path: patches/typedi@0.10.0.patch
|
path: patches/typedi@0.10.0.patch
|
||||||
vite-plugin-checker@0.6.4:
|
|
||||||
hash: emhml6hz55p6dz7xjncbjppjdm
|
|
||||||
path: patches/vite-plugin-checker@0.6.4.patch
|
|
||||||
|
|
||||||
importers:
|
importers:
|
||||||
|
|
||||||
|
@ -110,9 +107,6 @@ importers:
|
||||||
vite:
|
vite:
|
||||||
specifier: ^5.2.12
|
specifier: ^5.2.12
|
||||||
version: 5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1)
|
version: 5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1)
|
||||||
vite-plugin-checker:
|
|
||||||
specifier: ^0.6.4
|
|
||||||
version: 0.6.4(patch_hash=emhml6hz55p6dz7xjncbjppjdm)(eslint@8.57.0)(optionator@0.9.3)(typescript@5.4.2)(vite@5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1))(vue-tsc@2.0.19(typescript@5.4.2))
|
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^1.6.0
|
specifier: ^1.6.0
|
||||||
version: 1.6.0(@types/node@18.16.16)(jsdom@23.0.1)(sass@1.64.1)(terser@5.16.1)
|
version: 1.6.0(@types/node@18.16.16)(jsdom@23.0.1)(sass@1.64.1)(terser@5.16.1)
|
||||||
|
@ -7031,10 +7025,6 @@ packages:
|
||||||
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
|
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
|
|
||||||
commander@8.3.0:
|
|
||||||
resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==}
|
|
||||||
engines: {node: '>= 12'}
|
|
||||||
|
|
||||||
commander@9.4.1:
|
commander@9.4.1:
|
||||||
resolution: {integrity: sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==}
|
resolution: {integrity: sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==}
|
||||||
engines: {node: ^12.20.0 || >=14}
|
engines: {node: ^12.20.0 || >=14}
|
||||||
|
@ -13217,37 +13207,6 @@ packages:
|
||||||
engines: {node: ^18.0.0 || >=20.0.0}
|
engines: {node: ^18.0.0 || >=20.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
vite-plugin-checker@0.6.4:
|
|
||||||
resolution: {integrity: sha512-2zKHH5oxr+ye43nReRbC2fny1nyARwhxdm0uNYp/ERy4YvU9iZpNOsueoi/luXw5gnpqRSvjcEPxXbS153O2wA==}
|
|
||||||
engines: {node: '>=14.16'}
|
|
||||||
peerDependencies:
|
|
||||||
eslint: '>=7'
|
|
||||||
meow: ^9.0.0
|
|
||||||
optionator: ^0.9.1
|
|
||||||
stylelint: '>=13'
|
|
||||||
typescript: ^5.4.2
|
|
||||||
vite: '>=2.0.0'
|
|
||||||
vls: '*'
|
|
||||||
vti: '*'
|
|
||||||
vue-tsc: '>=1.3.9'
|
|
||||||
peerDependenciesMeta:
|
|
||||||
eslint:
|
|
||||||
optional: true
|
|
||||||
meow:
|
|
||||||
optional: true
|
|
||||||
optionator:
|
|
||||||
optional: true
|
|
||||||
stylelint:
|
|
||||||
optional: true
|
|
||||||
typescript:
|
|
||||||
optional: true
|
|
||||||
vls:
|
|
||||||
optional: true
|
|
||||||
vti:
|
|
||||||
optional: true
|
|
||||||
vue-tsc:
|
|
||||||
optional: true
|
|
||||||
|
|
||||||
vite-plugin-dts@3.7.3:
|
vite-plugin-dts@3.7.3:
|
||||||
resolution: {integrity: sha512-26eTlBYdpjRLWCsTJebM8vkCieE+p9gP3raf+ecDnzzK5E3FG6VE1wcy55OkRpfWWVlVvKkYFe6uvRHYWx7Nog==}
|
resolution: {integrity: sha512-26eTlBYdpjRLWCsTJebM8vkCieE+p9gP3raf+ecDnzzK5E3FG6VE1wcy55OkRpfWWVlVvKkYFe6uvRHYWx7Nog==}
|
||||||
engines: {node: ^14.18.0 || >=16.0.0}
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
|
@ -13315,30 +13274,6 @@ packages:
|
||||||
resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==}
|
resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
|
|
||||||
vscode-jsonrpc@6.0.0:
|
|
||||||
resolution: {integrity: sha512-wnJA4BnEjOSyFMvjZdpiOwhSq9uDoK8e/kpRJDTaMYzwlkrhG1fwDIZI94CLsLzlCK5cIbMMtFlJlfR57Lavmg==}
|
|
||||||
engines: {node: '>=8.0.0 || >=10.0.0'}
|
|
||||||
|
|
||||||
vscode-languageclient@7.0.0:
|
|
||||||
resolution: {integrity: sha512-P9AXdAPlsCgslpP9pRxYPqkNYV7Xq8300/aZDpO35j1fJm/ncize8iGswzYlcvFw5DQUx4eVk+KvfXdL0rehNg==}
|
|
||||||
engines: {vscode: ^1.52.0}
|
|
||||||
|
|
||||||
vscode-languageserver-protocol@3.16.0:
|
|
||||||
resolution: {integrity: sha512-sdeUoAawceQdgIfTI+sdcwkiK2KU+2cbEYA0agzM2uqaUy2UpnnGHtWTHVEtS0ES4zHU0eMFRGN+oQgDxlD66A==}
|
|
||||||
|
|
||||||
vscode-languageserver-textdocument@1.0.11:
|
|
||||||
resolution: {integrity: sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==}
|
|
||||||
|
|
||||||
vscode-languageserver-types@3.16.0:
|
|
||||||
resolution: {integrity: sha512-k8luDIWJWyenLc5ToFQQMaSrqCHiLwyKPHKPQZ5zz21vM+vIVUSvsRpcbiECH4WR88K2XZqc4ScRcZ7nk/jbeA==}
|
|
||||||
|
|
||||||
vscode-languageserver@7.0.0:
|
|
||||||
resolution: {integrity: sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==}
|
|
||||||
hasBin: true
|
|
||||||
|
|
||||||
vscode-uri@3.0.8:
|
|
||||||
resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==}
|
|
||||||
|
|
||||||
vue-agile@2.0.0:
|
vue-agile@2.0.0:
|
||||||
resolution: {integrity: sha512-5xkSLJQNRdQ7qpEnXj5FgLg33XKRHaTZKGP5qkvteOc/uGJX89MYCjPSgdNqJ1GYFGfdGAp0jvhihW8OMuXS3g==}
|
resolution: {integrity: sha512-5xkSLJQNRdQ7qpEnXj5FgLg33XKRHaTZKGP5qkvteOc/uGJX89MYCjPSgdNqJ1GYFGfdGAp0jvhihW8OMuXS3g==}
|
||||||
|
|
||||||
|
@ -21153,8 +21088,6 @@ snapshots:
|
||||||
|
|
||||||
commander@7.2.0: {}
|
commander@7.2.0: {}
|
||||||
|
|
||||||
commander@8.3.0: {}
|
|
||||||
|
|
||||||
commander@9.4.1: {}
|
commander@9.4.1: {}
|
||||||
|
|
||||||
commist@3.2.0: {}
|
commist@3.2.0: {}
|
||||||
|
@ -28412,30 +28345,6 @@ snapshots:
|
||||||
- supports-color
|
- supports-color
|
||||||
- terser
|
- terser
|
||||||
|
|
||||||
vite-plugin-checker@0.6.4(patch_hash=emhml6hz55p6dz7xjncbjppjdm)(eslint@8.57.0)(optionator@0.9.3)(typescript@5.4.2)(vite@5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1))(vue-tsc@2.0.19(typescript@5.4.2)):
|
|
||||||
dependencies:
|
|
||||||
'@babel/code-frame': 7.23.5
|
|
||||||
ansi-escapes: 4.3.2
|
|
||||||
chalk: 4.1.2
|
|
||||||
chokidar: 3.5.2
|
|
||||||
commander: 8.3.0
|
|
||||||
fast-glob: 3.2.12
|
|
||||||
fs-extra: 11.1.1
|
|
||||||
npm-run-path: 4.0.1
|
|
||||||
semver: 7.6.0
|
|
||||||
strip-ansi: 6.0.1
|
|
||||||
tiny-invariant: 1.3.3
|
|
||||||
vite: 5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1)
|
|
||||||
vscode-languageclient: 7.0.0
|
|
||||||
vscode-languageserver: 7.0.0
|
|
||||||
vscode-languageserver-textdocument: 1.0.11
|
|
||||||
vscode-uri: 3.0.8
|
|
||||||
optionalDependencies:
|
|
||||||
eslint: 8.57.0
|
|
||||||
optionator: 0.9.3
|
|
||||||
typescript: 5.4.2
|
|
||||||
vue-tsc: 2.0.19(typescript@5.4.2)
|
|
||||||
|
|
||||||
vite-plugin-dts@3.7.3(@types/node@18.16.16)(rollup@3.29.4)(typescript@5.4.2)(vite@5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1)):
|
vite-plugin-dts@3.7.3(@types/node@18.16.16)(rollup@3.29.4)(typescript@5.4.2)(vite@5.2.12(@types/node@18.16.16)(sass@1.64.1)(terser@5.16.1)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@microsoft/api-extractor': 7.39.0(@types/node@18.16.16)
|
'@microsoft/api-extractor': 7.39.0(@types/node@18.16.16)
|
||||||
|
@ -28499,29 +28408,6 @@ snapshots:
|
||||||
|
|
||||||
void-elements@3.1.0: {}
|
void-elements@3.1.0: {}
|
||||||
|
|
||||||
vscode-jsonrpc@6.0.0: {}
|
|
||||||
|
|
||||||
vscode-languageclient@7.0.0:
|
|
||||||
dependencies:
|
|
||||||
minimatch: 3.1.2
|
|
||||||
semver: 7.6.0
|
|
||||||
vscode-languageserver-protocol: 3.16.0
|
|
||||||
|
|
||||||
vscode-languageserver-protocol@3.16.0:
|
|
||||||
dependencies:
|
|
||||||
vscode-jsonrpc: 6.0.0
|
|
||||||
vscode-languageserver-types: 3.16.0
|
|
||||||
|
|
||||||
vscode-languageserver-textdocument@1.0.11: {}
|
|
||||||
|
|
||||||
vscode-languageserver-types@3.16.0: {}
|
|
||||||
|
|
||||||
vscode-languageserver@7.0.0:
|
|
||||||
dependencies:
|
|
||||||
vscode-languageserver-protocol: 3.16.0
|
|
||||||
|
|
||||||
vscode-uri@3.0.8: {}
|
|
||||||
|
|
||||||
vue-agile@2.0.0:
|
vue-agile@2.0.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
lodash.orderby: 4.6.0
|
lodash.orderby: 4.6.0
|
||||||
|
|
Loading…
Reference in a new issue