Skip to content

Commit

Permalink
refactor(beizer-codemod): include stack transform function to refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwooseong committed Dec 19, 2023
1 parent f0e8d58 commit 252c358
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/bezier-codemod/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import project from './project.js'
import enumMemberToStringLiteral from './transforms/enum-member-to-string-literal/transform.js'
import iconNameToBezierIcon from './transforms/icon-name-to-bezier-icons/transform.js'
import iconsToBezierIcons from './transforms/icons-to-bezier-icons/transform.js'
import removeAlphaFromAlphaStack from './transforms/remove-alpha-from-alpha-stack.js'
import removeAlphaFromAlphaStack from './transforms/v2-remove-alpha-from-alpha-stack/transform.js'
import foundationToCssVariableBorder from './transforms/v2-foundation-to-css-variable/border.js'
import foundationToCssVariableElevation from './transforms/v2-foundation-to-css-variable/elevation.js'
import foundationToCssVariableRounding from './transforms/v2-foundation-to-css-variable/rounding.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { testTransformFunction } from '../../../utils/test.js'
import stackTransform from '../../remove-alpha-from-alpha-stack.js'
import { testTransformFunction } from '../../utils/test.js'

import stackTransform from './transform.js'

describe('import transform', () => {
it('should add legacy prefix from Stack component in tsx file', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SyntaxKind,
} from 'ts-morph'

import { renameNamedImport } from '../utils/import.js'
import { renameNamedImport } from '../../utils/import.js'

const LEGACY_STACKS = ['Stack', 'HStack', 'VStack', 'StackItem', 'Spacer']
const ALPHA_STACKS = ['AlphaStack']
Expand Down

0 comments on commit 252c358

Please sign in to comment.