Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit 2b0178e

Browse files
amitgilad3GiladShoham
authored andcommitted
Feature/bit scoped registry (#35)
* fixed post install hook to work with symlink * add @bit to all bit dependecies
1 parent 90f1a5b commit 2b0178e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package-json/package-json.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function convertComponenstsToValidPackageNames(registryPrefix: string, bitDepend
1414
const obj = {};
1515
if (R.isEmpty(bitDependencies) || R.isNil(bitDependencies)) return obj;
1616
Object.keys(bitDependencies).forEach(key => {
17-
var name = key.replace(/\//g, '.');
18-
obj[name] = `${registryPrefix}/${name}/-/${name}-${bitDependencies[key]}.tgz`;
17+
var name = `${registryPrefix}/${key.replace(/\//g, '.')}`;
18+
obj[name] = bitDependencies[key];
1919
});
2020
return obj;
2121
}

0 commit comments

Comments
 (0)