Skip to content

Commit

Permalink
Fixing JS programmatic docs per #532
Browse files Browse the repository at this point in the history
Fixing an error in the docs logged in #532 that caused transform.js not be found.
  • Loading branch information
ElonVolo authored Dec 9, 2022
1 parent 7e3afb5 commit a58216a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a58216a

Please sign in to comment.