Skip to content

Commit

Permalink
Merge pull request #4169 from aryaemami59/fix-codemods
Browse files Browse the repository at this point in the history
Rename `cli.js` to `cli.mjs`
  • Loading branch information
EskiMojo14 committed Feb 7, 2024
2 parents f75f185 + dd7f570 commit 823590a
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/rtk-codemods/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rtk-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
## Local Usage

```
node ./bin/cli.js <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
node ./bin/cli.mjs <TRANSFORM NAME> path/of/files/ or/some**/*glob.js
```

## Transforms
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/rtk-codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test:watch": "vitest --watch",
"test:coverage": "vitest --coverage"
},
"bin": "./bin/cli.js",
"bin": "./bin/cli.mjs",
"files": [
"bin/*",
"transforms/**/index.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rtk-codemods createReducerBuilder path/of/files/ or/some**/*glob.js
## Local Usage

```
node ./bin/cli.js createReducerBuilder path/of/files/ or/some**/*glob.js
node ./bin/cli.mjs createReducerBuilder path/of/files/ or/some**/*glob.js
```

## Input / Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rtk-codemods createSliceBuilder path/of/files/ or/some**/*glob.js
## Local Usage

```
node ./bin/cli.js createSliceBuilder path/of/files/ or/some**/*glob.js
node ./bin/cli.mjs createSliceBuilder path/of/files/ or/some**/*glob.js
```

## Input / Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ yarn global add @reduxjs/rtk-codemods
## Local Usage

```
node ./bin/cli.js createSliceReducerBuilder path/of/files/ or/some**/*glob.js
node ./bin/cli.mjs createSliceReducerBuilder path/of/files/ or/some**/*glob.js
```

## Input / Output
Expand Down
2 changes: 1 addition & 1 deletion packages/rtk-codemods/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"@reduxjs/toolkit/query/react": ["../toolkit/src/query/react/index.ts"] // @remap-prod-remove-line
}
},
"include": ["**/*.ts", "**/*.tsx", "bin/cli.js"]
"include": ["**/*.ts", "**/*.tsx", "bin/cli.mjs"]
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7438,7 +7438,7 @@ __metadata:
typescript: ^5.3.3
vitest: ^1.2.1
bin:
rtk-codemods: ./bin/cli.js
rtk-codemods: ./bin/cli.mjs
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 823590a

Please sign in to comment.