We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7056af commit 53afca9Copy full SHA for 53afca9
1 file changed
lib/index.js
@@ -99,11 +99,12 @@ module.exports = class SpikeUtils {
99
100
/**
101
* Boolean return whether a file matches any of the configured ignores.
102
- * @param {String} file - absolute file path
+ * @param {String} file - absolute or relative file path
103
* @return {Boolean} whether the file is ignored or not
104
*/
105
isFileIgnored (file) {
106
- return micromatch.any(file, this.conf.spike.ignore)
+ const f = new File(this.conf.context, file)
107
+ return micromatch.any(f.absolute, this.conf.spike.ignore)
108
}
109
110
0 commit comments