Skip to content

Commit

Permalink
feat: require replacement method in scope of projects' root
Browse files Browse the repository at this point in the history
BREAKING CHANGE: from now on replatement file path should be relative to projects' root

Signed-off-by: Jakub Freisler <jakub@frsource.org>
  • Loading branch information
FRSgit committed Dec 7, 2022
1 parent 9b5f06f commit 69fc050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ require('get-stdin')().then((stdin) => {
outputWriteOptions: argv['o-write-opts'],
outputJoinString: argv['o-join-str'],
needle: new RegExp(argv.needle, argv.f),
replacement: argv.r ? require(argv.replacement) : argv.replacement
replacement: argv.r ? require(require('path').resolve(argv.replacement)) : argv.replacement
})

if (argv.stdout) {
Expand Down

0 comments on commit 69fc050

Please sign in to comment.