mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
chore(cli): remove line break
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user