@lage-run/reporters 1.2.11 → 1.2.13

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 CHANGED
@@ -2,7 +2,43 @@
2
2
  "name": "@lage-run/reporters",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 02 Oct 2024 20:25:42 GMT",
5
+ "date": "Thu, 17 Oct 2024 20:32:34 GMT",
6
+ "version": "1.2.13",
7
+ "tag": "@lage-run/reporters_v1.2.13",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@lage-run/reporters",
13
+ "comment": "Bump @lage-run/scheduler-types to v0.3.17",
14
+ "commit": "not available"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@lage-run/reporters",
19
+ "comment": "Bump @lage-run/target-graph to v0.9.1",
20
+ "commit": "not available"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Fri, 11 Oct 2024 22:09:18 GMT",
27
+ "version": "1.2.12",
28
+ "tag": "@lage-run/reporters_v1.2.12",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "kchau@microsoft.com",
33
+ "package": "@lage-run/reporters",
34
+ "commit": "cd7a1ed3a889ba4f57205b9779eb292863685dec",
35
+ "comment": "adding a mkdirp before writing to the log file"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Wed, 02 Oct 2024 20:26:19 GMT",
6
42
  "version": "1.2.11",
7
43
  "tag": "@lage-run/reporters_v1.2.11",
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 Wed, 02 Oct 2024 20:25:42 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Thu, 17 Oct 2024 20:32:34 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.2.13
8
+
9
+ Thu, 17 Oct 2024 20:32:34 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @lage-run/scheduler-types to v0.3.17
14
+ - Bump @lage-run/target-graph to v0.9.1
15
+
16
+ ## 1.2.12
17
+
18
+ Fri, 11 Oct 2024 22:09:18 GMT
19
+
20
+ ### Patches
21
+
22
+ - adding a mkdirp before writing to the log file (kchau@microsoft.com)
23
+
7
24
  ## 1.2.11
8
25
 
9
- Wed, 02 Oct 2024 20:25:42 GMT
26
+ Wed, 02 Oct 2024 20:26:19 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.11",
3
+ "version": "1.2.13",
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.16",
23
- "@lage-run/target-graph": "^0.9.0",
22
+ "@lage-run/scheduler-types": "^0.3.17",
23
+ "@lage-run/target-graph": "^0.9.1",
24
24
  "@ms-cloudpack/task-reporter": "0.5.3",
25
25
  "ansi-regex": "5.0.1",
26
26
  "chalk": "4.1.2",