LeaVerou / brep

Write batch find & replace scripts that transform files with a simple human-readable syntax
12 stars 0 forks source link

Pass `options` to every transformation #16

Closed DmitrySharabin closed 1 month ago

DmitrySharabin commented 1 month ago

Otherwise, there is no way to apply replacements to a subset of files.

I wonder if it ever works. 🤔

There is another place where we call transform(): https://github.com/LeaVerou/brep/blob/312f4436666ecace4b894f66536b63f65c5aef48/src/replacer.js#L95 Should we also pass options in this case?

LeaVerou commented 1 month ago

Otherwise, there is no way to apply replacements to a subset of files.

I wonder if it ever works. 🤔

There is another place where we call transform():

https://github.com/LeaVerou/brep/blob/312f4436666ecace4b894f66536b63f65c5aef48/src/replacer.js#L95

Should we also pass options in this case?

Yes!