Skip to content

Commit 01058ef

Browse files
committed
feat(devDeps): add devDependencies
useful metric to show
1 parent d0ebb97 commit 01058ef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

formatPkg.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export default function formatPkg(pkg) {
5858
}
5959

6060
const dependencies = cleaned.dependencies || {};
61+
const devDependencies = cleaned.devDependencies || {};
6162
const concatenatedName = cleaned.name.replace(/[-/@_.]+/g, '');
6263

6364
const rawPkg = {
@@ -71,6 +72,7 @@ export default function formatPkg(pkg) {
7172
version,
7273
description: cleaned.description ? cleaned.description : null,
7374
dependencies,
75+
devDependencies,
7476
originalAuthor: cleaned.author,
7577
githubRepo,
7678
gitHead,

0 commit comments

Comments
 (0)