lincd-cli 0.2.63 → 0.2.65

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/lib/utils.js +3 -3
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -180,13 +180,13 @@ exports.getLastModifiedSourceTime = getLastModifiedSourceTime;
180
180
  const getLastCommitTime = (packagePath) => {
181
181
  // console.log(`git log -1 --format=%ci -- ${packagePath}`);
182
182
  // process.exit();
183
- return execPromise(`git log -1 --format="%h %ci" -- ${packagePath}`)
183
+ return execPromise(`cd ${packagePath} && git log -1 --format="%h %ci" -- .`)
184
184
  .then((result) => __awaiter(void 0, void 0, void 0, function* () {
185
185
  let commitId = result.substring(0, result.indexOf(' '));
186
186
  let date = result.substring(commitId.length + 1);
187
187
  let lastCommitDate = new Date(date);
188
- let changes = yield execPromise(`git show --stat --oneline ${commitId} -- ${packagePath}`);
189
- // log(packagePath,result,lastCommit);
188
+ let changes = yield execPromise(`cd ${packagePath} && git show --stat --oneline ${commitId} -- .`);
189
+ // log(packagePath, result, lastCommitDate);
190
190
  // log(changes);
191
191
  return { date: lastCommitDate, changes, commitId };
192
192
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lincd-cli",
3
- "version": "0.2.63",
3
+ "version": "0.2.65",
4
4
  "description": "Command line tools for the lincd.js library",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {