Skip to content

Commit a94e9ed

Browse files
committed
fix: added missing exit code to process.exit
1 parent d7991cd commit a94e9ed

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

packages/babel-preset/lib/postinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
if (process.env.CI) {
4-
process.exit();
4+
process.exit(0);
55
}
66

77
import { writeFile, existsSync } from 'fs';
@@ -42,7 +42,7 @@ to work as it should: { presets: ["@anolilab/babel-preset"] }.`);
4242

4343
console.log("😎 Everything went well, have fun!");
4444

45-
process.exit();
45+
process.exit(0);
4646
} catch (err) {
4747
console.log("😬 something went wrong:");
4848
console.error(err.message);

packages/eslint-config/lib/postinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
if (process.env.CI) {
4-
process.exit();
4+
process.exit(0);
55
}
66

77
import { writeFile, existsSync } from 'fs';
@@ -145,7 +145,7 @@ const writePrettierIgnore = () => {
145145

146146
console.log("😎 Everything went well, have fun!");
147147

148-
process.exit();
148+
process.exit(0);
149149
} catch (err) {
150150
console.log("😬 something went wrong:");
151151
console.error(err.message);

packages/prettier-config/lib/postinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
if (process.env.CI) {
4-
process.exit();
4+
process.exit(0);
55
}
66

77
import { writeFile, existsSync } from 'fs';
@@ -58,7 +58,7 @@ const writePrettierIgnore = () => {
5858

5959
console.log("😎 Everything went well, have fun!");
6060

61-
process.exit();
61+
process.exit(0);
6262
} catch (err) {
6363
console.log("😬 something went wrong:");
6464
console.error(err.message);

packages/stylelint-config/lib/postinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
if (process.env.CI) {
4-
process.exit();
4+
process.exit(0);
55
}
66

77
import { writeFile, existsSync } from 'fs';
@@ -63,7 +63,7 @@ node_modules/**
6363

6464
console.log("😎 Everything went well, have fun!");
6565

66-
process.exit();
66+
process.exit(0);
6767
} catch (err) {
6868
console.log("😬 something went wrong:");
6969
console.error(err.message);

packages/textlint-config/lib/postinstall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
if (process.env.CI) {
4-
process.exit();
4+
process.exit(0);
55
}
66

77
import { writeFile, existsSync } from 'fs';
@@ -182,7 +182,7 @@ to work as it should: ${content}.`);
182182

183183
console.log("😎 Everything went well, have fun!");
184184

185-
process.exit();
185+
process.exit(0);
186186
} catch (err) {
187187
console.log("😬 something went wrong:");
188188
console.error(err.message);

0 commit comments

Comments
 (0)