lage 0.32.3 → 0.32.4

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,22 @@
2
2
  "name": "lage",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 14 Sep 2021 20:24:26 GMT",
5
+ "date": "Thu, 16 Sep 2021 19:43:53 GMT",
6
+ "tag": "lage_v0.32.4",
7
+ "version": "0.32.4",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "fixes the process.exitCode = 1 to happen before any other errors",
12
+ "author": "kchau@microsoft.com",
13
+ "commit": "ffe273c8bd00cb316724b086ca2822569958c58a",
14
+ "package": "lage"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 14 Sep 2021 20:24:31 GMT",
6
21
  "tag": "lage_v0.32.3",
7
22
  "version": "0.32.3",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - lage
2
2
 
3
- This log was last generated on Tue, 14 Sep 2021 20:24:26 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 16 Sep 2021 19:43:53 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.32.4
8
+
9
+ Thu, 16 Sep 2021 19:43:53 GMT
10
+
11
+ ### Patches
12
+
13
+ - fixes the process.exitCode = 1 to happen before any other errors (kchau@microsoft.com)
14
+
7
15
  ## 0.32.3
8
16
 
9
- Tue, 14 Sep 2021 20:24:26 GMT
17
+ Tue, 14 Sep 2021 20:24:31 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -30,8 +30,16 @@ async function run(cwd, config, reporters) {
30
30
  await pipeline.run(context);
31
31
  }
32
32
  catch (e) {
33
- logger_1.logger.error("runTasks: " + (e.stack || e.message || e));
34
33
  process.exitCode = 1;
34
+ if (e && e.stack) {
35
+ logger_1.logger.error("runTasks: " + e.stack);
36
+ }
37
+ else if (e && e.message) {
38
+ logger_1.logger.error("runTasks: " + e.message);
39
+ }
40
+ else if (e) {
41
+ logger_1.logger.error("runTasks: " + e);
42
+ }
35
43
  }
36
44
  if (config.profile) {
37
45
  try {
@@ -39,8 +47,10 @@ async function run(cwd, config, reporters) {
39
47
  logger_1.logger.info(`runTasks: Profile saved to ${profileFile}`);
40
48
  }
41
49
  catch (e) {
42
- logger_1.logger.error(`An error occured while trying to write profile: ${e.message}`);
43
50
  process.exitCode = 1;
51
+ if (e && e.message) {
52
+ logger_1.logger.error(`An error occured while trying to write profile: ${e.message}`);
53
+ }
44
54
  }
45
55
  }
46
56
  if (!aborted) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lage",
3
- "version": "0.32.3",
3
+ "version": "0.32.4",
4
4
  "description": "A monorepo task runner",
5
5
  "repository": {
6
6
  "url": "https://github.com/microsoft/lage"
@@ -51,7 +51,6 @@
51
51
  "@types/cosmiconfig": "^6.0.0",
52
52
  "@types/execa": "^2.0.0",
53
53
  "@types/git-url-parse": "^9.0.0",
54
- "@types/jasmine": "^3.5.10",
55
54
  "@types/jest": "^27.0.1",
56
55
  "@types/node": "^13.13.2",
57
56
  "@types/npmlog": "^4.1.2",