Skip to content

Commit eb47cf0

Browse files
committed
fix: ensure match is an array of directory paths and await run function
1 parent 17bd07a commit eb47cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
8888
let sources = CoCreateConfig.sources;
8989
let configDirectoryPath = path.dirname(configPath);
9090

91-
if (match && !Array.isArray(match)) match = [match];
91+
if (match && !Array.isArray(match)) match = [path.dirname(match)];
9292
else if (!match) match = [];
9393

9494
let config = await Config(
@@ -527,5 +527,5 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
527527
}
528528
}
529529

530-
run();
530+
await run();
531531
};

0 commit comments

Comments
 (0)