diff --git a/package.json b/package.json index 1840597..742b111 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@project-trans/suggestion-box", "type": "module", - "version": "0.4.0", + "version": "0.4.1", "packageManager": "pnpm@9.12.0+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca", "description": "Suggestion box for Project Trans", "author": { @@ -25,11 +25,11 @@ "require": "./dist/aio.umd.cjs", "default": "./dist/aio.umd.cjs" }, - "./dist/aio": { - "types": "./dist/aio.d.ts", - "import": "./dist/aio.js", - "require": "./dist/aio.umd.cjs", - "default": "./dist/aio.umd.cjs" + "./component": { + "types": "./dist/App.vue.d.ts", + "import": "./dist/App.vue", + "require": "./dist/App.vue", + "default": "./dist/App.vue" }, "./dist/style.css": "./dist/style.css" }, diff --git a/script/build.ts b/script/build.ts index 542a10c..b91a2ab 100644 --- a/script/build.ts +++ b/script/build.ts @@ -1,3 +1,4 @@ +import { copyFile } from 'node:fs/promises' import { resolve } from 'node:path' /* eslint-disable antfu/no-top-level-await */ import vue from '@vitejs/plugin-vue' @@ -47,3 +48,8 @@ await build({ }, }, }) + +await copyFile( + resolve(import.meta.dirname, '../src/App.vue'), + resolve(import.meta.dirname, '../dist/App.vue'), +)