Skip to content

Commit

Permalink
chore: Upgrade to TypeScript 5.7 (#11865)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored Nov 26, 2024
1 parent 10e011d commit 3341267
Show file tree
Hide file tree
Showing 4 changed files with 333 additions and 303 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -89,7 +89,8 @@
"[email protected]": "patches/[email protected]",
"@types/[email protected]": "patches/@[email protected]",
"@types/[email protected]": "patches/@[email protected]",
"@types/[email protected]": "patches/@[email protected]"
"@types/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]"
}
}
}
21 changes: 21 additions & 0 deletions packages/editor-ui/src/components/ParameterInput.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -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) => {
Loading

0 comments on commit 3341267

Please sign in to comment.