@eclipse-scout/migrate 23.1.2 → 23.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/scout-migrate.js +12 -1
- package/package.json +2 -2
package/bin/scout-migrate.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made
|
|
6
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
7
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
8
|
+
*
|
|
9
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
10
|
+
*/
|
|
2
11
|
|
|
3
12
|
import {createRequire} from 'module';
|
|
4
13
|
import path from 'path';
|
|
@@ -130,11 +139,13 @@ function configTypeScript() {
|
|
|
130
139
|
let typeMap = config.typeMap;
|
|
131
140
|
let paramTypeMap = config.paramTypeMap || typeMap;
|
|
132
141
|
let returnTypeMap = config.returnTypeMap;
|
|
142
|
+
let defaultReturnType = config.defaultReturnType;
|
|
143
|
+
let defaultParamType = config.defaultParamType;
|
|
133
144
|
migrateConfig
|
|
134
145
|
.addPlugin(jsDocPlugin, {typeMap: jsDocTypeMap, annotateReturns: true})
|
|
135
146
|
.addPlugin(declareMissingClassPropertiesPlugin, {moduleMap, typeMap})
|
|
136
147
|
.addPlugin(memberAccessModifierPlugin, {})
|
|
137
|
-
.addPlugin(methodsPlugin, {moduleMap, paramTypeMap, returnTypeMap});
|
|
148
|
+
.addPlugin(methodsPlugin, {moduleMap, paramTypeMap, returnTypeMap, defaultReturnType, defaultParamType});
|
|
138
149
|
}
|
|
139
150
|
|
|
140
151
|
function parseTsConfig(path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-scout/migrate",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.5",
|
|
4
4
|
"description": "TypeScript migration module",
|
|
5
5
|
"author": "BSI Business Systems Integration AG",
|
|
6
6
|
"homepage": "https://www.eclipse.org/scout",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"jest": "29.3.1",
|
|
43
43
|
"@babel/preset-env": "7.20.2",
|
|
44
44
|
"@babel/core": "7.20.5",
|
|
45
|
-
"@eclipse-scout/tsconfig": "23.1.
|
|
45
|
+
"@eclipse-scout/tsconfig": "23.1.5"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"scout-migrate": "node bin/scout-migrate",
|