Skip to content

Commit

Permalink
4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Mar 5, 2023
1 parent 35123b0 commit eceab5e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog

* 4.0.1
* fixed peerDependencies

* 4.0.0
* refactor

Expand Down
9 changes: 6 additions & 3 deletions lib/index.js
Expand Up @@ -81,8 +81,11 @@ class NMLS {

// module subs
infoList.forEach((moduleInfo) => {
// dependencies group
const groups = this.getModuleGroups(moduleInfo);
// dependencies group, add dev for link
const groups = this.getModuleGroups(moduleInfo, moduleInfo.isLink);
if (moduleInfo.isLink && !this.options.prod) {
Util.log(`[nmls] "${EC.yellow(moduleInfo.name)}" is a symbolic link, only calculate prod dependencies`);
}
if (groups) {
groups.forEach((group) => {

Expand Down Expand Up @@ -194,7 +197,7 @@ class NMLS {
}

const packagesInfo = {
name: 'packages',
name: 'packages in workspaces',
version: '',
size: '',
files: '',
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "nmls",
"version": "4.0.0",
"version": "4.0.1",
"description": "An analysis tool to Node Modules List",
"main": "./lib/index.js",
"bin": {
Expand Down Expand Up @@ -29,4 +29,4 @@
"eslint": "^8.35.0",
"eslint-config-plus": "^1.0.6"
}
}
}

0 comments on commit eceab5e

Please sign in to comment.