From d03a9ce5afcfe3d8f206e6c3ad04d64034524322 Mon Sep 17 00:00:00 2001 From: Pringgo Radianto Date: Mon, 12 Aug 2024 14:58:35 +0700 Subject: [PATCH] fix(type): fix core type --- build.config.ts | 5 +++++ package.json | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build.config.ts b/build.config.ts index fdf4d90..a6c18d9 100644 --- a/build.config.ts +++ b/build.config.ts @@ -13,4 +13,9 @@ export default defineBuildConfig({ }, ], externals: ['h3', 'consola'], + declaration: true, + rollup: { + emitCJS: true, + cjsBridge: false, + }, }) diff --git a/package.json b/package.json index e453d02..1ed21c8 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,11 @@ "types": "./dist/types.d.ts", "import": "./dist/module.mjs", "require": "./dist/module.cjs" + }, + "./core": { + "import": "./dist/core.mjs", + "require": "./dist/core.cjs", + "types": "./dist/core.d.ts" } }, "main": "./dist/module.cjs",