@naseej/blox 0.1.24 → 0.1.26

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/dist/run.js +7 -5
  2. 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.24";
34
+ var version = "0.1.26";
35
35
 
36
36
  // src/commands/add/index.ts
37
37
  var import_fs_extra7 = __toESM(require("fs-extra"));
@@ -506,7 +506,9 @@ async function updateFromRemote(name, source = "", ignore = [], destPath = ".")
506
506
  if (await git.isCommitOlder(baseFrom, baseTo)) {
507
507
  updateBase();
508
508
  } else {
509
- debug(`Skip base info update, ${baseName} is newer in project than template`);
509
+ logWarningSection(
510
+ `${baseName} is newer in project than template, make sure no breaking changes`
511
+ );
510
512
  }
511
513
  }
512
514
  const fromBasedCommit = basedOnInfo.bases?.[name]?.commit;
@@ -610,8 +612,8 @@ async function updateBlock(block, blocks) {
610
612
  updatedBlocks.add(block);
611
613
  });
612
614
  for (const dep of blockInfo?.dependencies || []) {
613
- debug(`${block} has dependency on ${dep}, will be updated`);
614
- await updateBlock(dep, blocks);
615
+ debug(`${block} has dependency on ${dep.name}, will be updated`);
616
+ await updateBlock(dep.name, blocks);
615
617
  }
616
618
  }
617
619
 
@@ -645,7 +647,7 @@ var addBlock = async (block, blocks) => {
645
647
  await updateBlock(block, blocks);
646
648
  }
647
649
  for (const dep of blockDef?.dependencies || []) {
648
- await addBlock(dep, blocks);
650
+ await addBlock(dep.name, blocks);
649
651
  }
650
652
  };
651
653
  var add = command("add").description("Add block to app").alias("a").argument("[block]", "Block to be added").action(async (block) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naseej/blox",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "blox cli",
5
5
  "bin": {
6
6
  "blox": "./bin/run"