Commit f4745936 by Jason Zhou

log optimization

parent 87b60b32
...@@ -23,11 +23,21 @@ const preserveOldFiles = () => { ...@@ -23,11 +23,21 @@ const preserveOldFiles = () => {
const restoreOldFiles = () => { const restoreOldFiles = () => {
log.title('📤 Restore previous configs') log.title('📤 Restore previous configs')
log.title(
`⚠️ Make sure you have execed ${chalk.bgGreen.black(
'wildcat run'
)}, or it may go wrong`
)
BACKUP_FILES.forEach(file => { BACKUP_FILES.forEach(file => {
log.item(`Restoring ${file} ...`) log.item(`Restoring ${file} ...`)
const basename = path.basename(file) const basename = path.basename(file)
fs.copyFileSync(`${__dirname}/backups/${basename}`, file) fs.copyFileSync(`${__dirname}/backups/${basename}`, file)
}) })
log.title(
`⚠️ Run ${chalk.bgGreen.black(
'npm update'
)} yourself to reset node_mouduls`
)
} }
const updateConfigFiles = (mode = 'chill') => { const updateConfigFiles = (mode = 'chill') => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment