🐛 [Bug]: 出码时平台项目的版本号与出码的版本号不一致的问题,导致项目无法下载依赖并启动
Environment
google与edge
Version
v16.20.2
Version
不知道如何查看最新稳定版
Link to minimal reproduction
https://github.com/opentiny/tiny-engine
Step to reproduce
在低码平台中openTiny的版本为3.16.0
但是出码的版本变为了3.11.2
What is expected
平台版本与出码版本一致
What is actually happening
平台版本与出码版本不一致
What is your project name
tiny-engine
Any additional comments (optional)
No response
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: The version number of the platform project is inconsistent with the version number when the code is generated, resulting in the project being unable to download dependencies and start
TinyEngine 的组件依赖版本与物料依赖版本无关。物料出码的版本是根据物料配置的版本进行出码。
比如在 mockServer 中,实际出码的版本以 mockServer/src/mock/get/app-center/v1/apps/schema/918.json 路径中的 componentsMap 值为准。
比如:
{
"componentsMap": [
{
"componentName": "TinyCarouselItem",
"package": "@opentiny/vue",
"exportName": "CarouselItem",
"destructuring": true,
"version": "3.16.0"
}
]
}
则生成出码写入到 package 中的依赖版本则为 3.16.0
@yao521521
Bot detected the issue body's language is not English, translate it automatically.
The component dependency version of TinyEngine has nothing to do with the material dependency version. The version of the material that is coded is coded based on the version of the material configuration.
For example, in mockServer, the actual coded version is based on the componentsMap value in the mockServer/src/mock/get/app-center/v1/apps/schema/918.json path.
for example:
{
"componentsMap": [
{
"componentName": "TinyCarouselItem",
"package": "@opentiny/vue",
"exportName": "CarouselItem",
"destructuring": true,
"version": "3.16.0"
}
]
}
Then the dependency version generated and written into the package is 3.16.0
@yao521521