diff --git a/packages/react-atlas/src/codegen.js b/packages/react-atlas/src/codegen.js
index <HASH>..<HASH> 100644
--- a/packages/react-atlas/src/codegen.js
+++ b/packages/react-atlas/src/codegen.js
@@ -252,7 +252,7 @@ function createComponentsFromConfig() {
 function deleteFolder(path) {
   if( fs.existsSync(path) ) {
     fs.readdirSync(path).forEach(function(file,index){
-      let curPath = path + "/" + file;
+      var curPath = path + "/" + file;
       if(fs.lstatSync(curPath).isDirectory()) { // recurse
         deleteFolder(curPath);
       } else {
@@ -261,7 +261,7 @@ function deleteFolder(path) {
     });
     fs.rmdirSync(path);
   }
-}
+};
 
 function createComponentDirectories() {
   const componentDirconfigPath = __dirname + "/components";
Updating codegen.js to most recent version