Skip to content

Commit

Permalink
CLEANUP
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 27, 2017
1 parent 01641fe commit c6bddac
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/codemod/src/transforms/update-organisation-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,13 @@ export default function transformer(file, api) {
* getNewPackageName('@kadira/storybook')
*/
const getNewPackageName = oldPackageName => {
console.log('original ', oldPackageName);

const match = getMatch(oldPackageName);
console.log('replacement ', match);

if (match) {
const replacement = packageNames[match];
console.log('replacement ', replacement);
return oldPackageName.replace(match, replacement);
}
return oldPackageName;

const packageNameWithoutPrefix = oldPackageName.slice(7);
const packageNameWithOrganisation = `@storybook${packageNameWithoutPrefix}`;

return packageNameWithOrganisation;
};

/**
Expand Down

0 comments on commit c6bddac

Please sign in to comment.