Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drop location from Migration type
  • Loading branch information
RobinMalfait committed May 14, 2025
commit ebeff4f577b2eaa8288834a0ebae31ee73c767f4
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ export type Migration = (
designSystem: DesignSystem,
userConfig: Config | null,
rawCandidate: string,
location?: {
contents: string
start: number
end: number
},
) => string | Promise<string>

export const DEFAULT_MIGRATIONS: Migration[] = [
Expand Down Expand Up @@ -66,7 +61,7 @@ let migrateCached = new DefaultMap<
return new DefaultMap((userConfig) => {
return new DefaultMap(async (rawCandidate) => {
for (let migration of DEFAULT_MIGRATIONS) {
rawCandidate = await migration(designSystem, userConfig, rawCandidate, undefined)
rawCandidate = await migration(designSystem, userConfig, rawCandidate)
}
return rawCandidate
})
Expand Down