Skip to content

Commit

Permalink
fix exports really this time
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKhanj committed Mar 3, 2024
1 parent 79b5631 commit ead281b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
35 changes: 28 additions & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,31 @@ export default {
...FROM_OPERATIONS,
};

exports = {
getConvention,
CONVENTIONS,
...ERRORS,
...IS_OPERATIONS,
...FROM_OPERATIONS,
};
export { getConvention, CONVENTIONS };

export const {
ConvConvError,
ConventionNotFoundError,
ConventionViolationError,
} = ERRORS;

export const {
isCamel,
isConvention,
isKebab,
isPascal,
isScreamingKebab,
isScreamingSnake,
isSnake,
} = IS_OPERATIONS;

export const {
autoFrom,
fromCamel,
fromConvention,
fromKebab,
fromPascal,
fromScreamingKebab,
fromScreamingSnake,
fromSnake,
} = FROM_OPERATIONS;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "convconv",
"version": "0.3.1",
"version": "0.3.2",
"description": "Naming Conventions Converter",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit ead281b

Please sign in to comment.