diff --git a/plop/utility/README.md.hbs b/plop/utility/README.md.hbs index 6bebcd45b9..ac0d056e81 100644 --- a/plop/utility/README.md.hbs +++ b/plop/utility/README.md.hbs @@ -1,13 +1,13 @@ -# @zag-js/{{packageName}} +# @zag-js/{{name}} {{description}} ## Installation ```sh -yarn add @zag-js/{{packageName}} +yarn add @zag-js/{{name}} # or -npm i @zag-js/{{packageName}} +npm i @zag-js/{{name}} ``` ## Contribution diff --git a/plop/utility/package.json.hbs b/plop/utility/package.json.hbs index 6c0fb3857a..40c256df73 100644 --- a/plop/utility/package.json.hbs +++ b/plop/utility/package.json.hbs @@ -1,15 +1,15 @@ { - "name": "@zag-js/{{packageName}}", + "name": "@zag-js/{{name}}", "version": "0.0.0", "description": "{{description}}", - "keywords": ["js", "utils", "{{packageName}}"], + "keywords": ["js", "utils", "{{name}}"], "author": "Segun Adebayo ", "homepage": "https://github.com/chakra-ui/zag#readme", "license": "MIT", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", - "repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/{{packageName}}", + "repository": "https://github.com/chakra-ui/zag/tree/main/packages/utilities/{{name}}", "sideEffects": false, "files": ["dist/**/*"], "scripts": { diff --git a/plopfile.js b/plopfile.js index 2161b96728..cf27d6639e 100644 --- a/plopfile.js +++ b/plopfile.js @@ -29,7 +29,7 @@ module.exports = function main(plop) { templateFiles: "machine/**", destination: `../packages/machines/{{dashCase machine}}`, base: "machine/", - data: { machine, packageName: machine }, + data: { machine, name: machine }, abortOnFail: true, }) @@ -60,13 +60,10 @@ module.exports = function main(plop) { actions.push({ type: "addMany", - templateFiles: "util-template/**", + templateFiles: "utility/**", destination: `../packages/utilities/${name}`, - base: "util-template/", - data: { - description, - packageName: name, - }, + base: "utility/", + data: { description, name }, abortOnFail: true, })