Skip to content

Commit 5cf4d21

Browse files
committed
refacotr: fix readme.md text
1 parent 8dde045 commit 5cf4d21

File tree

3 files changed

+3
-35
lines changed

3 files changed

+3
-35
lines changed

codemods/regexp-to-arkregex/README.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ Migrate `new RegExp()` constructor calls to [arkregex](https://arktype.io/docs/r
44

55
## What it does
66

7-
This codemod automatically transforms your code to use arkregex, a type-safe regex library that provides:
8-
9-
- Type inference for regex patterns
10-
- Compile-time validation
11-
- Better TypeScript integration
7+
This codemod automatically transforms your code to use arkregex, a type-safe regex library.
128

139
### Transformation Example
1410

@@ -26,31 +22,3 @@ import { regex } from "arkregex";
2622
const pattern = regex("\\d+", "g");
2723
const emailRegex = regex("^[a-z]+@[a-z]+\\.[a-z]+$");
2824
```
29-
30-
## Installation
31-
32-
```bash
33-
# Run from registry
34-
codemod run @codemod/arkregex
35-
36-
# Or run locally
37-
codemod run -w workflow.yaml
38-
```
39-
40-
## Development
41-
42-
```bash
43-
# Test the transformation
44-
npm test
45-
46-
# Validate the workflow
47-
codemod validate -w workflow.yaml
48-
49-
# Publish to registry
50-
codemod login
51-
codemod publish
52-
```
53-
54-
## License
55-
56-
MIT

codemods/regexp-to-arkregex/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version: "1.0"
22

33
name: "@codemod/regexp-to-arkregex"
4-
version: "0.1.0"
4+
version: "0.1.1"
55
description: "using arkregex instead of `new RegExp`"
66
author: "Amirabbas Ghasemi <[email protected]>"
77
license: "MIT"

codemods/regexp-to-arkregex/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codemod/regexp-to-arkregex",
3-
"version": "0.1.0",
3+
"version": "0.1.1`",
44
"description": "using arkregex instead of `new RegExp`",
55
"type": "module",
66
"devDependencies": {

0 commit comments

Comments
 (0)