Skip to content

Commit

Permalink
switched debugger to metalsmith.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
leviwheatcroft authored and webketje committed Dec 3, 2022
1 parent 1db3f53 commit 911ef5b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 143 deletions.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')
const debug = require('debug')('@metalsmith/in-place')
const isUtf8 = require('is-utf8')
const getTransformer = require('./get-transformer')
let debug = console.log

function parseFilepath(filename) {
const isNested = filename.includes(path.sep)
Expand Down Expand Up @@ -134,6 +134,7 @@ function initializeInPlace(options = defaultOptions) {
const settings = Object.assign({}, defaultOptions, options)

return function inPlace(files, metalsmith, done) {
debug = metalsmith.debug('@metalsmith/in-place')
debug('Running with options %O', settings)

// Check whether the pattern option is valid
Expand Down
155 changes: 14 additions & 141 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"release-it": "^15.5.1"
},
"dependencies": {
"debug": "^4.0.0",
"inputformat-to-jstransformer": "^1.2.1",
"is-utf8": "^0.2.1",
"jstransformer": "^1.0.0"
Expand Down

0 comments on commit 911ef5b

Please sign in to comment.