Fix globbing, update metadata, update ncc (#4)
* Enable minimatch dot option It's not a default globbing behavior, however for our use-case is much more convenient to match those files. * Update README and package.json
This commit is contained in:
@@ -80,4 +80,14 @@ describe('matching tests', () => {
|
||||
const match = filter.match(['test/test.js'])
|
||||
expect(match.any).toBeTruthy()
|
||||
})
|
||||
|
||||
test('globbing matches path where file or folder name starts with dot', () => {
|
||||
const yaml = `
|
||||
dot:
|
||||
- "**/*.js"
|
||||
`
|
||||
const filter = new Filter(yaml)
|
||||
const match = filter.match(['.test/.test.js'])
|
||||
expect(match.dot).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user