@channel.io/bezier-codemod
Advanced tools
Comparing version 0.5.0-alpha.6 to 0.5.0-alpha.7
@@ -5,5 +5,5 @@ import React, { useCallback, useEffect, useState, } from 'react'; | ||
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 enumMemberToStringLiteral from './transforms/v2-enum-member-to-string-literal/transform.js'; | ||
import foundationToCssVariableBorder from './transforms/v2-foundation-to-css-variable/border.js'; | ||
@@ -35,3 +35,3 @@ import foundationToCssVariableElevation from './transforms/v2-foundation-to-css-variable/elevation.js'; | ||
Option["IconNameToBezierIcon"] = "icon-name-to-bezier-icon"; | ||
Option["EnumMemberToStringLiteral"] = "enum-member-to-string-literal"; | ||
Option["V2EnumMemberToStringLiteral"] = "v2-enum-member-to-string-literal"; | ||
Option["V2FoundationToCssVariable"] = "v2-foundation-to-css-variable"; | ||
@@ -57,3 +57,3 @@ Option["V2FoundationToCssVariableTheme"] = "v2-foundation-to-css-variable-theme"; | ||
[Option.IconNameToBezierIcon]: iconNameToBezierIcon, | ||
[Option.EnumMemberToStringLiteral]: enumMemberToStringLiteral, | ||
[Option.V2EnumMemberToStringLiteral]: enumMemberToStringLiteral, | ||
[Option.V2FoundationToCssVariableTheme]: foundationToCssVariableTheme, | ||
@@ -60,0 +60,0 @@ [Option.V2FoundationToCssVariableBorder]: foundationToCssVariableBorder, |
import { type SourceFile } from 'ts-morph'; | ||
type Name = string; | ||
type Member = string; | ||
type Value = string; | ||
type Value = string | number; | ||
export type EnumTransformMap = Record<Name, Record<Member, Value>>; | ||
export declare const transformEnumToStringLiteralInBezier: (sourceFile: SourceFile, enumTransforms: EnumTransformMap) => true | undefined; | ||
export {}; |
import { type PropertyAccessExpression } from 'ts-morph'; | ||
export declare const renameEnumMember: (node: PropertyAccessExpression, to: string) => void; | ||
export declare const renameEnumMember: (node: PropertyAccessExpression, to: string | number) => void; |
{ | ||
"name": "@channel.io/bezier-codemod", | ||
"version": "0.5.0-alpha.6", | ||
"description": "Codemod transformations to help upgrade app using Bezier design system.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/channel-io/bezier-react", | ||
"directory": "packages/bezier-codemod" | ||
}, | ||
"author": "Channel Corp.", | ||
"license": "Apache-2.0", | ||
"bin": "dist/cli.js", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"build": "tsc --build --verbose", | ||
"dev": "tsc --watch", | ||
"lint": "TIMING=1 eslint --cache .", | ||
"typecheck": "tsc --noEmit", | ||
"test": "jest", | ||
"clean": "rm -rf dist node_modules .turbo .eslintcache .jestcache" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"@inkjs/ui": "^1.0.0", | ||
"ink": "^4.4.1", | ||
"meow": "^12.1.1", | ||
"react": "^18.2.0", | ||
"ts-morph": "^19.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.6.0", | ||
"@types/react": "^18.2.21", | ||
"eslint-config-bezier": "workspace:*", | ||
"tsconfig": "workspace:*" | ||
}, | ||
"keywords": [ | ||
"codemod", | ||
"channel" | ||
] | ||
"name": "@channel.io/bezier-codemod", | ||
"version": "0.5.0-alpha.7", | ||
"description": "Codemod transformations to help upgrade app using Bezier design system.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/channel-io/bezier-react", | ||
"directory": "packages/bezier-codemod" | ||
}, | ||
"author": "Channel Corp.", | ||
"license": "Apache-2.0", | ||
"bin": "dist/cli.js", | ||
"type": "module", | ||
"engines": { | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"build": "tsc --build --verbose", | ||
"dev": "tsc --watch", | ||
"lint": "TIMING=1 eslint --cache .", | ||
"typecheck": "tsc --noEmit", | ||
"test": "jest", | ||
"clean": "rm -rf dist node_modules .turbo .eslintcache .jestcache" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"@inkjs/ui": "^1.0.0", | ||
"ink": "^4.4.1", | ||
"meow": "^13.2.0", | ||
"react": "^18.2.0", | ||
"ts-morph": "^21.0.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.11.20", | ||
"@types/react": "^18.2.59", | ||
"eslint-config-bezier": "workspace:*", | ||
"tsconfig": "workspace:*" | ||
}, | ||
"keywords": [ | ||
"codemod", | ||
"channel" | ||
] | ||
} |
@@ -53,3 +53,3 @@ # Bezier Codemod | ||
**`enum-member-to-string-literal`** | ||
**`v2-enum-member-to-string-literal`** | ||
@@ -56,0 +56,0 @@ Replace deprecated enum usage to string literal. |
91092
1657
+ Added@ts-morph/common@0.22.0(transitive)
+ Addedmeow@13.2.0(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedmkdirp@3.0.1(transitive)
+ Addedts-morph@21.0.1(transitive)
- Removed@ts-morph/common@0.20.0(transitive)
- Removedmeow@12.1.1(transitive)
- Removedminimatch@7.4.6(transitive)
- Removedmkdirp@2.1.6(transitive)
- Removedts-morph@19.0.0(transitive)
Updatedmeow@^13.2.0
Updatedts-morph@^21.0.1