我在项目中创建了package.json文件但是上传不上去,报错

- 发布:2023-05-23 14:50
- 更新:2023-05-25 14:53
- 阅读:167

一只会飞的鸟 (作者)
{
"id": "yingxuanwangluo-music-1",
"displayName": "音乐",
"version": "1.0.0",
"description": "插件描述",
"keywords": [
"音乐",
"播放",
"录音",
"听歌",
"歌曲"
],
"repository": "",
"engines": {
"HBuilderX": "^3.4.7"
},
"dcloudext": {
"type": "unicloud-template-project",
"sale": {
"regular": {
"price": "9999.00"
},
"sourcecode": {
"price": "99999.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"scripts": {
"init": ""
},
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"App": {
"app-vue": "y",
"app-nvue": "y"
},
"H5-mobile": {
"Safari": {},
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "y",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y"
},
"快应用": {
"华为": "y",
"联盟": "y"
}
}
}
},
"dependencies": {
"md5": "^2.3.0"
}
}

一只会飞的鸟 (作者)
加密文件路径有问题?怎么还是找不到
-
-
一只会飞的鸟 (作者)
回复 DCloud_云服务_moyang: 加密的js文件,里面引入了别的依赖后,上传插件后,别人下载这个插件使用,这个加密后js报错?只能是纯净的js?不能引入依赖或者暴露出去?
2023-05-23 17:27

一只会飞的鸟 (作者)
加密上传后,使用插件报错。。。不加密的话可以正常执行,加密后报错
-
-
一只会飞的鸟 (作者)
回复 DCloud_云服务_moyang: 我是把云端一体项目,发布到插件市场,项目中的js文件已经加密了,但是我从插件市场试用导入的时候还是报错了,就是上面那个
2023-05-25 08:37
-
一只会飞的鸟 (作者)
我从插件市场试用导入后,试用hbuilderx运行报错,就是上面那个,不加密的js源文件可以正常运行,加密后上传插件市场后,从插件市场导入后运行报错
2023-05-25 08:39
-
-
-
-
-
-
-
一只会飞的鸟 (作者)
回复 DCloud_云服务_moyang: 只能加密 "pages/js/index.js",
"pages/js/search.js", 这个两个js文件,别的都运行不起来2023-05-25 14:17
-

一只会飞的鸟 (作者)
导入后的package.json 结构
{
"id": "yingxuanwangluo-music-1",
"displayName": "音乐",
"version": "1.0.1",
"description": "插件描述",
"keywords": [
"音乐",
"播放",
"录音",
"听歌",
"歌曲"
],
"repository": "",
"engines": {
"HBuilderX": "^3.4.7"
},
"dcloudext": {
"type": "unicloud-template-project",
"sale": {
"regular": {
"price": "99999.00"
},
"sourcecode": {
"price": "999999.00"
}
},
"contact": {
"qq": ""
},
"declaration": {
"ads": "无",
"data": "无",
"permissions": "无"
},
"npmurl": ""
},
"uni_modules": {
"scripts": {
"init": ""
},
"dependencies": [],
"encrypt": [
"pages/js/index.js",
"pages/js/search.js",
"store/theme.js",
"utils/js/app.js",
"utils/js/getStyle.js",
"app.config.js",
"main.js",
"package.js",
"uni.promisify.adaptor.js",
"vite.config.js"
],
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
},
"client": {
"App": {
"app-vue": "y",
"app-nvue": "y"
},
"H5-mobile": {
"Safari": "y",
"Android Browser": "y",
"微信浏览器(Android)": "y",
"QQ浏览器(Android)": "y"
},
"H5-pc": {
"Chrome": "y",
"IE": "y",
"Edge": "y",
"Firefox": "y",
"Safari": "y"
},
"小程序": {
"微信": "y",
"阿里": "y",
"百度": "y",
"字节跳动": "y",
"QQ": "y"
},
"快应用": {
"华为": "y",
"联盟": "y"
}
}
},
"extends" : []
},
"dependencies": {
"md5": "^2.3.0"
}
}