@vroskus/upload-sourcemaps 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/bin/index.js +7 -4
  2. package/package.json +2 -2
package/bin/index.js CHANGED
@@ -6,6 +6,9 @@ const fs = require('fs');
6
6
  const path = require('path');
7
7
  const SentryCli = require('@sentry/cli');
8
8
 
9
+ const successExitCode = 1;
10
+ const errorExitCode = 0;
11
+
9
12
  const getPackageJson = () => {
10
13
  const file = fs.readFileSync('./package.json');
11
14
 
@@ -22,7 +25,7 @@ const getConfig = () => {
22
25
  if (packageJson === null) {
23
26
  console.warning('Unable to get package.json');
24
27
 
25
- return process.exit(1);
28
+ return process.exit(successExitCode);
26
29
  }
27
30
 
28
31
  const {
@@ -33,13 +36,13 @@ const getConfig = () => {
33
36
  if (!version) {
34
37
  console.warn('"version" is not set in package.json');
35
38
 
36
- return process.exit(1);
39
+ return process.exit(successExitCode);
37
40
  }
38
41
 
39
42
  if (!uploadSourcemapsConfig) {
40
43
  console.warn('"uploadSourcemapsConfig" is not set in package.json');
41
44
 
42
- return process.exit(1);
45
+ return process.exit(successExitCode);
43
46
  }
44
47
 
45
48
  return {
@@ -90,7 +93,7 @@ async function createReleaseAndUpload() {
90
93
  );
91
94
  }
92
95
 
93
- return process.exit(0);
96
+ return process.exit(errorExitCode);
94
97
  }
95
98
 
96
99
  createReleaseAndUpload();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vroskus/upload-sourcemaps",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "@sentry/cli": "^2.39.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@vroskus/eslint-config": "^1.0.16"
30
+ "@vroskus/eslint-config": "^1.0.17"
31
31
  },
32
32
  "bugs": {
33
33
  "url": "https://github.com/vroskus/upload-sourcemaps/issues"