Skip to content

Commit

Permalink
make it look like the old code
Browse files Browse the repository at this point in the history
  • Loading branch information
r4zendev committed Sep 27, 2024
1 parent 0a3f279 commit f9ab65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ function run(transformFile, paths, options) {
os.tmpdir(),
`jscodeshift-${crypto.randomBytes(8).toString('hex')}` + ext
);
remoteScriptPath = path;

fs.writeFile(
path,
contents,
"utf8",
(err) => {
if (err) return reject(err);
remoteScriptPath = path;
transform(path).then(resolve, reject);
}
);
Expand Down

0 comments on commit f9ab65d

Please sign in to comment.