@naseej/blox 0.1.11 → 0.1.12
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.
- package/dist/run.js +5 -1
- package/package.json +1 -1
package/dist/run.js
CHANGED
|
@@ -31,7 +31,7 @@ var option = (flags, description) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "0.1.
|
|
34
|
+
var version = "0.1.12";
|
|
35
35
|
|
|
36
36
|
// src/commands/add/index.ts
|
|
37
37
|
var import_fs_extra6 = __toESM(require("fs-extra"));
|
|
@@ -568,6 +568,10 @@ async function updateFromRemote(name, source = "", destPath = ".") {
|
|
|
568
568
|
const fromCommit = getBasedOnInfo(destPath).commit;
|
|
569
569
|
const toCommit = await git.getLatestCommitFromRemote(name);
|
|
570
570
|
debug({ fromCommit, toCommit });
|
|
571
|
+
if (fromCommit == toCommit) {
|
|
572
|
+
debug("No new version");
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
571
575
|
const patchFilePath = import_node_path5.default.join(destPath, "diff.patch");
|
|
572
576
|
await git.createPatch(fromCommit, toCommit, patchFilePath);
|
|
573
577
|
const changes = await git.getChangesLog(fromCommit, toCommit);
|