Skip to content

Commit

Permalink
build: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain committed Oct 9, 2024
1 parent 3d0213d commit 308031b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const tscBuild = task({

export const build = task({
name: 'build',
dependencies: [tscBuild, gen],
dependencies: [clean, tscBuild, gen],
run: async () => {
await runTask(buildNode);
await runTask(buildCfWorker);
Expand Down Expand Up @@ -124,6 +124,14 @@ export const devWorkerPreview = task({
},
});

export const clean = task({
name: 'clean',
run: async () => {
await shell('rm -rf libs/*/lib');
await shell('lerna run clean');
},
});

export default task({
name: 'npm script',
hiddenFromTaskList: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"extract-fixtures": "tsx scripts/extract-webhook-example.ts",
"generate:json-schemas": "node scripts/generate-json-schemas-all.mjs",
"postinstall": "yarn build:libs",
"clean": "rm -rf libs/*/lib"
"clean": "hereby"
},
"dependencies": {
"@hono/node-server": "^1.11.1",
Expand Down
2 changes: 1 addition & 1 deletion src/im/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { DingKVManager, DingUserKVManager } from '@/kv/ding';
import { IBotAdapter as _IBotAdapter } from '@opensumi/dingtalk-bot/lib/bot/adapter';
import { IBotAdapter as _IBotAdapter } from '@opensumi/dingtalk-bot';

export interface IBotAdapter extends _IBotAdapter {
kvManager: DingKVManager;
Expand Down

0 comments on commit 308031b

Please sign in to comment.