Update README.md

This commit is contained in:
Jonathan Clem authored and GitHub committed 2020-07-17 10:25:39 -04:00
1 parent c19d6ba8b3
commit 62c8044fd6
1 file changed
+2 -1
+2 -1
View File
@@ -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: