Browse Source

fix: dotenv run through import

Sv443 1 năm trước cách đây
mục cha
commit
9cd9451341
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/tools/post-build.ts

+ 1 - 2
src/tools/post-build.ts

@@ -3,7 +3,7 @@ import { dirname, join, relative } from "node:path";
 import { fileURLToPath } from "node:url";
 import { randomUUID } from "node:crypto";
 import { exec } from "node:child_process";
-import dotenv from "dotenv";
+import "dotenv/config";
 import { outputDir as rollupCfgOutputDir, outputFile as rollupCfgOutputFile } from "../../rollup.config.mjs";
 import locales from "../../assets/locales.json" assert { type: "json" };
 import pkg from "../../package.json" assert { type: "json" };
@@ -28,7 +28,6 @@ const buildTs = Date.now();
 const buildUuid = randomUUID();
 
 const { env, exit } = process;
-dotenv.config();
 
 type CliArg<TName extends keyof Required<RollupArgs>> = Required<RollupArgs>[TName];