Skip to content

Commit 06a8052

Browse files
committed
Less inclusive watch regexp
1 parent 5d40645 commit 06a8052

File tree

4 files changed

+1239
-1829
lines changed

4 files changed

+1239
-1829
lines changed

findTags.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ module.exports = function findTags (filename, source) {
77
const ast = parse(source, {
88
sourceType: 'unambiguous',
99
plugins: [
10-
'jsx',
11-
'classProperties',
12-
['decorators', { decoratorsBeforeExport: true }]
10+
'jsx'
1311
]
1412
})
1513
const result = []

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ module.exports = async (options = {}) => {
6060
await app.run(await filesToTag(), options)
6161

6262
if (options.watch) {
63-
chokidar.watch(process.cwd(), {
63+
chokidar.watch('**/*.(js|jsx|ejs|mjs)', {
6464
ignored: /node_modules/,
65-
cwd: process.cwd(),
6665
ignoreInitial: true
6766
}).on('all', async (event, path) => {
6867
debug('%s %s', event, path)

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
"ci": "standard && yarn test"
1212
},
1313
"devDependencies": {
14-
"chai": "^4.1.2",
15-
"mocha": "^5.1.0",
16-
"standard": "^11.0.1"
14+
"chai": "^4.2.0",
15+
"mocha": "^7.1.0",
16+
"standard": "^14.3.1"
1717
},
1818
"dependencies": {
19-
"@babel/parser": "^7.3.2",
20-
"@babel/traverse": "^7.2.3",
21-
"chokidar": "^2.1.1",
22-
"debug": "^3.1.0",
23-
"fs-extra": "^6.0.1",
24-
"glob-to-regexp": "^0.4.0",
19+
"@babel/parser": "^7.8.7",
20+
"@babel/traverse": "^7.8.6",
21+
"chokidar": "^3.3.1",
22+
"debug": "^4.1.1",
23+
"fs-extra": "^8.1.0",
24+
"glob-to-regexp": "^0.4.1",
2525
"lowscore": "^1.17.0",
26-
"yargs": "^11.0.0"
26+
"yargs": "^15.3.0"
2727
},
2828
"standard": {
2929
"env": [

0 commit comments

Comments
 (0)