Skip to content

Commit c4f0492

Browse files
committed
🔧 chore(app): 优化配置文件
1 parent baffef6 commit c4f0492

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

codeg.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// 开发期间使用
12
import { defineConfig } from "./dist/index.mjs";
23

34
export default defineConfig({

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"release-it": "^16.1.5",
7272
"simple-git-hooks": "^2.9.0",
7373
"typescript": "^5.1.6",
74-
"unbuild": "^2.0.0-rc.0"
74+
"unbuild": "^2.0.0-rc.0",
75+
"code-genius": "./dist"
7576
},
7677
"dependencies": {
7778
"boxen": "^7.1.1",

src/helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,5 +379,6 @@ export async function loadConfigModule(): Promise<
379379
}
380380

381381
if (!resolvedPath) return;
382-
return (await import(pathToFileURL(resolvedPath).href)).default;
382+
const moduleURL = pathToFileURL(resolvedPath).href;
383+
return (await import(moduleURL)).default;
383384
}

0 commit comments

Comments
 (0)