Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Clem authored and GitHub committed Jul 17, 2020
1 parent c19d6ba commit 62c8044
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 @@ -202,7 +202,8 @@ jobs:
const scriptPath = path.resolve('./path/to/script.js')
console.log(require(scriptPath)({context}))
```
_(Note that the script path given to `require()` must be an absolute path in this case.)_

*(Note that the script path given to `require()` must be an absolute path in this case, hence the call to `path.resolve()`.)*

And then export a function from your module:

Expand Down

0 comments on commit 62c8044

Please sign in to comment.