enablement-build-monorepo-version 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +2 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -100,7 +100,7 @@ async function compare(packageFolder, previous,current,dependencies,options) {
100
100
  let d = dependencies[fullName];
101
101
  for(let i=0;i<d.length;i++) {
102
102
  let depName = nameMap[d[i]];
103
- plist.push(buildResult(packageFolder,depName,current[depName].version,"CHANGED",options));
103
+ if(current[depName]) plist.push(buildResult(packageFolder,depName,current[depName].version,"CHANGED",options));
104
104
  }
105
105
  }
106
106
  } else {
@@ -280,6 +280,7 @@ if (process.argv.length === 2) {
280
280
  if(argv[i].substring(0,2)==="--") {
281
281
  let name = argv[i].substring(2);
282
282
  if(options[name]!==undefined) {
283
+ if(name==="children") argv[i+1]=argv[i+1].replace(/\s/g,',');
283
284
  options[name] = argv[i+1];
284
285
  i++;
285
286
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enablement-build-monorepo-version",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "This detects changes in the children packages of a monorepo.",
5
5
  "type": "module",
6
6
  "module": "./index.mjs",