@@ -3,7 +3,7 @@ import yamlParser from 'js-yaml';
33import path from 'path' ;
44import _ from 'lodash' ;
55import fs from 'fs' ;
6- import validate from './validator' ;
6+ // import validate from './validator';
77
88const workingDir = 'tmp' ;
99
@@ -110,7 +110,6 @@ function rmDir(dir, rmSelf) {
110110async function cleanupFiles ( workingDir ) {
111111
112112try {
113-
114113const gitModule = simpleGit ( __dirname ) ;
115114
116115await gitModule . subModule ( [ 'deinit' , '-f' , workingDir ] ) ;
@@ -120,13 +119,9 @@ async function cleanupFiles(workingDir) {
120119rmDir ( workingDir ) ;
121120
122121return true ;
123-
124122} catch ( error ) {
125-
126123return false ;
127-
128124}
129-
130125}
131126
132127/**
@@ -246,12 +241,15 @@ async function build({ repo, codeBranch, setupBranch, isLocal }) {
246241}
247242}
248243
249- const isValid = validate ( config ) ;
244+ // const isValid = validate(config);
250245
251- if ( ! isValid ) return validate . errors ;
246+ // if (!isValid) {
247+ // console.log(JSON.stringify(validate.errors, null, 2));
248+ // return;
249+ // }
252250
253251return config ;
254252
255253}
256254
257- module . exports = build ;
255+ export default build ;