Skip to content

Commit c3a29e3

Browse files
committed
improve: Improved debug logging
Signed-off-by: Jaid <jaid.jsx@gmail.com>
1 parent 2dbcc63 commit c3a29e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import appRootPath from "app-root-path"
44
import createDebug from "debug"
5-
import {omit, pick} from "lodash-es"
5+
import {omit} from "lodash-es"
66
import {readPackageSync} from "read-pkg"
77

88
import generateWebpackConfig from "./generateWebpackConfig.js"
@@ -79,7 +79,10 @@ const configure = options => {
7979
normalize: true,
8080
})
8181
debug("Pkg data: %o", pkg)
82-
} catch {
82+
} catch (error) {
83+
debug("No package.json found: %s", error)
84+
debug("options.packageRoot: %o", options.packageRoot)
85+
debug("appRootPath: %o", String(appRootPath))
8386
pkg = {}
8487
}
8588
const subPackages = options?.subPackages

0 commit comments

Comments
 (0)