@lage-run/reporters 1.2.10 → 1.2.12
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/CHANGELOG.json +37 -1
- package/CHANGELOG.md +19 -2
- package/lib/VerboseFileLogReporter.js +9 -0
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,43 @@
|
|
|
2
2
|
"name": "@lage-run/reporters",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Fri,
|
|
5
|
+
"date": "Fri, 11 Oct 2024 22:09:05 GMT",
|
|
6
|
+
"version": "1.2.12",
|
|
7
|
+
"tag": "@lage-run/reporters_v1.2.12",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "@lage-run/reporters",
|
|
13
|
+
"commit": "cd7a1ed3a889ba4f57205b9779eb292863685dec",
|
|
14
|
+
"comment": "adding a mkdirp before writing to the log file"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 02 Oct 2024 20:26:19 GMT",
|
|
21
|
+
"version": "1.2.11",
|
|
22
|
+
"tag": "@lage-run/reporters_v1.2.11",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "beachball",
|
|
27
|
+
"package": "@lage-run/reporters",
|
|
28
|
+
"comment": "Bump @lage-run/scheduler-types to v0.3.16",
|
|
29
|
+
"commit": "not available"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@lage-run/reporters",
|
|
34
|
+
"comment": "Bump @lage-run/target-graph to v0.9.0",
|
|
35
|
+
"commit": "not available"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"date": "Fri, 13 Sep 2024 18:05:04 GMT",
|
|
6
42
|
"version": "1.2.10",
|
|
7
43
|
"tag": "@lage-run/reporters_v1.2.10",
|
|
8
44
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
# Change Log - @lage-run/reporters
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on Fri,
|
|
3
|
+
<!-- This log was last generated on Fri, 11 Oct 2024 22:09:05 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.2.12
|
|
8
|
+
|
|
9
|
+
Fri, 11 Oct 2024 22:09:05 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- adding a mkdirp before writing to the log file (kchau@microsoft.com)
|
|
14
|
+
|
|
15
|
+
## 1.2.11
|
|
16
|
+
|
|
17
|
+
Wed, 02 Oct 2024 20:26:19 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Bump @lage-run/scheduler-types to v0.3.16
|
|
22
|
+
- Bump @lage-run/target-graph to v0.9.0
|
|
23
|
+
|
|
7
24
|
## 1.2.10
|
|
8
25
|
|
|
9
|
-
Fri, 13 Sep 2024 18:04
|
|
26
|
+
Fri, 13 Sep 2024 18:05:04 GMT
|
|
10
27
|
|
|
11
28
|
### Patches
|
|
12
29
|
|
|
@@ -14,6 +14,7 @@ const _logger = require("@lage-run/logger");
|
|
|
14
14
|
const _ansiregex = /*#__PURE__*/ _interop_require_default(require("ansi-regex"));
|
|
15
15
|
const _stream = require("stream");
|
|
16
16
|
const _fs = /*#__PURE__*/ _interop_require_default(require("fs"));
|
|
17
|
+
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
17
18
|
function _define_property(obj, key, value) {
|
|
18
19
|
if (key in obj) {
|
|
19
20
|
Object.defineProperty(obj, key, {
|
|
@@ -100,6 +101,14 @@ class VerboseFileLogReporter {
|
|
|
100
101
|
constructor(logFile){
|
|
101
102
|
_define_property(this, "fileStream", void 0);
|
|
102
103
|
// if logFile is falsy (not specified on cli args), this.fileStream just become a "nowhere" stream and this reporter effectively does nothing
|
|
104
|
+
if (logFile) {
|
|
105
|
+
const logFilePath = _path.default.dirname(_path.default.resolve(logFile));
|
|
106
|
+
if (!_fs.default.existsSync(logFilePath)) {
|
|
107
|
+
_fs.default.mkdirSync(logFilePath, {
|
|
108
|
+
recursive: true
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
103
112
|
this.fileStream = logFile ? _fs.default.createWriteStream(logFile) : new _stream.Writable({
|
|
104
113
|
write () {}
|
|
105
114
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lage-run/reporters",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "Log reporters for Lage",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@lage-run/format-hrtime": "^0.1.6",
|
|
21
21
|
"@lage-run/logger": "^1.3.1",
|
|
22
|
-
"@lage-run/scheduler-types": "^0.3.
|
|
23
|
-
"@lage-run/target-graph": "^0.
|
|
22
|
+
"@lage-run/scheduler-types": "^0.3.16",
|
|
23
|
+
"@lage-run/target-graph": "^0.9.0",
|
|
24
24
|
"@ms-cloudpack/task-reporter": "0.5.3",
|
|
25
25
|
"ansi-regex": "5.0.1",
|
|
26
26
|
"chalk": "4.1.2",
|