Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Commit

Permalink
build: use anymatch
Browse files Browse the repository at this point in the history
it is used by chokidar so make a lot of sense use the same depenendcy
  • Loading branch information
Kikobeats committed Jun 6, 2019
1 parent 38f6f40 commit 7a346da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/watch/restart-server.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const clearModule = require('clear-module')
const picomatch = require('picomatch')
const anymatch = require('anymatch')
const path = require('path')

module.exports = ({
Expand Down Expand Up @@ -32,7 +32,7 @@ module.exports = ({
}
}

const matchers = picomatch(ignored)
const matchers = anymatch(ignored)

toDelete = toDelete
.filter(filename => !matchers(path.basename(filename)))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"service"
],
"dependencies": {
"anymatch": "~3.0.2",
"boxen": "~4.0.0",
"chalk": "~2.4.0",
"chokidar": "~3.0.0",
Expand All @@ -59,7 +60,6 @@
"log-update": "~3.2.0",
"meow": "~5.0.0",
"ora": "~3.4.0",
"picomatch": "~2.0.7",
"pretty-error": "~2.1.1",
"time-stamp": "~2.2.0",
"update-notifier": "~3.0.0"
Expand Down

0 comments on commit 7a346da

Please sign in to comment.