sliftutils 1.4.64 → 1.4.65

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.
@@ -109,5 +109,5 @@ async function main() {
109
109
  let duration = Date.now() - time;
110
110
  console.log(`Electron build completed in ${formatTime(duration)}`);
111
111
  }
112
- main().catch(console.error).finally(() => process.exit());
112
+ main().catch(err => { console.error(err); process.exitCode = 1; }).finally(() => process.exit());
113
113
 
@@ -141,4 +141,4 @@ async function main() {
141
141
  let duration = Date.now() - time;
142
142
  console.log(`Extension build completed in ${formatTime(duration)}`);
143
143
  }
144
- main().catch(console.error).finally(() => process.exit());
144
+ main().catch(err => { console.error(err); process.exitCode = 1; }).finally(() => process.exit());
@@ -26,4 +26,4 @@ async function main() {
26
26
  let duration = Date.now() - time;
27
27
  console.log(`NodeJS build completed in ${formatTime(duration)}`);
28
28
  }
29
- main().catch(console.error).finally(() => process.exit());
29
+ main().catch(err => { console.error(err); process.exitCode = 1; }).finally(() => process.exit());
@@ -92,5 +92,5 @@ async function main() {
92
92
  console.log(`Web build completed in ${formatTime(duration)}`);
93
93
  console.log(`file://${path.resolve(indexHtmlOutput).replaceAll("\\", "/")}`);
94
94
  }
95
- main().catch(console.error).finally(() => process.exit());
95
+ main().catch(err => { console.error(err); process.exitCode = 1; }).finally(() => process.exit());
96
96
 
@@ -42,4 +42,4 @@ async function main() {
42
42
  } catch { }
43
43
  }
44
44
  }
45
- main().catch(console.error).finally(() => process.exit());
45
+ main().catch(err => { console.error(err); process.exitCode = 1; }).finally(() => process.exit());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "1.4.64",
3
+ "version": "1.4.65",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
package/test.ts CHANGED
@@ -7,4 +7,4 @@ async function main() {
7
7
  });
8
8
  console.log(test);
9
9
  }
10
- main().catch(console.error).finally(() => process.exit(0));
10
+ main().catch(err => { console.error(err); process.exitCode = 1; }).finally(() => process.exit());