Skip to content

Commit

Permalink
Merge pull request #67 from j-ulrich/j-ulrich-absolute-path-note
Browse files Browse the repository at this point in the history
Adds note that absolute path is required
  • Loading branch information
Jonathan Clem authored and GitHub committed Jul 17, 2020
2 parents 1ba1e95 + 603dfa3 commit 83107c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ jobs:
console.log(require(scriptPath)({context}))
```

*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:

```javascript
Expand Down

0 comments on commit 83107c8

Please sign in to comment.