fix: build bug

This commit is contained in:
xion 2024-11-02 22:31:53 +08:00
parent 0561fca3ce
commit 6c8fd040da
2 changed files with 3 additions and 5 deletions

View File

@ -1,8 +1,8 @@
{ {
"name": "@kevisual/container", "name": "@kevisual/container",
"version": "0.0.2", "version": "0.0.3",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/container.js",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },
@ -24,8 +24,7 @@
}, },
"scripts": { "scripts": {
"build": "rimraf dist && rollup -c", "build": "rimraf dist && rollup -c",
"start": "ts-node src/index.ts", "build:app": "npm run build && rsync dist/* ../deploy/dist",
"build:app": "rsync dist/* ../deploy/dist",
"watch": "rollup -c -w" "watch": "rollup -c -w"
}, },
"files": [ "files": [

View File

@ -23,7 +23,6 @@ const config1 = {
noEmit: true, noEmit: true,
declaration: false, declaration: false,
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件 }), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
dts(), // 生成 .d.ts 类型声明文件
], ],
}; };
const config1Dts = { const config1Dts = {