diff --git a/index.ts b/index.ts index 72cf09e..f0df161 100644 --- a/index.ts +++ b/index.ts @@ -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; diff --git a/package.json b/package.json index 42c9fa4..8f5b1d1 100644 --- a/package.json +++ b/package.json @@ -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",