@abaplint/transpiler-cli 2.11.70 → 2.11.72
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/build/bundle.js +15 -4
- package/build/types.d.ts +2 -0
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -105,14 +105,19 @@ class FileOperations {
|
|
|
105
105
|
return Promise.all(promises);
|
|
106
106
|
}
|
|
107
107
|
static async loadFiles(config) {
|
|
108
|
-
const
|
|
108
|
+
const inputFilters = (config.input_filter ?? []).map(pattern => new RegExp(pattern, "i"));
|
|
109
|
+
const excludeFilters = (config.exclude_filter ?? []).map(pattern => new RegExp(pattern, "i"));
|
|
109
110
|
let skipped = 0;
|
|
110
111
|
let added = 0;
|
|
111
112
|
const folders = Array.isArray(config.input_folder) ? config.input_folder : [config.input_folder];
|
|
112
113
|
const filesToRead = [];
|
|
113
114
|
for (const folder of folders) {
|
|
114
115
|
for (const filename of glob.sync(folder + "/**", { nosort: true, nodir: true })) {
|
|
115
|
-
if (
|
|
116
|
+
if (inputFilters.length > 0 && inputFilters.some(a => a.test(filename)) === false) {
|
|
117
|
+
skipped++;
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
else if (excludeFilters.length > 0 && excludeFilters.some(a => a.test(filename)) === true) {
|
|
116
121
|
skipped++;
|
|
117
122
|
continue;
|
|
118
123
|
}
|
|
@@ -45483,6 +45488,13 @@ class AbstractObject {
|
|
|
45483
45488
|
}
|
|
45484
45489
|
addFile(file) {
|
|
45485
45490
|
this.setDirty();
|
|
45491
|
+
// update if it already exists
|
|
45492
|
+
for (let i = 0; i < this.files.length; i++) {
|
|
45493
|
+
if (this.files[i].getFilename() === file.getFilename()) {
|
|
45494
|
+
this.files[i] = file;
|
|
45495
|
+
return;
|
|
45496
|
+
}
|
|
45497
|
+
}
|
|
45486
45498
|
this.files.push(file);
|
|
45487
45499
|
}
|
|
45488
45500
|
getFiles() {
|
|
@@ -53873,7 +53885,7 @@ class Registry {
|
|
|
53873
53885
|
}
|
|
53874
53886
|
static abaplintVersion() {
|
|
53875
53887
|
// magic, see build script "version.sh"
|
|
53876
|
-
return "2.113.
|
|
53888
|
+
return "2.113.196";
|
|
53877
53889
|
}
|
|
53878
53890
|
getDDICReferences() {
|
|
53879
53891
|
return this.ddicReferences;
|
|
@@ -92456,7 +92468,6 @@ exports.config = {
|
|
|
92456
92468
|
"begin_end_names": true,
|
|
92457
92469
|
"check_syntax": true,
|
|
92458
92470
|
"form_no_dash": true,
|
|
92459
|
-
"omit_preceding_zeros": true,
|
|
92460
92471
|
"obsolete_statement": {
|
|
92461
92472
|
"setExtended": true,
|
|
92462
92473
|
},
|
package/build/types.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export interface ITranspilerConfig {
|
|
|
3
3
|
input_folder: string | string[];
|
|
4
4
|
/** list of regex, case insensitive, empty gives all files, positive list */
|
|
5
5
|
input_filter?: string[];
|
|
6
|
+
/** list of regex, case insensitive */
|
|
7
|
+
exclude_filter?: string[];
|
|
6
8
|
output_folder: string;
|
|
7
9
|
/** to be deprecated, "lib", use "libs" instead
|
|
8
10
|
* @deprecated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.72",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.113.
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
30
|
+
"@abaplint/core": "^2.113.196",
|
|
31
|
+
"@abaplint/transpiler": "^2.11.72",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.3.1",
|
|
34
34
|
"@types/progress": "^2.0.7",
|