From f1ee65a9d699072f52e31a8cf588f3103205938a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 16 Jun 2022 00:18:51 +0800 Subject: [PATCH] chore: update --- package.json | 8 ++++++++ src/index.ts | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4205a45..2f26280 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,15 @@ "push", "prompt" ], + "exports": { + ".": { + "types": "./dist/index.d.ts", + "require": "./dist/index.js", + "import": "./dist/index.mjs" + } + }, "main": "dist/index.js", + "module": "dist/index.mjs", "types": "dist/index.d.ts", "bin": { "bumpp": "bin/bumpp.js" diff --git a/src/index.ts b/src/index.ts index 5392553..e41b9e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,5 +5,5 @@ export * from './types/version-bump-options' export * from './types/version-bump-results' export * from './types/version-bump-progress' -export { versionBump, versionBumpInfo }; -export default versionBump; \ No newline at end of file +export { versionBump, versionBumpInfo } +export default versionBump