From db6783f5481b64c3cead89419eeb3131187d8e86 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 5 Sep 2023 16:50:06 +0200 Subject: [PATCH] fix: use top level entry --- .gitignore | 2 +- packages/vue-shining-text/index.mjs | 1 + packages/vue-shining-text/package.json | 8 +++----- 3 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 packages/vue-shining-text/index.mjs diff --git a/.gitignore b/.gitignore index 44d646d..f06235c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ node_modules -dist/ +dist diff --git a/packages/vue-shining-text/index.mjs b/packages/vue-shining-text/index.mjs new file mode 100644 index 0000000..5d960dd --- /dev/null +++ b/packages/vue-shining-text/index.mjs @@ -0,0 +1 @@ +export * from './dist' diff --git a/packages/vue-shining-text/package.json b/packages/vue-shining-text/package.json index 3c9cdf9..b6f4a4c 100644 --- a/packages/vue-shining-text/package.json +++ b/packages/vue-shining-text/package.json @@ -5,14 +5,12 @@ "type": "module", "exports": { ".": { - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": "./index.mjs" } }, - "main": "./dist/index.js", - "types": "./dist/index.d.ts", "files": [ - "dist" + "dist", + "index.mjs" ], "scripts": { "build": "unbuild"