@abaplint/cli 2.119.41 → 2.119.42
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/cli.js +14 -8
- package/package.json +6 -5
package/build/cli.js
CHANGED
|
@@ -66582,7 +66582,7 @@ class Registry {
|
|
|
66582
66582
|
}
|
|
66583
66583
|
static abaplintVersion() {
|
|
66584
66584
|
// magic, see build script "version.js"
|
|
66585
|
-
return "2.119.
|
|
66585
|
+
return "2.119.42";
|
|
66586
66586
|
}
|
|
66587
66587
|
getDDICReferences() {
|
|
66588
66588
|
return this.ddicReferences;
|
|
@@ -96133,6 +96133,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
96133
96133
|
};
|
|
96134
96134
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
96135
96135
|
const minimist_1 = __importDefault(__webpack_require__(/*! minimist */ "./node_modules/minimist/index.js"));
|
|
96136
|
+
const core_1 = __webpack_require__(/*! @abaplint/core */ "../core/build/src/index.js");
|
|
96136
96137
|
const _1 = __webpack_require__(/*! . */ "./build/src/index.js");
|
|
96137
96138
|
const parsed = (0, minimist_1.default)(process.argv.slice(2), { boolean: ["p", "c", "fix", "rename"] });
|
|
96138
96139
|
let format = "standard";
|
|
@@ -96160,9 +96161,12 @@ const arg = {
|
|
|
96160
96161
|
if (issues[0].getKey() === _1.GENERIC_ERROR) {
|
|
96161
96162
|
process.exit(2); // eg. "git" does not exist in system
|
|
96162
96163
|
}
|
|
96163
|
-
else {
|
|
96164
|
+
else if (issues.some(i => i.getSeverity() === core_1.Severity.Error)) {
|
|
96164
96165
|
process.exit(1);
|
|
96165
96166
|
}
|
|
96167
|
+
else {
|
|
96168
|
+
process.exit(0); //only Warnings/ Infos
|
|
96169
|
+
}
|
|
96166
96170
|
}
|
|
96167
96171
|
else {
|
|
96168
96172
|
process.exit();
|
|
@@ -96307,9 +96311,12 @@ class FileOperations {
|
|
|
96307
96311
|
}
|
|
96308
96312
|
fs.rmSync(dir, { recursive: true });
|
|
96309
96313
|
}
|
|
96314
|
+
/** Normalize backslashes to forward slashes, keeping the drive letter so absolute
|
|
96315
|
+
* paths/glob patterns resolve on the correct drive (the path may be on a different
|
|
96316
|
+
* drive than the current working directory). */
|
|
96310
96317
|
static toUnixPath(path) {
|
|
96311
96318
|
if (os.platform() === "win32") {
|
|
96312
|
-
return path.replace(/[\\/]+/g, "/")
|
|
96319
|
+
return path.replace(/[\\/]+/g, "/");
|
|
96313
96320
|
}
|
|
96314
96321
|
else {
|
|
96315
96322
|
return path;
|
|
@@ -97355,14 +97362,13 @@ async function loadDependencies(config, compress, bar, base) {
|
|
|
97355
97362
|
}
|
|
97356
97363
|
if (d.url) {
|
|
97357
97364
|
process.stderr.write("Clone: " + d.url + "\n");
|
|
97358
|
-
|
|
97359
|
-
dir = file_operations_1.FileOperations.toUnixPath(dir);
|
|
97365
|
+
const dir = fs.mkdtempSync(path.join(os.tmpdir(), "abaplint-"));
|
|
97360
97366
|
let branch = "";
|
|
97361
97367
|
if (d.branch) {
|
|
97362
97368
|
branch = "-b " + d.branch + " ";
|
|
97363
97369
|
}
|
|
97364
97370
|
childProcess.execSync("git clone --quiet --depth 1 " + branch + d.url + " .", { cwd: dir, stdio: "inherit" });
|
|
97365
|
-
const names = file_operations_1.FileOperations.loadFileNames(dir + d.files);
|
|
97371
|
+
const names = file_operations_1.FileOperations.loadFileNames(file_operations_1.FileOperations.toUnixPath(dir) + d.files);
|
|
97366
97372
|
files = files.concat(await file_operations_1.FileOperations.loadFiles(compress, names, bar));
|
|
97367
97373
|
file_operations_1.FileOperations.deleteFolderRecursive(dir);
|
|
97368
97374
|
}
|
|
@@ -97589,8 +97595,8 @@ class Rename {
|
|
|
97589
97595
|
continue;
|
|
97590
97596
|
}
|
|
97591
97597
|
for (const f of o.getFiles()) {
|
|
97592
|
-
//
|
|
97593
|
-
const n = outputFolder + f.getFilename().replace(
|
|
97598
|
+
// strip the long-path prefix (Windows) then the drive-qualified base
|
|
97599
|
+
const n = outputFolder + f.getFilename().replace("//?/", "").replace(myBase, "");
|
|
97594
97600
|
console.log("Write " + n);
|
|
97595
97601
|
fs.mkdirSync(path.dirname(n), { recursive: true });
|
|
97596
97602
|
fs.writeFileSync(n, f.getRaw());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.119.
|
|
3
|
+
"version": "2.119.42",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
11
|
-
"
|
|
11
|
+
"clean": "rm -rf build",
|
|
12
|
+
"compile": "npm run clean && tsc",
|
|
12
13
|
"test": "npm run compile && mocha && npm run lint && npm run webpack",
|
|
13
14
|
"webpack": "webpack --progress",
|
|
14
|
-
"publish:minor": "npm --no-git-tag-version version minor &&
|
|
15
|
-
"publish:patch": "npm --no-git-tag-version version patch &&
|
|
15
|
+
"publish:minor": "npm --no-git-tag-version version minor && npm run clean && npm install && npm run test && npm publish --access public",
|
|
16
|
+
"publish:patch": "npm --no-git-tag-version version patch && npm run clean && npm install && npm run test && npm publish --access public"
|
|
16
17
|
},
|
|
17
18
|
"mocha": {
|
|
18
19
|
"recursive": true,
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
},
|
|
39
40
|
"homepage": "https://abaplint.org",
|
|
40
41
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.119.
|
|
42
|
+
"@abaplint/core": "^2.119.42",
|
|
42
43
|
"@types/chai": "^4.3.20",
|
|
43
44
|
"@types/minimist": "^1.2.5",
|
|
44
45
|
"@types/mocha": "^10.0.10",
|