Merge pull request #67 from j-ulrich/j-ulrich-absolute-path-note

Adds note that absolute path is required
This commit is contained in:
Jonathan Clem 2020-07-17 10:26:39 -04:00 committed by GitHub
commit 83107c8695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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