You've already forked uniapp-error-monitor
解决以下问题: - 修复package.json中repository URL的拼写错误 - 添加缺失的构建依赖项(@rollup/plugin-babel, @babel/core等) - 修复TypeScript类型定义中的字段名冲突 - 修复JavaScript代码中的import.meta语法错误 - 移除JavaScript文件中不当的类型导出 - 添加缺失的LICENSE文件 - 完善package.json配置(添加browser字段等) 确保项目能够成功构建和发布到npm。 Fixes: npm publish失败问题 Closes: 构建配置优化
77 lines
1.8 KiB
JSON
77 lines
1.8 KiB
JSON
{
|
||
"name": "uniapp-error-monitor",
|
||
"version": "1.0.1",
|
||
"description": "专门为UniApp环境设计的错误监控和上报工具,支持全局错误捕获、Promise错误捕获、网络错误捕获等",
|
||
"main": "dist/index.js",
|
||
"module": "dist/index.esm.js",
|
||
"browser": "dist/index.umd.js",
|
||
"types": "dist/index.d.ts",
|
||
"files": [
|
||
"dist",
|
||
"README.md",
|
||
"LICENSE"
|
||
],
|
||
"keywords": [
|
||
"uniapp",
|
||
"error",
|
||
"monitor",
|
||
"tracking",
|
||
"wechat-miniprogram",
|
||
"vue3",
|
||
"error-reporting",
|
||
"javascript",
|
||
"error-handling"
|
||
],
|
||
"author": {
|
||
"name": "yuantao",
|
||
"email": "work@pandorastudio.cn"
|
||
},
|
||
"license": "MIT",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "https://git.pandorastudio.cn/product/uniapp-error-monitor.git"
|
||
},
|
||
"homepage": "https://git.pandorastudio.cn",
|
||
"engines": {
|
||
"node": ">=14.0.0",
|
||
"npm": ">=6.0.0"
|
||
},
|
||
"scripts": {
|
||
"build": "rollup -c",
|
||
"dev": "rollup -c -w",
|
||
"clean": "rimraf dist",
|
||
"lint": "eslint src/**/*.js",
|
||
"lint:fix": "eslint src/**/*.js --fix",
|
||
"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",
|
||
"eslint": "^8.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"
|
||
},
|
||
"peerDependenciesMeta": {
|
||
"@dcloudio/uni-app": {
|
||
"optional": true
|
||
}
|
||
},
|
||
"browserslist": [
|
||
"defaults",
|
||
"not IE 11",
|
||
"last 2 versions",
|
||
"iOS >= 10",
|
||
"Android >= 6"
|
||
]
|
||
}
|