mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
chore: Upgrade to TypeScript 5.7 (#11865)
This commit is contained in:
parent
10e011d71e
commit
3341267518
|
@ -79,7 +79,7 @@
|
|||
"semver": "^7.5.4",
|
||||
"tslib": "^2.6.2",
|
||||
"tsconfig-paths": "^4.2.0",
|
||||
"typescript": "^5.6.2",
|
||||
"typescript": "^5.7.2",
|
||||
"vue-tsc": "^2.1.6",
|
||||
"ws": ">=8.17.1"
|
||||
},
|
||||
|
@ -89,7 +89,8 @@
|
|||
"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/ws@8.5.4": "patches/@types__ws@8.5.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",
|
||||
"vue-tsc@2.1.6": "patches/vue-tsc@2.1.6.patch"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,27 @@ let mockNdvState: Partial<ReturnType<typeof useNDVStore>>;
|
|||
let mockNodeTypesState: Partial<ReturnType<typeof useNodeTypesStore>>;
|
||||
let mockCompletionResult: Partial<CompletionResult>;
|
||||
|
||||
beforeEach(() => {
|
||||
mockNdvState = {
|
||||
hasInputData: true,
|
||||
activeNode: {
|
||||
id: faker.string.uuid(),
|
||||
name: faker.word.words(3),
|
||||
parameters: {},
|
||||
position: [faker.number.int(), faker.number.int()],
|
||||
type: 'test',
|
||||
typeVersion: 1,
|
||||
},
|
||||
isInputPanelEmpty: false,
|
||||
isOutputPanelEmpty: false,
|
||||
};
|
||||
mockNodeTypesState = {
|
||||
allNodeTypes: [],
|
||||
};
|
||||
mockCompletionResult = {};
|
||||
createAppModals();
|
||||
});
|
||||
|
||||
vi.mock('@/stores/ndv.store', () => {
|
||||
return {
|
||||
useNDVStore: vi.fn(() => mockNdvState),
|
||||
|
|
13
patches/vue-tsc@2.1.6.patch
Normal file
13
patches/vue-tsc@2.1.6.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/index.js b/index.js
|
||||
index a680d25dfa98a45a3efec0bfb493500e6e9faa91..ca90b6226c88b5bc27aa5323c4e0e5f30f5b9ef2 100644
|
||||
--- a/index.js
|
||||
+++ b/index.js
|
||||
@@ -4,7 +4,7 @@ exports.run = run;
|
||||
const runTsc_1 = require("@volar/typescript/lib/quickstart/runTsc");
|
||||
const vue = require("@vue/language-core");
|
||||
const windowsPathReg = /\\/g;
|
||||
-function run(tscPath = require.resolve('typescript/lib/tsc')) {
|
||||
+function run(tscPath = require.resolve('typescript/lib/_tsc')) {
|
||||
let runExtensions = ['.vue'];
|
||||
const extensionsChangedException = new Error('extensions changed');
|
||||
const main = () => (0, runTsc_1.runTsc)(tscPath, runExtensions, (ts, options) => {
|
597
pnpm-lock.yaml
597
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue