diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5a508ea07c..46e2100a18 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,7 +25,7 @@ jobs: - name: Install run: yarn - name: Build - run: yarn build --listFiles + run: yarn build --listEmittedFiles - name: Lint run: yarn lint - name: Unit Test diff --git a/packages/koishi-utils/src/cqCode.ts b/packages/koishi-utils/src/cqCode.ts index 5d2ad502ed..1ce703fa5a 100644 --- a/packages/koishi-utils/src/cqCode.ts +++ b/packages/koishi-utils/src/cqCode.ts @@ -26,7 +26,7 @@ namespace CQCode { } export function stringify (type: string, data: CQCodeData) { - if (type === 'text') return data.text + if (type === 'text') return '' + data.text let output = '[CQ:' + type for (const key in data) { if (data[key]) output += `,${key}=${escape(data[key], true)}`