jsrepo 1.2.2 → 1.2.3

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/index.js CHANGED
@@ -1478,7 +1478,8 @@ var getBlocks = async (blockSpecifiers, blocksMap, repoPaths, options) => {
1478
1478
  color5.red(`Invalid block! ${color5.bold(blockSpecifier)} does not exist!`)
1479
1479
  );
1480
1480
  }
1481
- blocks.set(blockSpecifier, { name: blockSpecifier, subDependency: false, block });
1481
+ const fullSpecifier = `${block.sourceRepo.url}/${block.category}/${block.name}`;
1482
+ blocks.set(fullSpecifier, { name: fullSpecifier, subDependency: false, block });
1482
1483
  if (block.localDependencies && block.localDependencies.length > 0) {
1483
1484
  const subDeps = await getBlocks(
1484
1485
  block.localDependencies.filter((dep) => !blocks.has(dep)),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jsrepo",
3
3
  "description": "A CLI to add shared code from remote repositories.",
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ieedan/jsrepo"
@@ -478,7 +478,9 @@ const getBlocks = async (
478
478
  );
479
479
  }
480
480
 
481
- blocks.set(blockSpecifier, { name: blockSpecifier, subDependency: false, block });
481
+ const fullSpecifier = `${block.sourceRepo.url}/${block.category}/${block.name}`;
482
+
483
+ blocks.set(fullSpecifier, { name: fullSpecifier, subDependency: false, block });
482
484
 
483
485
  if (block.localDependencies && block.localDependencies.length > 0) {
484
486
  const subDeps = await getBlocks(