Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Apr 25, 2024
1 parent c91b83a commit c72b40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core
Submodule core updated from 2edfc1 to 853c77
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import os from 'node:os';
import fs from 'node:fs';

const external = ['silk-wasm', 'ws', 'express', 'uuid', 'fluent-ffmpeg', 'sqlite3', 'log4js',
'qrcode-terminal', 'MoeHook'];
'qrcode-terminal', 'MoeHoo'];

const nodeModules = [...builtinModules, builtinModules.map(m => `node:${m}`)].flat();
// let nodeModules = ["fs", "path", "events", "buffer", "url", "crypto", "fs/promise", "fsPromise", "os", "http", "net"]
Expand All @@ -37,7 +37,7 @@ const baseConfigPlugin: PluginOption[] = [
{ src: './src/onebot11/onebot11.json', dest: 'dist/config/' },
{ src: './package.json', dest: 'dist' },
{ src: './README.md', dest: 'dist' },
{ src: './src/core.lib/MoeHook.node', dest: 'dist' },
{ src: './src/core.lib/MoeHoo.node', dest: 'dist' },
...(startScripts.map((startScript) => {
return { src: startScript, dest: 'dist' };
})),
Expand Down

0 comments on commit c72b40a

Please sign in to comment.