mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-14 04:33:05 +00:00
Updated bot source
This commit is contained in:
parent
3a6a2763f8
commit
0dd6702e33
19 changed files with 247 additions and 20 deletions
|
@ -31,7 +31,7 @@ const CompileToTargetError = {
|
|||
|
||||
export const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
||||
export const target_directory_path = path.join(__dirname, "../target/");
|
||||
export const target_file_name = "_.js";
|
||||
export const target_file_name = "_.cjs";
|
||||
export const target_path = path.join(target_directory_path, target_file_name);
|
||||
export const package_path = path.join(__dirname, "../package.json");
|
||||
|
||||
|
@ -129,6 +129,8 @@ export function compile_to_target() {
|
|||
bundle: true,
|
||||
entryPoints: [ package_json.main ],
|
||||
outfile: target_path,
|
||||
platform: "node"
|
||||
platform: "node",
|
||||
format: "cjs",
|
||||
external: [ "deasync" ]
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue