Skip to content

Commit

Permalink
Update src/compiler/config/load-config.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Pote <[email protected]>
  • Loading branch information
christian-bromann and alicewriteswrongs authored Mar 11, 2024
1 parent 555b821 commit 8471d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/config/load-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const loadConfig = async (init: LoadConfigInit = {}): Promise<LoadConfigR
configPath = loadedConfigFile.configPath;
unknownConfig.config = { ...loadedConfigFile, ...config };
unknownConfig.config.configPath = configPath;
unknownConfig.config.rootDir = config.rootDir || normalizePath(dirname(configPath));
unknownConfig.config.rootDir = typeof config.rootDir === "string" ? config.rootDir : normalizePath(dirname(configPath));
} else {
// no stencil.config.ts or .js file, which is fine
unknownConfig.config = { ...config };
Expand Down

0 comments on commit 8471d33

Please sign in to comment.