diff options
author | 2021-11-09 17:59:06 +0000 | |
---|---|---|
committer | 2021-11-09 17:59:06 +0000 | |
commit | 69092fec06b5c63fbce825bca2001e263cf7c968 (patch) | |
tree | a0d5a0ec190913137bd9534f3a5e138edfc200a3 | |
parent | ba38147ccc88db2930d9e15af955ea264d75240e (diff) | |
download | astro-69092fec06b5c63fbce825bca2001e263cf7c968.tar.gz astro-69092fec06b5c63fbce825bca2001e263cf7c968.tar.zst astro-69092fec06b5c63fbce825bca2001e263cf7c968.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/core/config.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index 5f970d60c..84f486512 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -123,11 +123,11 @@ interface LoadConfigOptions { export async function loadConfig(options: LoadConfigOptions): Promise<AstroConfig> { const root = options.cwd ? path.resolve(options.cwd) : process.cwd(); let userConfig: AstroUserConfig = {}; - let userConfigPath: string|undefined; + let userConfigPath: string | undefined; if (options.filename) { userConfigPath = /^\.*\//.test(options.filename) ? options.filename : `./${options.filename}`; - userConfigPath = fileURLToPath(new URL(userConfigPath, `file://${root}/`)) + userConfigPath = fileURLToPath(new URL(userConfigPath, `file://${root}/`)); } // Automatically load config file using Proload // If `userConfigPath` is `undefined`, Proload will search for `astro.config.[cm]?[jt]s` |