Skip to content

Commit 2b74239

Browse files
committed
fix: local config file load error
1 parent a47ba11 commit 2b74239

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function wrapNoopResolver<T, R = T>(value: Resolver<T, R>): Resolver<T, R> {
112112
/** @internal */
113113
export async function getConfig(config: ConfigLoadConfig): Promise<ScaffoldConfigFile> {
114114
const { config: configFile, ...logConfig } = config as Required<typeof config>
115-
const url = new URL(configFile)
115+
const url = configFile.includes("://") ? new URL(configFile) : new URL(`file://${configFile}`)
116116

117117
if (url.protocol === "file:") {
118118
log(logConfig, LogLevel.Info, `Loading config from file ${configFile}`)

0 commit comments

Comments
 (0)