Skip to content

Commit

Permalink
Make sure that plop updates the exports file
Browse files Browse the repository at this point in the history
  • Loading branch information
larsvanbraam committed Apr 28, 2022
1 parent 75a1c4d commit 3bcf0af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plopfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(plop) {
type: 'append',
path: 'src/index.ts',
pattern: /(\/\* PLOP_ADD_EXPORT \*\/)/gi,
template: `export * from './{{pascalCase hookName}}/{{pascalCase hookName}}';`,
template: `export * from './{{camelCase hookName}}/{{camelCase hookName}}';`,
},
];
},
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* PLOP_ADD_EXPORT */
export * from './useToggle/useToggle';
export * from './useEventListener/useEventListener';
export * from './useKeyboardEvent/useKeyboardEvent';
Expand Down

0 comments on commit 3bcf0af

Please sign in to comment.