Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 548 Bytes

File metadata and controls

39 lines (26 loc) · 548 Bytes

shell-codemod

Transform legacy code patterns

Installation

# Install from registry
codemod run shell-codemod

# Or run locally
codemod run -w workflow.yaml

Usage

This codemod transforms typescript code by:

  • Converting var declarations to const/let
  • Removing debug statements
  • Modernizing syntax patterns

Development

# Test the transformation
bash scripts/transform.sh

# Validate the workflow
codemod validate -w workflow.yaml

# Publish to registry
codemod login
codemod publish

License

MIT