From a58216a4b9815f5f5ab21f0440bd0b4fd1779767 Mon Sep 17 00:00:00 2001 From: Elon Volo <63563814+ElonVolo@users.noreply.github.com> Date: Fri, 9 Dec 2022 09:40:36 -0500 Subject: [PATCH] Fixing JS programmatic docs per #532 Fixing an error in the docs logged in #532 that caused transform.js not be found. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 039352ee..7c3cc722 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,9 @@ directory). The next section explains the structure of the transform module. ```js const {run: jscodeshift} = require('jscodeshift/src/Runner') +const path = require('node:path'); -const transformPath = 'transform.js' +const transformPath = path.resolve('transform.js') const paths = ['foo.js', 'bar'] const options = { dry: true,