Skip to content

Commit daa2a3a

Browse files
committed
fix: if directories or source is undefined
1 parent 56040a6 commit daa2a3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ const mimeTypes = {
7878
}
7979

8080
module.exports = async function file(CoCreateConfig, configPath) {
81-
let { directories, sources } = CoCreateConfig;
81+
let directories = CoCreateConfig.directories
82+
let sources = CoCreateConfig.sources
83+
8284
let config = await Config({
8385
organization_id: {
8486
prompt: 'Enter your organization_id: '

0 commit comments

Comments
 (0)