diff --git a/README.md b/README.md index 9694e62..33cac29 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,10 @@ Then, you can add the following code to your `plopfile.{js,mjs}`: // plopfile.js /** @param {import('plop').NodePlopAPI} plop */ -default async function config(plop) { +async function config(plop) { await plop.load('@cli-toolbox/project') } + module.exports = config ``` diff --git a/packages/project/README.md b/packages/project/README.md index 66a03a5..a297d2b 100644 --- a/packages/project/README.md +++ b/packages/project/README.md @@ -30,9 +30,10 @@ Then, you can add the following code to your `plopfile.{js,mjs}`: // plopfile.js /** @param {import('plop').NodePlopAPI} plop */ -default async function config(plop) { +async function config(plop) { await plop.load('@cli-toolbox/project') } + module.exports = config ```