Commit 46a5b4d1 by 杨周龙

修复错误目录设置

1 parent 3338e5b4
const fs = require('fs')
const { join } = require('path')
const version = `V${new Date().getMonth() + 1}-${new Date().getDate()} ${new Date().getHours()}.${new Date().getMinutes()}.${new Date().getSeconds()}`
const content = `
const version = '${version}'
export default version
`
fs.writeFile(join(__dirname, './src/version.js'), content, { encoding: 'utf-8' }, () => {
console.log('创建版本成功,当前版本是' + version)
})
/* eslint-disable no-console */
console.log('\x1B[31m', 'eslint 不再输出报表txt文件')
console.log('\x1B[34m', '\n\n 如需获取报表文件请运行')
console.log('\x1B[32m', '\n npm run lint-rep')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!