Skip to content

Commit 5deb5d1

Browse files
author
winjo.gwj
committed
chore: 修复 ci build 错误
1 parent 252c096 commit 5deb5d1

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/integrations/src/antcode-cr/antcode/fetch/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function checkStatus(response: any, charsetName?: string) {
7979
window.open('http://code.test.alipay.net/');
8080
return;
8181
}
82-
let data = null;
82+
let data: any = null;
8383
const contentType = response.headers?.get('content-type');
8484
if (contentType?.includes('application/json')) {
8585
try {

packages/integrations/src/antcode-cr/mock-props/requests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { request } from '../antcode/fetch';
22

3+
// @ts-ignore
34
import {
45
FileAction,
56
FileActionHeader,
67
} from '../../src/modules/antcode-service/interfaces/file-action';
8+
// @ts-ignore
79
import { AntcodeEncodingType } from '../../src/modules/antcode-service/base';
8-
10+
// @ts-ignore
911
import { LSIFRange } from '../../src/modules/antcode-service/interfaces/lsif';
1012

1113
export const getFileContent = (projectId: number) => (filepath: string, ref: string) => {

scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ invoke(async () => {
2727
}
2828
signale.success('复制成功');
2929
} catch (err) {
30-
console.error(err);
31-
signale.error('编译失败');
30+
signale.error('编译失败', err);
31+
throw err;
3232
}
3333
});

0 commit comments

Comments
 (0)