-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
Am I doing something wrong here?
File structure:
test/
|- node_modules/
|- text.txt
|- test2.txt
Code:
const replace = require('replace-in-file')
var opts = {
files: [
'test/**/*',
'!test/node_modules/**/*'
],
from: [
/<<TEST_VAR>>/g
],
to: [
'replaced'
]
}
return replace(opts)
.catch(function (e) { console.log(e) })Results:
Error: No files match the pattern: !test/node_modules/**/*
Metadata
Metadata
Assignees
Labels
No labels