@o3r/amaterasu-dodo 11.6.0-prerelease.7 → 11.6.0-prerelease.8
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/package.json +19 -14
- package/src/index.d.ts +1 -0
- package/src/index.js +8 -10
- package/src/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/amaterasu-dodo",
|
|
3
|
-
"version": "11.6.0-prerelease.
|
|
3
|
+
"version": "11.6.0-prerelease.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -32,34 +32,39 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@ama-terasu/core": "^11.6.0-prerelease.
|
|
36
|
-
"@
|
|
35
|
+
"@ama-terasu/core": "^11.6.0-prerelease.8",
|
|
36
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
37
37
|
"@nx/eslint-plugin": "~19.5.0",
|
|
38
38
|
"@nx/jest": "~19.5.0",
|
|
39
|
-
"@o3r/build-helpers": "^11.6.0-prerelease.
|
|
40
|
-
"@o3r/eslint-plugin": "^11.6.0-prerelease.
|
|
41
|
-
"@stylistic/eslint-plugin
|
|
39
|
+
"@o3r/build-helpers": "^11.6.0-prerelease.8",
|
|
40
|
+
"@o3r/eslint-plugin": "^11.6.0-prerelease.8",
|
|
41
|
+
"@stylistic/eslint-plugin": "~2.7.0",
|
|
42
42
|
"@types/jest": "~29.5.2",
|
|
43
43
|
"@types/node": "^20.0.0",
|
|
44
44
|
"@types/tar": "~6.1.1",
|
|
45
|
-
"@typescript-eslint/
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"eslint": "^8.57.0",
|
|
45
|
+
"@typescript-eslint/parser": "~8.12.2",
|
|
46
|
+
"angular-eslint": "~18.4.0",
|
|
47
|
+
"eslint": "~9.14.0",
|
|
49
48
|
"eslint-import-resolver-node": "^0.3.9",
|
|
49
|
+
"eslint-import-resolver-typescript": "^3.6.3",
|
|
50
|
+
"eslint-plugin-import": "^2.31.0",
|
|
51
|
+
"eslint-plugin-import-newlines": "^1.4.0",
|
|
50
52
|
"eslint-plugin-jest": "~28.8.0",
|
|
51
|
-
"eslint-plugin-jsdoc": "~
|
|
53
|
+
"eslint-plugin-jsdoc": "~50.2.0",
|
|
52
54
|
"eslint-plugin-prefer-arrow": "~1.2.3",
|
|
53
|
-
"eslint-plugin-unicorn": "^
|
|
55
|
+
"eslint-plugin-unicorn": "^56.0.0",
|
|
56
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
57
|
+
"globals": "^15.9.0",
|
|
54
58
|
"jest": "~29.7.0",
|
|
55
59
|
"jest-junit": "~16.0.0",
|
|
56
60
|
"jsonc-eslint-parser": "~2.4.0",
|
|
57
61
|
"nx": "~19.5.0",
|
|
58
62
|
"ts-jest": "~29.2.0",
|
|
59
|
-
"typescript": "~5.5.4"
|
|
63
|
+
"typescript": "~5.5.4",
|
|
64
|
+
"typescript-eslint": "~8.12.2"
|
|
60
65
|
},
|
|
61
66
|
"peerDependencies": {
|
|
62
|
-
"@ama-terasu/core": "^11.6.0-prerelease.
|
|
67
|
+
"@ama-terasu/core": "^11.6.0-prerelease.8"
|
|
63
68
|
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
const node_child_process_1 = require("node:child_process");
|
|
4
|
-
const node_process_1 = require("node:process");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
5
|
const node_fs_1 = require("node:fs");
|
|
7
6
|
const http = require("node:https");
|
|
7
|
+
const node_path_1 = require("node:path");
|
|
8
|
+
const node_process_1 = require("node:process");
|
|
8
9
|
const tar_1 = require("tar");
|
|
9
10
|
const name = 'dodo';
|
|
10
11
|
const osMap = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
darwin: 'osx-aarch_64',
|
|
13
|
+
win32: 'windows-x86_64',
|
|
14
|
+
linux: 'linux-x86_64'
|
|
14
15
|
};
|
|
15
16
|
const destFolder = (0, node_path_1.resolve)(__dirname, '..', 'cli');
|
|
16
17
|
/**
|
|
17
18
|
* Download Dodo CLI
|
|
18
|
-
* @param platform
|
|
19
|
-
* @param dodoVersion
|
|
20
19
|
*/
|
|
21
20
|
const downloadDodoCli = async () => {
|
|
22
21
|
const dodoVersion = JSON.parse(await node_fs_1.promises.readFile((0, node_path_1.resolve)(__dirname, '..', 'package.json'), { encoding: 'utf8' })).dodo.version;
|
|
@@ -27,7 +26,7 @@ const downloadDodoCli = async () => {
|
|
|
27
26
|
try {
|
|
28
27
|
await node_fs_1.promises.mkdir(destFolder, { recursive: true });
|
|
29
28
|
}
|
|
30
|
-
catch
|
|
29
|
+
catch {
|
|
31
30
|
// ignored
|
|
32
31
|
}
|
|
33
32
|
const destZipFileName = 'dodo.tgz';
|
|
@@ -46,7 +45,6 @@ const downloadDodoCli = async () => {
|
|
|
46
45
|
});
|
|
47
46
|
call.on('error', reject);
|
|
48
47
|
});
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
50
48
|
await (0, tar_1.extract)({ file: destZipFilePath, C: destFolder });
|
|
51
49
|
await node_fs_1.promises.unlink(destZipFilePath);
|
|
52
50
|
}
|
|
@@ -75,7 +73,7 @@ module.exports = {
|
|
|
75
73
|
instance.stderr.setEncoding('utf8');
|
|
76
74
|
instance.stdout.pipe(process.stdout);
|
|
77
75
|
instance.stderr.pipe(process.stderr);
|
|
78
|
-
instance.on('close', (code) => process.exit(code
|
|
76
|
+
instance.on('close', (code) => process.exit(code === null ? 0 : code));
|
|
79
77
|
}
|
|
80
78
|
catch (err) {
|
|
81
79
|
const logger = baseContext.getContext(config).logger;
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AACA,2DAE4B;AAC5B,qCAIiB;AACjB,mCAAmC;AACnC,yCAEmB;AACnB,+CAEsB;AAItB,6BAEa;AAEb,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB,MAAM,KAAK,GAA2B;IACpC,MAAM,EAAE,cAAc;IACtB,KAAK,EAAE,gBAAgB;IACvB,KAAK,EAAE,cAAc;CACtB,CAAC;AAEF,MAAM,UAAU,GAAG,IAAA,mBAAO,EAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE;IACjC,MAAM,WAAW,GAAW,IAAI,CAAC,KAAK,CAAC,MAAM,kBAAE,CAAC,QAAQ,CAAC,IAAA,mBAAO,EAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC;IACvI,MAAM,YAAY,GAAG,KAAK,CAAC,uBAAQ,CAAC,CAAC;IAErC,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,CAAC;QACH,MAAM,kBAAE,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,UAAU;IACZ,CAAC;IAED,MAAM,eAAe,GAAG,UAAU,CAAC;IACnC,MAAM,IAAI,GAAG,QAAQ,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