diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6c6f1e7..4b8a4c2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -75,8 +75,8 @@ jobs: - name: Ensure version not published if: ${{ steps.version.outputs.publish == 'true' }} run: | - if npm view "timi-web-api@${{ steps.version.outputs.version }}" version > /dev/null 2>&1; then - echo "FAIL: timi-web-api@${{ steps.version.outputs.version }} 已存在于 nexus,请提升 package.json 版本" + if npm view "@timi/web-api@${{ steps.version.outputs.version }}" version > /dev/null 2>&1; then + echo "FAIL: @timi/web-api@${{ steps.version.outputs.version }} 已存在于 nexus,请提升 package.json 版本" exit 1 fi echo "OK: 版本未占用" diff --git a/README.md b/README.md index 6d6885e..f60d157 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# timi-web-api +# @timi/web-api Timi Web 的业务 API、领域类型、用户状态和权限相关能力。 @@ -6,14 +6,14 @@ Timi Web 的业务 API、领域类型、用户状态和权限相关能力。 ## 依赖方向 -本项目是独立的业务能力包。只有需要业务 API、领域类型、用户状态或权限能力的项目才安装 `timi-web-api`;只使用通用组件的项目不需要安装本项目。 +本项目是独立的业务能力包。只有需要业务 API、领域类型、用户状态或权限能力的项目才安装 `@timi/web-api`;只使用通用组件的项目不需要安装本项目。 ```text 只使用通用组件的业务项目 -> timi-tdesign-mobile / timi-tdesign-pc -> @timi/web -需要业务能力的业务项目 -> timi-web-api -> @timi/web +需要业务能力的业务项目 -> @timi/web-api -> @timi/web ``` -`timi-tdesign-mobile` 和 `timi-tdesign-pc` 不依赖 `timi-web-api`。其中的文章、通知组件只约束 `Article`、`Attachment`、`NotifyDetail` 的最小字段,业务对象可以携带自定义字段,并通过上传和资源解析回调接入任意后端。 +`timi-tdesign-mobile` 和 `timi-tdesign-pc` 不依赖 `@timi/web-api`。其中的文章、通知组件只约束 `Article`、`Attachment`、`NotifyDetail` 的最小字段,业务对象可以携带自定义字段,并通过上传和资源解析回调接入任意后端。 ## 目录