Skip to content

Commit

Permalink
feat: ✨ distribute SFC
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Oct 3, 2024
1 parent 6def4fb commit 4379f23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@project-trans/suggestion-box",
"type": "module",
"version": "0.4.0",
"version": "0.4.1",
"packageManager": "[email protected]+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca",
"description": "Suggestion box for Project Trans",
"author": {
Expand All @@ -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"
},
Expand Down
6 changes: 6 additions & 0 deletions script/build.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -47,3 +48,8 @@ await build({
},
},
})

await copyFile(
resolve(import.meta.dirname, '../src/App.vue'),
resolve(import.meta.dirname, '../dist/App.vue'),
)

0 comments on commit 4379f23

Please sign in to comment.