mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-07 10:11:59 +00:00
refactor: upgrade project to Typescript 5.9
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user