From f9b0bfe0005e575c7dfe9bbcc18fa3c24738fbbd Mon Sep 17 00:00:00 2001 From: zernonia <59365435+zernonia@users.noreply.github.com> Date: Mon, 30 Oct 2023 00:33:11 +0800 Subject: [PATCH] chore: fix resolver in cjs, types (#481) --- packages/plugins/build.config.ts | 3 +++ packages/radix-vue/package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/plugins/build.config.ts b/packages/plugins/build.config.ts index 51ac18110..058d32829 100644 --- a/packages/plugins/build.config.ts +++ b/packages/plugins/build.config.ts @@ -23,5 +23,8 @@ export default defineBuildConfig([ externals: [ 'unplugin-vue-components', ], + rollup: { + emitCJS: true, + }, }, ]) diff --git a/packages/radix-vue/package.json b/packages/radix-vue/package.json index 0c8739ada..8330c82b8 100644 --- a/packages/radix-vue/package.json +++ b/packages/radix-vue/package.json @@ -20,10 +20,13 @@ "import": "./dist/index.js" }, "./nuxt": { + "types": "./dist/nuxt/index.d.ts", "require": "./dist/nuxt/index.cjs", "import": "./dist/nuxt/index.mjs" }, "./resolver": { + "types": "./dist/resolver/index.d.ts", + "require": "./dist/resolver/index.cjs", "import": "./dist/resolver/index.mjs" }, "./index.css": "./dist/index.css"