From c6bddacbe2f1f6a1620139f15c75e4f540640ba5 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Sat, 27 May 2017 11:27:30 +0200 Subject: [PATCH] CLEANUP --- lib/codemod/src/transforms/update-organisation-name.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/codemod/src/transforms/update-organisation-name.js b/lib/codemod/src/transforms/update-organisation-name.js index cfaf5afecbdb..0735bd9b7146 100644 --- a/lib/codemod/src/transforms/update-organisation-name.js +++ b/lib/codemod/src/transforms/update-organisation-name.js @@ -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; }; /**