You've already forked uniapp-error-monitor
fix: 修复npm publish推送失败的问题
解决以下问题: - 修复package.json中repository URL的拼写错误 - 添加缺失的构建依赖项(@rollup/plugin-babel, @babel/core等) - 修复TypeScript类型定义中的字段名冲突 - 修复JavaScript代码中的import.meta语法错误 - 移除JavaScript文件中不当的类型导出 - 添加缺失的LICENSE文件 - 完善package.json配置(添加browser字段等) 确保项目能够成功构建和发布到npm。 Fixes: npm publish失败问题 Closes: 构建配置优化
This commit is contained in:
19
package.json
19
package.json
@@ -4,6 +4,7 @@
|
||||
"description": "专门为UniApp环境设计的错误监控和上报工具,支持全局错误捕获、Promise错误捕获、网络错误捕获等",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.esm.js",
|
||||
"browser": "dist/index.umd.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
@@ -22,13 +23,13 @@
|
||||
"error-handling"
|
||||
],
|
||||
"author": {
|
||||
"name": "iFlow CLI",
|
||||
"email": "contact@iflow.dev"
|
||||
"name": "yuantao",
|
||||
"email": "work@pandorastudio.cn"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "hhttps://git.pandorastudio.cn/product/uniapp-error-monitor.git"
|
||||
"url": "https://git.pandorastudio.cn/product/uniapp-error-monitor.git"
|
||||
},
|
||||
"homepage": "https://git.pandorastudio.cn",
|
||||
"engines": {
|
||||
@@ -44,14 +45,18 @@
|
||||
"prepublishOnly": "npm run clean && npm run build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.28.5",
|
||||
"@babel/preset-env": "^7.28.5",
|
||||
"@rollup/plugin-babel": "^6.1.0",
|
||||
"@rollup/plugin-commonjs": "^25.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.0.0",
|
||||
"@rollup/plugin-typescript": "^11.0.0",
|
||||
"rollup": "^3.0.0",
|
||||
"rollup-plugin-terser": "^7.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"eslint": "^8.0.0",
|
||||
"rimraf": "^5.0.0"
|
||||
"rimraf": "^5.0.0",
|
||||
"rollup": "^2.0.0",
|
||||
"rollup-plugin-terser": "^7.0.0",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@dcloudio/uni-app": "^3.0.0"
|
||||
|
||||
Reference in New Issue
Block a user