const fs = require('fs');

const { cleanPath } = require("../utilities/utils");
function autoReload(){
var tmpFolder =cleanPath(process.cwd()+'/.tmp')
var pidFile = tmpFolder+'/.pid'
    if(!fs.existsSync(tmpFolder)){
    fs.mkdirSync(tmpFolder)
    }

    if(!fs.existsSync(pidFile)){
        fs.writeFileSync(pidFile,'',()=>{})
    }

}

module.exports ={
    autoReload
}