remove external

This commit is contained in:
xion 2024-10-15 19:26:51 +08:00
parent 175e685480
commit 42e32adf86
2 changed files with 4 additions and 2 deletions

View File

@ -25,5 +25,5 @@ export default {
declaration: false, declaration: false,
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件 }), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
], ],
external: ['ws'], // external: ['ws'],
}; };

View File

@ -63,7 +63,9 @@ app
}) })
.define(async (ctx) => { .define(async (ctx) => {
const keys = await redis.keys('user:app:*'); const keys = await redis.keys('user:app:*');
await redis.del(...keys); if (keys.length > 0) {
await redis.del(...keys);
}
fs.rmSync(fileStore, { recursive: true }); fs.rmSync(fileStore, { recursive: true });
ctx.body = { ctx.body = {