Skip to content

Commit

Permalink
Renames default export to inPlace for better intellisense
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Jul 17, 2023
1 parent 287dda6 commit a87f265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function normalizeOptions(transform) {
* @param {Options} options
* @returns {import('metalsmith').Plugin}
*/
function initializeInPlace(options = {}) {
function inPlace(options = {}) {
let transform

return async function inPlace(files, metalsmith, done) {
Expand Down Expand Up @@ -187,4 +187,4 @@ function initializeInPlace(options = {}) {
}
}

export default initializeInPlace
export default inPlace

0 comments on commit a87f265

Please sign in to comment.