Skip to content

Commit

Permalink
chore(ci): [bot] format code
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 17, 2024
1 parent 3ea6f30 commit 5f3beef
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,23 +417,23 @@ export async function build(_options: Options) {
`Ignoring changes in ${ignored
.map((v) => `"${v}"`)
.join(' | ')}`,
)
)

const expandedWatchPaths = await glob(watchPaths)
const expandedIgnored = await glob(ignored)

if (watchPaths.some(p => p === '.' || p === './')) {
expandedWatchPaths.push('.');
if (watchPaths.some((p) => p === '.' || p === './')) {
expandedWatchPaths.push('.')
}
if (ignored.some(p => p === '.' || p === './')) {
expandedIgnored.push('.');

if (ignored.some((p) => p === '.' || p === './')) {
expandedIgnored.push('.')
}

const watcher = watch(expandedWatchPaths, {
ignoreInitial: true,
ignorePermissionErrors: true,
ignored: p => expandedIgnored.includes(p),
ignored: (p) => expandedIgnored.includes(p),
})
watcher.on('all', async (type, file) => {
file = slash(file)
Expand Down

0 comments on commit 5f3beef

Please sign in to comment.