From f9ab65d6be0d0aaea323dbd5f0ec856c3f03f51e Mon Sep 17 00:00:00 2001 From: Sasha Mysak Date: Sat, 28 Sep 2024 00:05:53 +0200 Subject: [PATCH] make it look like the old code --- src/Runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runner.js b/src/Runner.js index ca00a888..682c3d6a 100644 --- a/src/Runner.js +++ b/src/Runner.js @@ -194,7 +194,6 @@ function run(transformFile, paths, options) { os.tmpdir(), `jscodeshift-${crypto.randomBytes(8).toString('hex')}` + ext ); - remoteScriptPath = path; fs.writeFile( path, @@ -202,6 +201,7 @@ function run(transformFile, paths, options) { "utf8", (err) => { if (err) return reject(err); + remoteScriptPath = path; transform(path).then(resolve, reject); } );