Skip to content

Commit

Permalink
fix: config folder unexistant
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jun 25, 2020
1 parent fa6184d commit 984e2a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const loadConfiguration = (
): ConfigrationResult | undefined => {
const folder = configFolder ?? getConfigurationArg(args);
const configPath = folder ? path.resolve(baseFolder, folder) : baseFolder;
const allFiles = fs.readdirSync(configPath);
const allFiles = fs.existsSync(configPath) ? fs.readdirSync(configPath) : [];
const buildConfigFile = allFiles.find(file =>
buildConfigFileNames.includes(file.toLowerCase()),
);
Expand Down
1 change: 1 addition & 0 deletions integrations/gatsby-theme-stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"typings": "dist/index.d.ts",
"files": [
"dist/",
"src/",
"package.json",
"README.md",
"gatsby-config.js",
Expand Down

0 comments on commit 984e2a6

Please sign in to comment.