Skip to content

Commit f8cb070

Browse files
committed
🔨 Slight formatting change
1 parent 61acd24 commit f8cb070

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

community/@atlaskit__avatar/19.0.0/transform.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,14 @@ export default function transformer(
5959
{ jscodeshift: j }: API,
6060
options: Options,
6161
) {
62+
const packageName = '@atlaskit/avatar';
6263
const source = j(file.source);
6364

64-
if (!hasImportDeclaration(j, source, '@atlaskit/avatar')) {
65+
if (!hasImportDeclaration(j, source, packageName)) {
6566
return file.source;
6667
}
6768

68-
const defaultSpecifier = getDefaultImportSpecifier(
69-
j,
70-
source,
71-
'@atlaskit/avatar',
72-
);
69+
const defaultSpecifier = getDefaultImportSpecifier(j, source, packageName);
7370

7471
if (defaultSpecifier != null) {
7572
wrapChildrenProp(j, source, defaultSpecifier);
@@ -78,7 +75,7 @@ export default function transformer(
7875
const importSpecifier = getImportSpecifier(
7976
j,
8077
source,
81-
'@atlaskit/avatar',
78+
packageName,
8279
'AvatarItem',
8380
);
8481

packages/publisher/template/.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
codeshift.config.json
21
src
32
node_modules
43
**/__test__

0 commit comments

Comments
 (0)