@seed-design/codemod 0.0.0-alpha-20241018101237 → 0.0.0-alpha-20241020051045
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/bin/index.mjs +2 -2
- package/bin/migrate-icons.mjs +1 -0
- package/package.json +2 -3
- package/src/index.ts +0 -36
- package/src/scripts/create-identifier-map.mjs +0 -41
- package/src/scripts/data.tsv +0 -198
- package/src/scripts/identifier-map.json.log +0 -578
- package/src/transforms/migrate-icons.ts +0 -80
- package/src/transforms/tests/migrate-icons.test.ts +0 -409
- package/src/utils/identifier-map.ts +0 -580
- package/src/utils/log.ts +0 -20
- package/src/utils/replace-node.ts +0 -147
@@ -1,578 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"IconAddThin": "IconPlusLine",
|
3
|
-
"IconAddRegular": "IconPlusLine",
|
4
|
-
"IconAddFill": "IconPlusFill",
|
5
|
-
"IconAddCircleThin": "IconPlusCircleLine",
|
6
|
-
"IconAddCircleRegular": "IconPlusCircleLine",
|
7
|
-
"IconAddCircleFill": "IconPlusCircleFill",
|
8
|
-
"IconAebThin": "IconCarFrontUpsideWave2ReversedUpLine",
|
9
|
-
"IconAebRegular": "IconCarFrontUpsideWave2ReversedUpLine",
|
10
|
-
"IconAebFill": "IconCarFrontUpsideWave2ReversedUpFill",
|
11
|
-
"IconAiThin": "IconSparkle2Line",
|
12
|
-
"IconAiRegular": "IconSparkle2Line",
|
13
|
-
"IconAiFill": "IconSparkle2Fill",
|
14
|
-
"IconAndroidShareThin": "IconAndroidshareLine",
|
15
|
-
"IconAndroidShareRegular": "IconAndroidshareLine",
|
16
|
-
"IconAndroidShareFill": "IconAndroidshareFill",
|
17
|
-
"IconArrowThin": "IconArrowUpRightLine",
|
18
|
-
"IconArrowRegular": "IconArrowUpRightLine",
|
19
|
-
"IconArrowFill": "IconArrowUpRightFill",
|
20
|
-
"IconArrowDownwardThin": "IconArrowDownLine",
|
21
|
-
"IconArrowDownwardRegular": "IconArrowDownLine",
|
22
|
-
"IconArrowDownwardFill": "IconArrowDownFill",
|
23
|
-
"IconArrowDropDownThin": "IconTriangleDownSmallLine",
|
24
|
-
"IconArrowDropDownRegular": "IconTriangleDownSmallLine",
|
25
|
-
"IconArrowDropDownFill": "IconTriangleDownSmallFill",
|
26
|
-
"IconArrowDropUpThin": "IconTriangleUpSmallLine",
|
27
|
-
"IconArrowDropUpRegular": "IconTriangleUpSmallLine",
|
28
|
-
"IconArrowDropUpFill": "IconTriangleUpSmallFill",
|
29
|
-
"IconArrowUpwardThin": "IconArrowUpLine",
|
30
|
-
"IconArrowUpwardRegular": "IconArrowUpLine",
|
31
|
-
"IconArrowUpwardFill": "IconArrowUpFill",
|
32
|
-
"IconArticleThin": "IconArticleLine",
|
33
|
-
"IconArticleRegular": "IconArticleLine",
|
34
|
-
"IconArticleFill": "IconArticleFill",
|
35
|
-
"IconBackwardThin": "IconArrowLeftLine",
|
36
|
-
"IconBackwardRegular": "IconArrowLeftLine",
|
37
|
-
"IconBackwardFill": "IconArrowLeftFill",
|
38
|
-
"IconBillThin": "IconReceiptLine",
|
39
|
-
"IconBillRegular": "IconReceiptLine",
|
40
|
-
"IconBillFill": "IconReceiptFill",
|
41
|
-
"IconBookmarkThin": "IconBookmarkLine",
|
42
|
-
"IconBookmarkRegular": "IconBookmarkLine",
|
43
|
-
"IconBookmarkFill": "IconBookmarkFill",
|
44
|
-
"IconBookmarkListThin": "IconHorizline3VerticalStarLine",
|
45
|
-
"IconBookmarkListRegular": "IconHorizline3VerticalStarLine",
|
46
|
-
"IconBookmarkListFill": "IconHorizline3VerticalStarFill",
|
47
|
-
"IconCalendarThin": "IconCalendarLine",
|
48
|
-
"IconCalendarRegular": "IconCalendarLine",
|
49
|
-
"IconCalendarFill": "IconCalendarFill",
|
50
|
-
"IconCallThin": "IconPhoneLine",
|
51
|
-
"IconCallRegular": "IconPhoneLine",
|
52
|
-
"IconCallFill": "IconPhoneFill",
|
53
|
-
"IconCallDeclinedThin": "IconPhoneXmarkLine",
|
54
|
-
"IconCallDeclinedRegular": "IconPhoneXmarkLine",
|
55
|
-
"IconCallDeclinedFill": "IconPhoneXmarkFill",
|
56
|
-
"IconCameraThin": "IconCameraLine",
|
57
|
-
"IconCameraRegular": "IconCameraLine",
|
58
|
-
"IconCameraFill": "IconCameraFill",
|
59
|
-
"IconCarThin": "IconCarFrontsideLine",
|
60
|
-
"IconCarRegular": "IconCarFrontsideLine",
|
61
|
-
"IconCarFill": "IconCarFrontsideFill",
|
62
|
-
"IconCarAroundViewThin": "IconArrowClockwiseOvalLine",
|
63
|
-
"IconCarAroundViewRegular": "IconArrowClockwiseOvalLine",
|
64
|
-
"IconCarAroundViewFill": "IconArrowClockwiseOvalFill",
|
65
|
-
"IconCarBlindSpotThin": "IconCarRearUpsideWave2ReversedDownLeftLine",
|
66
|
-
"IconCarBlindSpotRegular": "IconCarRearUpsideWave2ReversedDownLeftLine",
|
67
|
-
"IconCarBlindSpotFill": "IconCarRearUpsideWave2ReversedDownLeftFill",
|
68
|
-
"IconCarCruiseControlThin": "IconSpeedometerLine",
|
69
|
-
"IconCarCruiseControlRegular": "IconSpeedometerLine",
|
70
|
-
"IconCarCruiseControlFill": "IconSpeedometerFill",
|
71
|
-
"IconCarEpbThin": "IconEpbLine",
|
72
|
-
"IconCarEpbRegular": "IconEpbLine",
|
73
|
-
"IconCarEpbFill": "IconEpbFill",
|
74
|
-
"IconCarHeatedSeatThin": "IconSeatLeftHeatwave2Line",
|
75
|
-
"IconCarHeatedSeatRegular": "IconSeatLeftHeatwave2Line",
|
76
|
-
"IconCarHeatedSeatFill": "IconSeatLeftHeatwave2Fill",
|
77
|
-
"IconCarHeatedSteeringWheelThin": "IconSteeringwheelHeatwave2Line",
|
78
|
-
"IconCarHeatedSteeringWheelRegular": "IconSteeringwheelHeatwave2Line",
|
79
|
-
"IconCarHeatedSteeringWheelFill": "IconSteeringwheelHeatwave2Fill",
|
80
|
-
"IconCarLdwsThin": "IconRoadlaneLine",
|
81
|
-
"IconCarLdwsRegular": "IconRoadlaneLine",
|
82
|
-
"IconCarLdwsFill": "IconRoadlaneFill",
|
83
|
-
"IconCarLeatherSeatThin": "IconSeatLeftLine",
|
84
|
-
"IconCarLeatherSeatRegular": "IconSeatLeftLine",
|
85
|
-
"IconCarLeatherSeatFill": "IconSeatLeftFill",
|
86
|
-
"IconCarNavigationThin": "IconCompassLine",
|
87
|
-
"IconCarNavigationRegular": "IconCompassLine",
|
88
|
-
"IconCarNavigationFill": "IconCompassFill",
|
89
|
-
"IconCarPowerTrunkThin": "IconCarRearTrunkOpenLeftsideLine",
|
90
|
-
"IconCarPowerTrunkRegular": "IconCarRearTrunkOpenLeftsideLine",
|
91
|
-
"IconCarPowerTrunkFill": "IconCarRearTrunkOpenLeftsideFill",
|
92
|
-
"IconCarRearCameraThin": "IconCarRearUpsideSectorDownLine",
|
93
|
-
"IconCarRearCameraRegular": "IconCarRearUpsideSectorDownLine",
|
94
|
-
"IconCarRearCameraFill": "IconCarRearUpsideSectorDownFill",
|
95
|
-
"IconCarRearSensorThin": "IconCarRearUpsideWave2ReversedDownLine",
|
96
|
-
"IconCarRearSensorRegular": "IconCarRearUpsideWave2ReversedDownLine",
|
97
|
-
"IconCarRearSensorFill": "IconCarRearUpsideWave2ReversedDownFill",
|
98
|
-
"IconCarSmartKeyThin": "IconSmartkeyLine",
|
99
|
-
"IconCarSmartKeyRegular": "IconSmartkeyLine",
|
100
|
-
"IconCarSmartKeyFill": "IconSmartkeyFill",
|
101
|
-
"IconCarVentilationSeatThin": "IconSeatLeftFanLine",
|
102
|
-
"IconCarVentilationSeatRegular": "IconSeatLeftFanLine",
|
103
|
-
"IconCarVentilationSeatFill": "IconSeatLeftFanFill",
|
104
|
-
"IconCartThin": "IconCartLine",
|
105
|
-
"IconCartRegular": "IconCartLine",
|
106
|
-
"IconCartFill": "IconCartFill",
|
107
|
-
"IconCertificationThin": "IconCrosshairLine",
|
108
|
-
"IconCertificationRegular": "IconCrosshairLine",
|
109
|
-
"IconCertificationFill": "IconCrosshairFill",
|
110
|
-
"IconChallengeThin": "IconFlagHillLine",
|
111
|
-
"IconChallengeRegular": "IconFlagHillLine",
|
112
|
-
"IconChallengeFill": "IconFlagHillFill",
|
113
|
-
"IconChartThin": "IconBarchartSquareLine",
|
114
|
-
"IconChartRegular": "IconBarchartSquareLine",
|
115
|
-
"IconChartFill": "IconBarchartSquareFill",
|
116
|
-
"IconChatBubbleCheckThin": "IconCheckmarkChatbubbleLeftLine",
|
117
|
-
"IconChatBubbleCheckRegular": "IconCheckmarkChatbubbleLeftLine",
|
118
|
-
"IconChatBubbleCheckFill": "IconCheckmarkChatbubbleLeftFill",
|
119
|
-
"IconChattingThin": "IconDot3HorizontalChatbubbleLeftLine",
|
120
|
-
"IconChattingRegular": "IconDot3HorizontalChatbubbleLeftLine",
|
121
|
-
"IconChattingFill": "IconDot3HorizontalChatbubbleLeftFill",
|
122
|
-
"IconChattingSendThin": "IconPaperplaneLine",
|
123
|
-
"IconChattingSendRegular": "IconPaperplaneLine",
|
124
|
-
"IconChattingSendFill": "IconPaperplaneFill",
|
125
|
-
"IconCheckThin": "IconCheckmarkLine",
|
126
|
-
"IconCheckRegular": "IconCheckmarkLine",
|
127
|
-
"IconCheckFill": "IconCheckmarkFill",
|
128
|
-
"IconCheckFlowerThin": "IconCheckmarkFlowerLine",
|
129
|
-
"IconCheckFlowerRegular": "IconCheckmarkFlowerLine",
|
130
|
-
"IconCheckFlowerFill": "IconCheckmarkFlowerFill",
|
131
|
-
"IconChevronLeftThin": "IconChevronLeftLine",
|
132
|
-
"IconChevronLeftRegular": "IconChevronLeftLine",
|
133
|
-
"IconChevronLeftFill": "IconChevronLeftFill",
|
134
|
-
"IconChevronRightThin": "IconChevronRightLine",
|
135
|
-
"IconChevronRightRegular": "IconChevronRightLine",
|
136
|
-
"IconChevronRightFill": "IconChevronRightFill",
|
137
|
-
"IconClickThin": "IconHandPointUpLine",
|
138
|
-
"IconClickRegular": "IconHandPointUpLine",
|
139
|
-
"IconClickFill": "IconHandPointUpFill",
|
140
|
-
"IconClockThin": "IconClockLine",
|
141
|
-
"IconClockRegular": "IconClockLine",
|
142
|
-
"IconClockFill": "IconClockFill",
|
143
|
-
"IconCloseThin": "IconXmarkLine",
|
144
|
-
"IconCloseRegular": "IconXmarkLine",
|
145
|
-
"IconCloseFill": "IconXmarkFill",
|
146
|
-
"IconCommunityThin": "IconPostLine",
|
147
|
-
"IconCommunityRegular": "IconPostLine",
|
148
|
-
"IconCommunityFill": "IconPostFill",
|
149
|
-
"IconCondoThin": "IconBuilding2Line",
|
150
|
-
"IconCondoRegular": "IconBuilding2Line",
|
151
|
-
"IconCondoFill": "IconBuilding2Fill",
|
152
|
-
"IconConfirmationThin": "IconCheckShieldLine",
|
153
|
-
"IconConfirmationRegular": "IconCheckShieldLine",
|
154
|
-
"IconConfirmationFill": "IconCheckShieldFill",
|
155
|
-
"IconConfirmationPayThin": "IconWonShieldLine",
|
156
|
-
"IconConfirmationPayRegular": "IconWonShieldLine",
|
157
|
-
"IconConfirmationPayFill": "IconWonShieldFill",
|
158
|
-
"IconConfirmationProfileThin": "IconPersonShieldLine",
|
159
|
-
"IconConfirmationProfileRegular": "IconPersonShieldLine",
|
160
|
-
"IconConfirmationProfileFill": "IconPersonShieldFill",
|
161
|
-
"IconContentsThin": "IconGridHeartLine",
|
162
|
-
"IconContentsRegular": "IconGridHeartLine",
|
163
|
-
"IconContentsFill": "IconGridHeartFill",
|
164
|
-
"IconConvertThin": "IconArrowRightArrowLeftLine",
|
165
|
-
"IconConvertRegular": "IconArrowRightArrowLeftLine",
|
166
|
-
"IconConvertFill": "IconArrowRightArrowLeftFill",
|
167
|
-
"IconCopyThin": "IconSquare2StackedLine",
|
168
|
-
"IconCopyRegular": "IconSquare2StackedLine",
|
169
|
-
"IconCopyFill": "IconSquare2StackedFill",
|
170
|
-
"IconCouponThin": "IconCouponLine",
|
171
|
-
"IconCouponRegular": "IconCouponLine",
|
172
|
-
"IconCouponFill": "IconCouponFill",
|
173
|
-
"IconCouponDownloadDoneThin": "IconCheckmarkHorizlineLine",
|
174
|
-
"IconCouponDownloadDoneRegular": "IconCheckmarkHorizlineLine",
|
175
|
-
"IconCouponDownloadDoneFill": "IconCheckmarkHorizlineFill",
|
176
|
-
"IconCouponUsedThin": "IconCheckCouponLine",
|
177
|
-
"IconCouponUsedRegular": "IconCheckCouponLine",
|
178
|
-
"IconCouponUsedFill": "IconCheckCouponFill",
|
179
|
-
"IconDeleteKeyboardThin": "IconBackspacekeyLine",
|
180
|
-
"IconDeleteKeyboardRegular": "IconBackspacekeyLine",
|
181
|
-
"IconDeleteKeyboardFill": "IconBackspacekeyFill",
|
182
|
-
"IconDirectionThin": "IconArrowRightAngledLine",
|
183
|
-
"IconDirectionRegular": "IconArrowRightAngledLine",
|
184
|
-
"IconDirectionFill": "IconArrowRightAngledFill",
|
185
|
-
"IconDownloadThin": "IconArrowDownHorizlineLine",
|
186
|
-
"IconDownloadRegular": "IconArrowDownHorizlineLine",
|
187
|
-
"IconDownloadFill": "IconArrowDownHorizlineFill",
|
188
|
-
"IconEditThin": "IconEraserHorizlineLine",
|
189
|
-
"IconEditRegular": "IconEraserHorizlineLine",
|
190
|
-
"IconEditFill": "IconEraserHorizlineFill",
|
191
|
-
"IconEmoticonThin": "IconFaceSmileCircleLine",
|
192
|
-
"IconEmoticonRegular": "IconFaceSmileCircleLine",
|
193
|
-
"IconEmoticonFill": "IconFaceSmileCircleFill",
|
194
|
-
"IconEmoticonBadThin": "IconFaceSadCircleLine",
|
195
|
-
"IconEmoticonBadRegular": "IconFaceSadCircleLine",
|
196
|
-
"IconEmoticonBadFill": "IconFaceSadCircleFill",
|
197
|
-
"IconExpandThin": "IconArrowUpRightArrowDownLeftLine",
|
198
|
-
"IconExpandRegular": "IconArrowUpRightArrowDownLeftLine",
|
199
|
-
"IconExpandFill": "IconArrowUpRightArrowDownLeftFill",
|
200
|
-
"IconExpandLessThin": "IconChevronUpLine",
|
201
|
-
"IconExpandLessRegular": "IconChevronUpLine",
|
202
|
-
"IconExpandLessFill": "IconChevronUpFill",
|
203
|
-
"IconExpandMoreThin": "IconChevronDownLine",
|
204
|
-
"IconExpandMoreRegular": "IconChevronDownLine",
|
205
|
-
"IconExpandMoreFill": "IconChevronDownFill",
|
206
|
-
"IconFileThin": "IconPaperclipLine",
|
207
|
-
"IconFileRegular": "IconPaperclipLine",
|
208
|
-
"IconFileFill": "IconPaperclipFill",
|
209
|
-
"IconFilter02Thin": "IconSlider2HorizontalLine",
|
210
|
-
"IconFilter02Regular": "IconSlider2HorizontalLine",
|
211
|
-
"IconFilter02Fill": "IconSlider2HorizontalFill",
|
212
|
-
"IconForwardThin": "IconArrowRightLine",
|
213
|
-
"IconForwardRegular": "IconArrowRightLine",
|
214
|
-
"IconForwardFill": "IconArrowRightFill",
|
215
|
-
"IconGenderThin": "IconMalesymbolFemalesymbolLine",
|
216
|
-
"IconGenderRegular": "IconMalesymbolFemalesymbolLine",
|
217
|
-
"IconGenderFill": "IconMalesymbolFemalesymbolFill",
|
218
|
-
"IconGlobalThin": "IconGlobeLine",
|
219
|
-
"IconGlobalRegular": "IconGlobeLine",
|
220
|
-
"IconGlobalFill": "IconGlobeFill",
|
221
|
-
"IconGpsThin": "IconCrosshairLine",
|
222
|
-
"IconGpsRegular": "IconCrosshairLine",
|
223
|
-
"IconGpsFill": "IconCrosshairFill",
|
224
|
-
"IconGpsEnableThin": "IconCrosshairQuestionmarkLine",
|
225
|
-
"IconGpsEnableRegular": "IconCrosshairQuestionmarkLine",
|
226
|
-
"IconGpsEnableFill": "IconCrosshairQuestionmarkFill",
|
227
|
-
"IconGpsEnable2Thin": "IconCrosshairQuestionmarkLine",
|
228
|
-
"IconGpsEnable2Regular": "IconCrosshairQuestionmarkLine",
|
229
|
-
"IconGpsEnable2Fill": "IconCrosshairQuestionmarkFill",
|
230
|
-
"IconGroupchatKingThin": "IconCrownLine",
|
231
|
-
"IconGroupchatKingRegular": "IconCrownLine",
|
232
|
-
"IconGroupchatKingFill": "IconCrownFill",
|
233
|
-
"IconHandleThin": "IconHorizline3VerticalTightLine",
|
234
|
-
"IconHandleRegular": "IconHorizline3VerticalTightLine",
|
235
|
-
"IconHandleFill": "IconHorizline3VerticalTightFill",
|
236
|
-
"IconHashtagThin": "IconHashLine",
|
237
|
-
"IconHashtagRegular": "IconHashLine",
|
238
|
-
"IconHashtagFill": "IconHashFill",
|
239
|
-
"IconHeadphoneThin": "IconHeadsetLine",
|
240
|
-
"IconHeadphoneRegular": "IconHeadsetLine",
|
241
|
-
"IconHeadphoneFill": "IconHeadsetFill",
|
242
|
-
"IconHeartThin": "IconHeartLine",
|
243
|
-
"IconHeartRegular": "IconHeartLine",
|
244
|
-
"IconHeartFill": "IconHeartFill",
|
245
|
-
"IconHelpThin": "IconQuestionmarkCircleLine",
|
246
|
-
"IconHelpRegular": "IconQuestionmarkCircleLine",
|
247
|
-
"IconHelpFill": "IconQuestionmarkCircleFill",
|
248
|
-
"IconHelpcenterThin": "IconHeadsetLine",
|
249
|
-
"IconHelpcenterRegular": "IconHeadsetLine",
|
250
|
-
"IconHelpcenterFill": "IconHeadsetFill",
|
251
|
-
"IconHelperThin": "IconHeadsetLine",
|
252
|
-
"IconHelperRegular": "IconHeadsetLine",
|
253
|
-
"IconHelperFill": "IconHeadsetFill",
|
254
|
-
"IconHomeThin": "IconHouseLine",
|
255
|
-
"IconHomeRegular": "IconHouseLine",
|
256
|
-
"IconHomeFill": "IconHouseFill",
|
257
|
-
"IconHouseThin": "IconWindow4HouseLine",
|
258
|
-
"IconHouseRegular": "IconWindow4HouseLine",
|
259
|
-
"IconHouseFill": "IconWindow4HouseFill",
|
260
|
-
"IconHousekeepingBookThin": "IconBookLine",
|
261
|
-
"IconHousekeepingBookRegular": "IconBookLine",
|
262
|
-
"IconHousekeepingBookFill": "IconBookFill",
|
263
|
-
"IconImportThin": "IconDocumentArrowLeftLine",
|
264
|
-
"IconImportRegular": "IconDocumentArrowLeftLine",
|
265
|
-
"IconImportFill": "IconDocumentArrowLeftFill",
|
266
|
-
"IconInfoThin": "IconILowercaseSerifCircleLine",
|
267
|
-
"IconInfoRegular": "IconILowercaseSerifCircleLine",
|
268
|
-
"IconInfoFill": "IconILowercaseSerifCircleFill",
|
269
|
-
"IconInterestThin": "IconHorizline3VerticalStarLine",
|
270
|
-
"IconInterestRegular": "IconHorizline3VerticalStarLine",
|
271
|
-
"IconInterestFill": "IconHorizline3VerticalStarFill",
|
272
|
-
"IconInterestListThin": "IconStarLine",
|
273
|
-
"IconInterestListRegular": "IconStarLine",
|
274
|
-
"IconInterestListFill": "IconStarFill",
|
275
|
-
"IconInviteThin": "IconEnvelopeLine",
|
276
|
-
"IconInviteRegular": "IconEnvelopeLine",
|
277
|
-
"IconInviteFill": "IconEnvelopeFill",
|
278
|
-
"IconInviteFriendThin": "IconPersonPlusLine",
|
279
|
-
"IconInviteFriendRegular": "IconPersonPlusLine",
|
280
|
-
"IconInviteFriendFill": "IconPersonPlusFill",
|
281
|
-
"IconIosShareThin": "IconArrowUpBracketDownLine",
|
282
|
-
"IconIosShareRegular": "IconArrowUpBracketDownLine",
|
283
|
-
"IconIosShareFill": "IconArrowUpBracketDownFill",
|
284
|
-
"IconJobsThin": "IconPersonMagnifyingglassLine",
|
285
|
-
"IconJobsRegular": "IconPersonMagnifyingglassLine",
|
286
|
-
"IconJobsFill": "IconPersonMagnifyingglassFill",
|
287
|
-
"IconKeyboardHidingThin": "IconKeyboardChevronDownLine",
|
288
|
-
"IconKeyboardHidingRegular": "IconKeyboardChevronDownLine",
|
289
|
-
"IconKeyboardHidingFill": "IconKeyboardChevronDownFill",
|
290
|
-
"IconKeywordThin": "IconTagLine",
|
291
|
-
"IconKeywordRegular": "IconTagLine",
|
292
|
-
"IconKeywordFill": "IconTagFill",
|
293
|
-
"IconLaptopThin": "IconLaptopLine",
|
294
|
-
"IconLaptopRegular": "IconLaptopLine",
|
295
|
-
"IconLaptopFill": "IconLaptopFill",
|
296
|
-
"IconLeafThin": "IconLeafLine",
|
297
|
-
"IconLeafRegular": "IconLeafLine",
|
298
|
-
"IconLeafFill": "IconLeafFill",
|
299
|
-
"IconListThin": "IconDothorizline3VerticalLine",
|
300
|
-
"IconListRegular": "IconDothorizline3VerticalLine",
|
301
|
-
"IconListFill": "IconDothorizline3VerticalFill",
|
302
|
-
"IconListCardThin": "IconHorizrectangleHorizline2VerticalLine",
|
303
|
-
"IconListCardRegular": "IconHorizrectangleHorizline2VerticalLine",
|
304
|
-
"IconListCardFill": "IconHorizrectangleHorizline2VerticalFill",
|
305
|
-
"IconListCheckThin": "IconDocumentCheckmarkLine",
|
306
|
-
"IconListCheckRegular": "IconDocumentCheckmarkLine",
|
307
|
-
"IconListCheckFill": "IconDocumentCheckmarkFill",
|
308
|
-
"IconListSelectThin": "IconHorizline3VerticalCheckmarkLine",
|
309
|
-
"IconListSelectRegular": "IconHorizline3VerticalCheckmarkLine",
|
310
|
-
"IconListSelectFill": "IconHorizline3VerticalCheckmarkFill",
|
311
|
-
"IconListThumbnailThin": "IconSquareline2VerticalLine",
|
312
|
-
"IconListThumbnailRegular": "IconSquareline2VerticalLine",
|
313
|
-
"IconListThumbnailFill": "IconSquareline2VerticalFill",
|
314
|
-
"IconLocationThin": "IconLocationpinLine",
|
315
|
-
"IconLocationRegular": "IconLocationpinLine",
|
316
|
-
"IconLocationFill": "IconLocationpinFill",
|
317
|
-
"IconLockThin": "IconLockLine",
|
318
|
-
"IconLockRegular": "IconLockLine",
|
319
|
-
"IconLockFill": "IconLockFill",
|
320
|
-
"IconLoudspeakerThin": "IconMegaphoneLine",
|
321
|
-
"IconLoudspeakerRegular": "IconMegaphoneLine",
|
322
|
-
"IconLoudspeakerFill": "IconMegaphoneFill",
|
323
|
-
"IconMapThin": "IconMapLocationpinLine",
|
324
|
-
"IconMapRegular": "IconMapLocationpinLine",
|
325
|
-
"IconMapFill": "IconMapLocationpinFill",
|
326
|
-
"IconMarketThin": "IconStoreLine",
|
327
|
-
"IconMarketRegular": "IconStoreLine",
|
328
|
-
"IconMarketFill": "IconStoreFill",
|
329
|
-
"IconMarketCheckThin": "IconStoreCheckLine",
|
330
|
-
"IconMarketCheckRegular": "IconStoreCheckLine",
|
331
|
-
"IconMarketCheckFill": "IconStoreCheckFill",
|
332
|
-
"IconMarketWriteThin": "IconStorePenLine",
|
333
|
-
"IconMarketWriteRegular": "IconStorePenLine",
|
334
|
-
"IconMarketWriteFill": "IconStorePenFill",
|
335
|
-
"IconMentionThin": "IconAtLine",
|
336
|
-
"IconMentionRegular": "IconAtLine",
|
337
|
-
"IconMentionFill": "IconAtFill",
|
338
|
-
"IconMenuThin": "IconHorizline3VerticalLine",
|
339
|
-
"IconMenuRegular": "IconHorizline3VerticalLine",
|
340
|
-
"IconMenuFill": "IconHorizline3VerticalFill",
|
341
|
-
"IconMicThin": "IconMicrophoneLine",
|
342
|
-
"IconMicRegular": "IconMicrophoneLine",
|
343
|
-
"IconMicFill": "IconMicrophoneFill",
|
344
|
-
"IconMicOffThin": "IconMicrophoneSlashLine",
|
345
|
-
"IconMicOffRegular": "IconMicrophoneSlashLine",
|
346
|
-
"IconMicOffFill": "IconMicrophoneSlashFill",
|
347
|
-
"IconMissionThin": "IconBookOpenLine",
|
348
|
-
"IconMissionRegular": "IconBookOpenLine",
|
349
|
-
"IconMissionFill": "IconBookOpenFill",
|
350
|
-
"IconMobileThin": "IconMobileLine",
|
351
|
-
"IconMobileRegular": "IconMobileLine",
|
352
|
-
"IconMobileFill": "IconMobileFill",
|
353
|
-
"IconMoneySendThin": "IconWonCircleArrowRightLine",
|
354
|
-
"IconMoneySendRegular": "IconWonCircleArrowRightLine",
|
355
|
-
"IconMoneySendFill": "IconWonCircleArrowRightFill",
|
356
|
-
"IconMoneyWonThin": "IconWonCircleLine",
|
357
|
-
"IconMoneyWonRegular": "IconWonCircleLine",
|
358
|
-
"IconMoneyWonFill": "IconWonCircleFill",
|
359
|
-
"IconMoonThin": "IconMoonLine",
|
360
|
-
"IconMoonRegular": "IconMoonLine",
|
361
|
-
"IconMoonFill": "IconMoonFill",
|
362
|
-
"IconMoreHorizThin": "IconDot3HorizontalLine",
|
363
|
-
"IconMoreHorizRegular": "IconDot3HorizontalLine",
|
364
|
-
"IconMoreHorizFill": "IconDot3HorizontalFill",
|
365
|
-
"IconMoreVertThin": "IconDot3VerticalLine",
|
366
|
-
"IconMoreVertRegular": "IconDot3VerticalLine",
|
367
|
-
"IconMoreVertFill": "IconDot3VerticalFill",
|
368
|
-
"IconMyThin": "IconPersonLine",
|
369
|
-
"IconMyRegular": "IconPersonLine",
|
370
|
-
"IconMyFill": "IconPersonFill",
|
371
|
-
"IconMyProfileThin": "IconPersonCircleLine",
|
372
|
-
"IconMyProfileRegular": "IconPersonCircleLine",
|
373
|
-
"IconMyProfileFill": "IconPersonCircleFill",
|
374
|
-
"IconNearMeThin": "IconLocationpinLine",
|
375
|
-
"IconNearMeRegular": "IconLocationpinLine",
|
376
|
-
"IconNearMeFill": "IconLocationpinFill",
|
377
|
-
"IconNewtopicThin": "IconNUppercaseCircleLine",
|
378
|
-
"IconNewtopicRegular": "IconNUppercaseCircleLine",
|
379
|
-
"IconNewtopicFill": "IconNUppercaseCircleFill",
|
380
|
-
"IconNoteThin": "IconDocumentLine",
|
381
|
-
"IconNoteRegular": "IconDocumentLine",
|
382
|
-
"IconNoteFill": "IconDocumentFill",
|
383
|
-
"IconNotificationThin": "IconBellLine",
|
384
|
-
"IconNotificationRegular": "IconBellLine",
|
385
|
-
"IconNotificationFill": "IconBellFill",
|
386
|
-
"IconNotificationFallThin": "IconArrowDownLine",
|
387
|
-
"IconNotificationFallRegular": "IconArrowDownLine",
|
388
|
-
"IconNotificationFallFill": "IconArrowDownFill",
|
389
|
-
"IconNotificationOffThin": "IconBellSlashLine",
|
390
|
-
"IconNotificationOffRegular": "IconBellSlashLine",
|
391
|
-
"IconNotificationOffFill": "IconBellSlashFill",
|
392
|
-
"IconOrderThin": "IconCheckClipboardLine",
|
393
|
-
"IconOrderRegular": "IconCheckClipboardLine",
|
394
|
-
"IconOrderFill": "IconCheckClipboardFill",
|
395
|
-
"IconPauseThin": "IconVertrectangle2HorizontalLine",
|
396
|
-
"IconPauseRegular": "IconVertrectangle2HorizontalLine",
|
397
|
-
"IconPauseFill": "IconVertrectangle2HorizontalFill",
|
398
|
-
"IconPaymentThin": "IconCardLine",
|
399
|
-
"IconPaymentRegular": "IconCardLine",
|
400
|
-
"IconPaymentFill": "IconCardFill",
|
401
|
-
"IconPercentThin": "IconPercentLine",
|
402
|
-
"IconPercentRegular": "IconPercentLine",
|
403
|
-
"IconPercentFill": "IconPercentFill",
|
404
|
-
"IconPhotoThin": "IconPictureLine",
|
405
|
-
"IconPhotoRegular": "IconPictureLine",
|
406
|
-
"IconPhotoFill": "IconPictureFill",
|
407
|
-
"IconPhotoEditThin": "IconWandLine",
|
408
|
-
"IconPhotoEditRegular": "IconWandLine",
|
409
|
-
"IconPhotoEditFill": "IconWandFill",
|
410
|
-
"IconPhotoEditCropThin": "IconCropmarkLine",
|
411
|
-
"IconPhotoEditCropRegular": "IconCropmarkLine",
|
412
|
-
"IconPhotoEditCropFill": "IconCropmarkFill",
|
413
|
-
"IconPhotoEditDrawThin": "IconScribbleLine",
|
414
|
-
"IconPhotoEditDrawRegular": "IconScribbleLine",
|
415
|
-
"IconPhotoEditDrawFill": "IconScribbleFill",
|
416
|
-
"IconPhotoEditRotateThin": "IconArrow2ClockwiseCircularLine",
|
417
|
-
"IconPhotoEditRotateRegular": "IconArrow2ClockwiseCircularLine",
|
418
|
-
"IconPhotoEditRotateFill": "IconArrow2ClockwiseCircularFill",
|
419
|
-
"IconPhotoSeveralThin": "IconPicture2StackedLine",
|
420
|
-
"IconPhotoSeveralRegular": "IconPicture2StackedLine",
|
421
|
-
"IconPhotoSeveralFill": "IconPicture2StackedFill",
|
422
|
-
"IconPlayThin": "IconTriangleRightLine",
|
423
|
-
"IconPlayRegular": "IconTriangleRightLine",
|
424
|
-
"IconPlayFill": "IconTriangleRightFill",
|
425
|
-
"IconPollThin": "IconBarchartSquareLine",
|
426
|
-
"IconPollRegular": "IconBarchartSquareLine",
|
427
|
-
"IconPollFill": "IconBarchartSquareFill",
|
428
|
-
"IconPriceWonThin": "IconWonLine",
|
429
|
-
"IconPriceWonRegular": "IconWonLine",
|
430
|
-
"IconPriceWonFill": "IconWonFill",
|
431
|
-
"IconProductThin": "IconShoppingbagLine",
|
432
|
-
"IconProductRegular": "IconShoppingbagLine",
|
433
|
-
"IconProductFill": "IconShoppingbagFill",
|
434
|
-
"IconProfileThin": "IconPersonLine",
|
435
|
-
"IconProfileRegular": "IconPersonLine",
|
436
|
-
"IconProfileFill": "IconPersonFill",
|
437
|
-
"IconProfileBadgeThin": "IconCheckmarkBadgeLine",
|
438
|
-
"IconProfileBadgeRegular": "IconCheckmarkBadgeLine",
|
439
|
-
"IconProfileBadgeFill": "IconCheckmarkBadgeFill",
|
440
|
-
"IconProhibitionThin": "IconSlashCircleLine",
|
441
|
-
"IconProhibitionRegular": "IconSlashCircleLine",
|
442
|
-
"IconProhibitionFill": "IconSlashCircleFill",
|
443
|
-
"IconPushpinThin": "IconPushpinLine",
|
444
|
-
"IconPushpinRegular": "IconPushpinLine",
|
445
|
-
"IconPushpinFill": "IconPushpinFill",
|
446
|
-
"IconQuestionCheckThin": "IconQuestionmarkSqaureLine",
|
447
|
-
"IconQuestionCheckRegular": "IconQuestionmarkSqaureLine",
|
448
|
-
"IconQuestionCheckFill": "IconQuestionmarkSqaureFill",
|
449
|
-
"IconRedoThin": "IconArrowUturnRightLine",
|
450
|
-
"IconRedoRegular": "IconArrowUturnRightLine",
|
451
|
-
"IconRedoFill": "IconArrowUturnRightFill",
|
452
|
-
"IconRefundThin": "IconWonArrowClockwiseCircularLine",
|
453
|
-
"IconRefundRegular": "IconWonArrowClockwiseCircularLine",
|
454
|
-
"IconRefundFill": "IconWonArrowClockwiseCircularFill",
|
455
|
-
"IconRemoveCircleThin": "IconXmarkCircleLine",
|
456
|
-
"IconRemoveCircleRegular": "IconXmarkCircleLine",
|
457
|
-
"IconRemoveCircleFill": "IconXmarkCircleFill",
|
458
|
-
"IconReplyThin": "IconHorizline2VerticalChatbubbleRightLine",
|
459
|
-
"IconReplyRegular": "IconHorizline2VerticalChatbubbleRightLine",
|
460
|
-
"IconReplyFill": "IconHorizline2VerticalChatbubbleRightFill",
|
461
|
-
"IconReplyReThin": "IconCornerDownLeftLine",
|
462
|
-
"IconReplyReRegular": "IconCornerDownLeftLine",
|
463
|
-
"IconReplyReFill": "IconCornerDownLeftFill",
|
464
|
-
"IconReportThin": "IconFlagLine",
|
465
|
-
"IconReportRegular": "IconFlagLine",
|
466
|
-
"IconReportFill": "IconFlagFill",
|
467
|
-
"IconReservationThin": "IconCheckCalendarLine",
|
468
|
-
"IconReservationRegular": "IconCheckCalendarLine",
|
469
|
-
"IconReservationFill": "IconCheckCalendarFill",
|
470
|
-
"IconRestaurantThin": "IconForkSpoonLine",
|
471
|
-
"IconRestaurantRegular": "IconForkSpoonLine",
|
472
|
-
"IconRestaurantFill": "IconForkSpoonFill",
|
473
|
-
"IconRetryThin": "IconArrowClockwiseCircularLine",
|
474
|
-
"IconRetryRegular": "IconArrowClockwiseCircularLine",
|
475
|
-
"IconRetryFill": "IconArrowClockwiseCircularFill",
|
476
|
-
"IconReviewStarThin": "IconStarLine",
|
477
|
-
"IconReviewStarRegular": "IconStarLine",
|
478
|
-
"IconReviewStarFill": "IconStarFill",
|
479
|
-
"IconScannerThin": "IconHorizelineViewfinderLine",
|
480
|
-
"IconScannerRegular": "IconHorizelineViewfinderLine",
|
481
|
-
"IconScannerFill": "IconHorizelineViewfinderFill",
|
482
|
-
"IconSearchThin": "IconMagnifyingglassLine",
|
483
|
-
"IconSearchRegular": "IconMagnifyingglassLine",
|
484
|
-
"IconSearchFill": "IconMagnifyingglassFill",
|
485
|
-
"IconSearchDocThin": "IconDocumentMagnifyingglassLine",
|
486
|
-
"IconSearchDocRegular": "IconDocumentMagnifyingglassLine",
|
487
|
-
"IconSearchDocFill": "IconDocumentMagnifyingglassFill",
|
488
|
-
"IconSellThin": "IconPlusSquareLine",
|
489
|
-
"IconSellRegular": "IconPlusSquareLine",
|
490
|
-
"IconSellFill": "IconPlusSquareFill",
|
491
|
-
"IconSettingThin": "IconGearLine",
|
492
|
-
"IconSettingRegular": "IconGearLine",
|
493
|
-
"IconSettingFill": "IconGearFill",
|
494
|
-
"IconSignoutThin": "IconBracketLeftArrowRightLine",
|
495
|
-
"IconSignoutRegular": "IconBracketLeftArrowRightLine",
|
496
|
-
"IconSignoutFill": "IconBracketLeftArrowRightFill",
|
497
|
-
"IconSortThin": "IconArrowUpArrowDownLine",
|
498
|
-
"IconSortRegular": "IconArrowUpArrowDownLine",
|
499
|
-
"IconSortFill": "IconArrowUpArrowDownFill",
|
500
|
-
"IconStoryThin": "IconTriangleRightChatbubbleLeftLine",
|
501
|
-
"IconStoryRegular": "IconTriangleRightChatbubbleLeftLine",
|
502
|
-
"IconStoryFill": "IconTriangleRightChatbubbleLeftFill",
|
503
|
-
"IconStoryArticleThin": "IconDocumentPenLine",
|
504
|
-
"IconStoryArticleRegular": "IconDocumentPenLine",
|
505
|
-
"IconStoryArticleFill": "IconDocumentPenFill",
|
506
|
-
"IconSubtractCircleThin": "IconMinusCircleLine",
|
507
|
-
"IconSubtractCircleRegular": "IconMinusCircleLine",
|
508
|
-
"IconSubtractCircleFill": "IconMinusCircleFill",
|
509
|
-
"IconSubtractionThin": "IconMinusLine",
|
510
|
-
"IconSubtractionRegular": "IconMinusLine",
|
511
|
-
"IconSubtractionFill": "IconMinusFill",
|
512
|
-
"IconSunThin": "IconSunLine",
|
513
|
-
"IconSunRegular": "IconSunLine",
|
514
|
-
"IconSunFill": "IconSunFill",
|
515
|
-
"IconTalkingdownThin": "IconQuotationmark2RightLine",
|
516
|
-
"IconTalkingdownRegular": "IconQuotationmark2RightLine",
|
517
|
-
"IconTalkingdownFill": "IconQuotationmark2RightFill",
|
518
|
-
"IconTalkingupThin": "IconQuotationmark2LeftLine",
|
519
|
-
"IconTalkingupRegular": "IconQuotationmark2LeftLine",
|
520
|
-
"IconTalkingupFill": "IconQuotationmark2LeftFill",
|
521
|
-
"IconTextThin": "IconTUppercaseSerifLine",
|
522
|
-
"IconTextRegular": "IconTUppercaseSerifLine",
|
523
|
-
"IconTextFill": "IconTUppercaseSerifFill",
|
524
|
-
"IconThumbDownThin": "IconThumbDownLine",
|
525
|
-
"IconThumbDownRegular": "IconThumbDownLine",
|
526
|
-
"IconThumbDownFill": "IconThumbDownFill",
|
527
|
-
"IconThumbUpThin": "IconThumbUpLine",
|
528
|
-
"IconThumbUpRegular": "IconThumbUpLine",
|
529
|
-
"IconThumbUpFill": "IconThumbUpFill",
|
530
|
-
"IconToolboxThin": "IconToolboxLine",
|
531
|
-
"IconToolboxRegular": "IconToolboxLine",
|
532
|
-
"IconToolboxFill": "IconToolboxFill",
|
533
|
-
"IconTranslateThin": "IconTranslationLine",
|
534
|
-
"IconTranslateRegular": "IconTranslationLine",
|
535
|
-
"IconTranslateFill": "IconTranslationFill",
|
536
|
-
"IconTrashThin": "IconTrashcanLine",
|
537
|
-
"IconTrashRegular": "IconTrashcanLine",
|
538
|
-
"IconTrashFill": "IconTrashcanFill",
|
539
|
-
"IconUndoThin": "IconArrowUturnLeftLine",
|
540
|
-
"IconUndoRegular": "IconArrowUturnLeftLine",
|
541
|
-
"IconUndoFill": "IconArrowUturnLeftFill",
|
542
|
-
"IconUserGroupThin": "IconPerson2Line",
|
543
|
-
"IconUserGroupRegular": "IconPerson2Line",
|
544
|
-
"IconUserGroupFill": "IconPerson2Fill",
|
545
|
-
"IconVideoThin": "IconCamcorderLine",
|
546
|
-
"IconVideoRegular": "IconCamcorderLine",
|
547
|
-
"IconVideoFill": "IconCamcorderFill",
|
548
|
-
"IconViewCountThin": "IconEyeLine",
|
549
|
-
"IconViewCountRegular": "IconEyeLine",
|
550
|
-
"IconViewCountFill": "IconEyeFill",
|
551
|
-
"IconViewCountOffThin": "IconEyeSlashLine",
|
552
|
-
"IconViewCountOffRegular": "IconEyeSlashLine",
|
553
|
-
"IconViewCountOffFill": "IconEyeSlashFill",
|
554
|
-
"IconVolumeOffThin": "IconSpeakerSlashLine",
|
555
|
-
"IconVolumeOffRegular": "IconSpeakerSlashLine",
|
556
|
-
"IconVolumeOffFill": "IconSpeakerSlashFill",
|
557
|
-
"IconVolumeOnThin": "IconSpeakerWave2Line",
|
558
|
-
"IconVolumeOnRegular": "IconSpeakerWave2Line",
|
559
|
-
"IconVolumeOnFill": "IconSpeakerWave2Fill",
|
560
|
-
"IconVoteThin": "IconCheckBallotboxLine",
|
561
|
-
"IconVoteRegular": "IconCheckBallotboxLine",
|
562
|
-
"IconVoteFill": "IconCheckBallotboxFill",
|
563
|
-
"IconVoucherThin": "IconGiftLine",
|
564
|
-
"IconVoucherRegular": "IconGiftLine",
|
565
|
-
"IconVoucherFill": "IconGiftFill",
|
566
|
-
"IconWalkThin": "IconFigureWalkLine",
|
567
|
-
"IconWalkRegular": "IconFigureWalkLine",
|
568
|
-
"IconWalkFill": "IconFigureWalkFill",
|
569
|
-
"IconWarningThin": "IconExclamationmarkCircleLine",
|
570
|
-
"IconWarningRegular": "IconExclamationmarkCircleLine",
|
571
|
-
"IconWarningFill": "IconExclamationmarkCircleFill",
|
572
|
-
"IconWriteThin": "IconPenHorizlineLine",
|
573
|
-
"IconWriteRegular": "IconPenHorizlineLine",
|
574
|
-
"IconWriteFill": "IconPenHorizlineFill",
|
575
|
-
"IconWriteFrequentUseThin": "IconDocumentPlusLine",
|
576
|
-
"IconWriteFrequentUseRegular": "IconDocumentPlusLine",
|
577
|
-
"IconWriteFrequentUseFill": "IconDocumentPlusFill"
|
578
|
-
}
|
@@ -1,80 +0,0 @@
|
|
1
|
-
import type { Transform } from "jscodeshift";
|
2
|
-
import { migrateIdentifiers, migrateImportDeclarations } from "../utils/replace-node.js";
|
3
|
-
import { createLogger } from "winston";
|
4
|
-
import { loggerOptions } from "../utils/log.js";
|
5
|
-
import { identifierMapReact } from "../utils/identifier-map.js";
|
6
|
-
|
7
|
-
export interface MigrateIconsOptions {
|
8
|
-
match?: {
|
9
|
-
source: { startsWith: string; replaceWith?: string }[];
|
10
|
-
identifier: Record<string, string>;
|
11
|
-
};
|
12
|
-
}
|
13
|
-
|
14
|
-
const reactMatch: MigrateIconsOptions["match"] = {
|
15
|
-
source: [
|
16
|
-
{ startsWith: "@seed-design/icon", replaceWith: "@seed-design/react-icon" },
|
17
|
-
{ startsWith: "@seed-design/react-icon" },
|
18
|
-
],
|
19
|
-
identifier: identifierMapReact,
|
20
|
-
};
|
21
|
-
|
22
|
-
const migrateIcons: Transform = (file, api, { match = reactMatch }: MigrateIconsOptions) => {
|
23
|
-
const logger = createLogger(loggerOptions);
|
24
|
-
|
25
|
-
logger.debug(`${file.path}: 확인 시작`);
|
26
|
-
|
27
|
-
const j = api.jscodeshift;
|
28
|
-
const tree = j(file.source);
|
29
|
-
|
30
|
-
const getFirstNode = () => tree.find(j.Program).get("body", 0).node;
|
31
|
-
const firstNode = getFirstNode();
|
32
|
-
|
33
|
-
const importDeclarations = tree.find(j.ImportDeclaration, {
|
34
|
-
source: {
|
35
|
-
value: (value: unknown) => {
|
36
|
-
if (typeof value !== "string") return false;
|
37
|
-
|
38
|
-
return match.source.some(({ startsWith }) => value.startsWith(startsWith));
|
39
|
-
},
|
40
|
-
},
|
41
|
-
});
|
42
|
-
|
43
|
-
if (importDeclarations.length === 0) {
|
44
|
-
logger.debug(`${file.path}: 이 파일에는 import문 없음`);
|
45
|
-
return file.source;
|
46
|
-
}
|
47
|
-
|
48
|
-
logger.debug(`${file.path}: import문 ${importDeclarations.length}개 발견`);
|
49
|
-
migrateImportDeclarations({ importDeclarations, match, logger, filePath: file.path });
|
50
|
-
|
51
|
-
logger.debug(`${file.path}: import문 변환 완료`);
|
52
|
-
|
53
|
-
logger.debug(`${file.path}: identifier 변환 시작`);
|
54
|
-
|
55
|
-
const identifiers = tree.find(j.Identifier, {
|
56
|
-
name: (value) => Object.keys(match.identifier).includes(value),
|
57
|
-
});
|
58
|
-
|
59
|
-
logger.debug(`${file.path}: identifier ${identifiers.length}개 발견`);
|
60
|
-
migrateIdentifiers({
|
61
|
-
identifiers,
|
62
|
-
identifierMatch: match.identifier,
|
63
|
-
logger,
|
64
|
-
filePath: file.path,
|
65
|
-
});
|
66
|
-
|
67
|
-
logger.debug(`${file.path}: identifier 변환 완료`);
|
68
|
-
|
69
|
-
const firstNodeAfterModification = getFirstNode();
|
70
|
-
|
71
|
-
if (firstNode !== firstNodeAfterModification) {
|
72
|
-
firstNodeAfterModification.comments = firstNode.comments;
|
73
|
-
}
|
74
|
-
|
75
|
-
logger.debug(`${file.path}: 확인 완료`);
|
76
|
-
|
77
|
-
return tree.toSource();
|
78
|
-
};
|
79
|
-
|
80
|
-
export default migrateIcons;
|