From 9e1ee349a2eecd0497125346f035894f888d6fbc Mon Sep 17 00:00:00 2001 From: aperron Date: Wed, 9 Jun 2021 11:46:21 +0200 Subject: [PATCH] fix components folder empty --- src/importer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/importer.ts b/src/importer.ts index 3414c14..014787a 100644 --- a/src/importer.ts +++ b/src/importer.ts @@ -94,7 +94,7 @@ export const importFiles = (files: string[], results:IStrapiModel[] = [], merge: new Promise((resolve, reject) => { let pending = files.length; - + if(files.length === 0) resolve(results); files.forEach(f => { try {