refactor: upgrade project to Typescript 5.9

This commit is contained in:
Rainer Killinger
2026-10-01 10:53:00 +02:00
parent 982c0cc57c
commit 444557b725
22 changed files with 158 additions and 256 deletions
+1 -1
View File
@@ -69,7 +69,7 @@
"nock": "13.3.1",
"ts-node": "10.9.2",
"tsup": "8.5.0",
"typescript": "5.5.4"
"typescript": "5.9.3"
},
"tsup": {
"entry": [
+4 -4
View File
@@ -19,7 +19,7 @@ import {URL} from 'url';
import waitOn from 'wait-on';
import {HttpClient} from '@openstapps/api';
import {copy} from './copy.js';
import {version} from '../package.json';
import packageInfo from '../package.json' with {type: 'json'};
// eslint-disable-next-line unicorn/prevent-abbreviations
import {e2eRun} from './e2e.js';
@@ -37,7 +37,7 @@ const helpAndExit = (help: string) => {
commander
.command('e2e <to>')
.version(version)
.version(packageInfo.version)
.description(
'Run in end to end test mode. Indexing and afterwards retrieving all test files from @openstapp/core to the backend',
)
@@ -81,14 +81,14 @@ commander
commander
.command('copy <type> <from> <to> <batchSize>')
.version(version)
.version(packageInfo.version)
.description('Copy data from one instance to another')
.option(
'-s, --bulkSource <bulkSource>',
'The source identifier for the bulk to use with the target instance [copy]',
'copy',
)
.option('-a, --appVersion <version>', 'The App version to use [unset by default]', version)
.option('-a, --appVersion <version>', 'The App version to use [unset by default]', packageInfo.version)
.allowUnknownOption(false)
.action(async (type, from, to, batchSize, copyCommand) => {
// validate type