diff --git a/README.md b/README.md index aee2976..55c9db1 100644 --- a/README.md +++ b/README.md @@ -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: