@lerna-lite/core 1.11.0 → 1.11.1

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.
@@ -46,8 +46,10 @@ function getOldestCommitSinceLastTag(execOpts, isIndependent, includeMergedTags)
46
46
  }
47
47
  const { lastTagName } = (0, describe_ref_1.describeRefSync)(describeOptions, includeMergedTags);
48
48
  if (lastTagName) {
49
+ const gitCommandArgs = ['log', `${lastTagName}..HEAD`, '--format="%h %aI"', '--reverse'];
49
50
  npmlog_1.default.silly('git', 'getCurrentBranchOldestCommitSinceLastTag');
50
- let stdout = (0, child_process_1.execSync)('git', ['log', `${lastTagName}..HEAD`, '--format="%h %aI"', '--reverse'], execOpts);
51
+ npmlog_1.default.verbose('exec', `git ${gitCommandArgs.join(' ')}`);
52
+ let stdout = (0, child_process_1.execSync)('git', gitCommandArgs, execOpts);
51
53
  if (!stdout) {
52
54
  // in some occasion the previous git command might return nothing, in that case we'll return the tag detail instead
53
55
  stdout = (0, child_process_1.execSync)('git', ['log', '-1', '--format="%h %aI"', lastTagName], execOpts);
@@ -55,10 +57,14 @@ function getOldestCommitSinceLastTag(execOpts, isIndependent, includeMergedTags)
55
57
  [commitResult] = stdout.split('\n');
56
58
  }
57
59
  else {
60
+ const gitCommandArgs = ['log', '--oneline', '--format="%h %aI"', '--reverse', '--max-parents=0', 'HEAD'];
58
61
  npmlog_1.default.silly('git', 'getCurrentBranchFirstCommit');
59
- commitResult = (0, child_process_1.execSync)('git', ['log', '--oneline', '--format="%h %aI"', '--reverse', '--max-parents=0', 'HEAD'], execOpts);
62
+ npmlog_1.default.verbose('exec', `git ${gitCommandArgs.join(' ')}`);
63
+ commitResult = (0, child_process_1.execSync)('git', gitCommandArgs, execOpts);
60
64
  }
61
- const [, commitHash, commitDate] = /^"?([0-9a-f]+)\s([0-9\-T\:]*)"?$/.exec(commitResult) || [];
65
+ const [, commitHash, commitDate] = /^"?([0-9a-f]+)\s([0-9\-|\+T\:]*)"?$/.exec(commitResult) || [];
66
+ // prettier-ignore
67
+ npmlog_1.default.info('oldestCommitSinceLastTag', `commit found since last tag: ${lastTagName} - (SHA) ${commitHash} - ${commitDate}`);
62
68
  return { commitHash, commitDate };
63
69
  }
64
70
  exports.getOldestCommitSinceLastTag = getOldestCommitSinceLastTag;
@@ -1 +1 @@
1
- {"version":3,"file":"get-commits-since-last-release.js","sourceRoot":"","sources":["../../src/conventional-commits/get-commits-since-last-release.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAyB;AAEzB,oDAA4C;AAC5C,6DAAwD;AAExD,wDAAwD;AACxD,0DAAsD;AAEtD;;;;;;;;;GASG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAwB,EACxB,SAAiB,EACjB,UAAkB,EAClB,aAAuB,EACvB,QAAmB;IAEnB,iFAAiF;IACjF,MAAM,EAAE,UAAU,EAAE,GAAG,2BAA2B,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IAEnF,QAAQ,MAAM,EAAE;QACd,KAAK,QAAQ;YACX,OAAO,IAAA,qCAAgB,EAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QACvE,KAAK,QAAQ,CAAC;QACd;YACE,MAAM,IAAI,kCAAe,CACvB,SAAS,EACT,uIAAuI,CACxI,CAAC;KACL;AACH,CAAC;AApBD,gEAoBC;AAED;;;;;;GAMG;AACH,SAAgB,2BAA2B,CAAC,QAAmB,EAAE,aAAuB,EAAE,iBAA2B;IACnH,IAAI,YAAY,GAAG,EAAE,CAAC;IACtB,MAAM,eAAe,GAAuB,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5D,IAAI,aAAa,EAAE;QACjB,eAAe,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,0BAA0B;KAC1D;IACD,MAAM,EAAE,WAAW,EAAE,GAAG,IAAA,8BAAe,EAAC,eAAe,EAAE,iBAAiB,CAAC,CAAC;IAE5E,IAAI,WAAW,EAAE;QACf,gBAAG,CAAC,KAAK,CAAC,KAAK,EAAE,0CAA0C,CAAC,CAAC;QAC7D,IAAI,MAAM,GAAG,IAAA,wBAAQ,EAAC,KAAK,EAAE,CAAC,KAAK,EAAE,GAAG,WAAW,QAAQ,EAAE,mBAAmB,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC;QAC1G,IAAI,CAAC,MAAM,EAAE;YACX,mHAAmH;YACnH,MAAM,GAAG,IAAA,wBAAQ,EAAC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,CAAC;SACrF;QACD,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;KACrC;SAAM;QACL,gBAAG,CAAC,KAAK,CAAC,KAAK,EAAE,6BAA6B,CAAC,CAAC;QAChD,YAAY,GAAG,IAAA,wBAAQ,EACrB,KAAK,EACL,CAAC,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,CAAC,EACjF,QAAQ,CACT,CAAC;KACH;IAED,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,kCAAkC,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAC/F,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC;AA3BD,kEA2BC"}
1
+ {"version":3,"file":"get-commits-since-last-release.js","sourceRoot":"","sources":["../../src/conventional-commits/get-commits-since-last-release.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAyB;AAEzB,oDAA4C;AAC5C,6DAAwD;AAExD,wDAAwD;AACxD,0DAAsD;AAEtD;;;;;;;;;GASG;AACI,KAAK,UAAU,0BAA0B,CAC9C,MAAwB,EACxB,SAAiB,EACjB,UAAkB,EAClB,aAAuB,EACvB,QAAmB;IAEnB,iFAAiF;IACjF,MAAM,EAAE,UAAU,EAAE,GA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,YAAY,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;KACrC;SAAM;QACL,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;QACzG,gBAAG,CAAC,KAAK,CAAC,KAAK,EAAE,6BAA6B,CAAC,CAAC;QAChD,gBAAG,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACvD,YAAY,GAAG,IAAA,wBAAQ,EAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC;KAC1D;IAED,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,qCAAqC,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAClG,kBAAkB;IAClB,gBAAG,CAAC,IAAI,CAAC,0BAA0B,EAAE,gCAAgC,WAAW,YAAY,UAAU,MAAM,UAAU,EAAE,CAAC,CAAC;IAE1H,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACpC,CAAC;AA9BD,kEA8BC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lerna-lite/core",
3
3
  "description": "Lerna-Lite core implementation module",
4
- "version": "1.11.0",
4
+ "version": "1.11.1",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "typings": "dist/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "minimatch": "^5.1.0",
63
63
  "node-fetch": "^2.6.7",
64
64
  "npm-package-arg": "^9.1.0",
65
- "npm-packlist": "^5.1.1",
65
+ "npm-packlist": "^5.1.2",
66
66
  "npm-registry-fetch": "^13.3.1",
67
67
  "npmlog": "^6.0.2",
68
68
  "os": "^0.1.2",
@@ -100,7 +100,7 @@
100
100
  "@types/glob-parent": "^5.1.1",
101
101
  "@types/inquirer": "^9.0.1",
102
102
  "@types/load-json-file": "^5.1.0",
103
- "@types/minimatch": "^3.0.5",
103
+ "@types/minimatch": "^5.1.0",
104
104
  "@types/npm-package-arg": "^6.1.1",
105
105
  "@types/p-map": "^2.0.0",
106
106
  "@types/semver": "^7.3.12",
@@ -114,5 +114,5 @@
114
114
  "type": "ko_fi",
115
115
  "url": "https://ko-fi.com/ghiscoding"
116
116
  },
117
- "gitHead": "6507645f2e3875d9c586b47f3acfffab0a0e1255"
117
+ "gitHead": "f580802fae117d6d6769fd8b67cd3d171c20352a"
118
118
  }