Skip to content

Commit 902d09c

Browse files
committed
fix(exitcodes): add propper exit codes on failure
1 parent 6b0abf1 commit 902d09c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/lib/converters/constants.converter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ export const convertToConstants = async (conversionOptions: ConstantsConversionO
3434
}
3535
} catch (exception) {
3636
error(`Something went wrong: ${exception}`);
37+
process.exit(1);
3738
}
3839
};

src/lib/converters/files.converter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,6 @@ export const convertToFiles = async (conversionOptions: FileConversionOptions):
8585
success('========================================================');
8686
} catch (error) {
8787
error('Something went wrong', error);
88+
process.exit(1);
8889
}
8990
};

src/lib/converters/object.converter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ export const convertToSingleObject = async (conversionOptions: ObjectConversionO
1717
success(`Icons file successfully generated under ${underlineSuccess(outputDirectory)}`);
1818
} catch (exception) {
1919
error(`Something went wrong: ${exception}`);
20+
process.exit(1);
2021
}
2122
};

0 commit comments

Comments
 (0)