mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(cli): remove line break
This commit is contained in:
parent
6016a4acf1
commit
ae24b9a448
@ -46,7 +46,7 @@ async function compileDir(dir: string) {
|
|||||||
const files = readdirSync(dir);
|
const files = readdirSync(dir);
|
||||||
|
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
files.map(filename => {
|
files.map((filename) => {
|
||||||
const filePath = join(dir, filename);
|
const filePath = join(dir, filename);
|
||||||
|
|
||||||
if (isDemoDir(filePath) || isTestDir(filePath)) {
|
if (isDemoDir(filePath) || isTestDir(filePath)) {
|
||||||
@ -153,9 +153,9 @@ async function runBuildTasks() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function watchFileChange() {
|
function watchFileChange() {
|
||||||
consola.info('\nWatching file changes...');
|
consola.info('Watching file changes...');
|
||||||
|
|
||||||
chokidar.watch(SRC_DIR).on('change', async path => {
|
chokidar.watch(SRC_DIR).on('change', async (path) => {
|
||||||
if (isDemoDir(path) || isTestDir(path)) {
|
if (isDemoDir(path) || isTestDir(path)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user