From ad0eb517d2e445727721d72434aa725eb23ac317 Mon Sep 17 00:00:00 2001 From: xiaochenchen Date: Wed, 14 Dec 2022 09:10:46 +0800 Subject: [PATCH] fix: commonjs --- CHANGELOG.md | 3 +++ README.md | 3 +++ package.json | 6 ++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a40e1c7..d09b875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## Changelog +[0.4.5] +- Fix: commonjs + [0.4.4] - Fix: types diff --git a/README.md b/README.md index 3195450..67960d4 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ Make the vue script setup syntax support the name attribute ## CHANGELOG +[0.4.5] +- Fix: commonjs + [0.4.4] - Fix: types diff --git a/package.json b/package.json index 4598d49..4883a33 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "unplugin-vue-setup-extend-plus", + "type": "module", "version": "0.4.4", "packageManager": "pnpm@7.1.1", "description": "Extending the vue script setup syntactic sugar", @@ -22,8 +23,8 @@ "type": "git", "url": "git+https://github.com/chenxch/unplugin-vue-setup-extend-plus.git" }, - "main": "dist/index.js", - "module": "dist/index.mjs", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { @@ -75,6 +76,7 @@ "dev": "tsup --watch src", "lint": "eslint .", "play": "npm -C playground run dev", + "prepublishOnly": "npm run build", "release": "bumpp --commit --push --tag && pnpm publish --registry=https://registry.npmjs.org/", "start": "esno src/index.ts", "test": "vitest"