build: 集成 Rollup 构建工具并配置相关插件

This commit is contained in:
dj
2026-02-02 21:10:02 +08:00
parent a5bd4d728b
commit d4684f288e
6 changed files with 536 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"build": "rollup -c",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
@@ -10,6 +11,11 @@
"license": "ISC",
"description": "",
"devDependencies": {
"prettier": "^3.8.1"
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.3.4",
"prettier": "^3.8.1",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
}
}