Skip to content

Commit 59411a9

Browse files
committed
Replace original rtk-codemods folder with new implementation
1 parent cdea9e5 commit 59411a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+72
-285
lines changed
File renamed without changes.
File renamed without changes.

packages/rtk-codemods/README.md

Lines changed: 42 additions & 2 deletions
File renamed without changes.

packages/rtk-codemods/jest.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
2+
testEnvironment: 'node',
23
automock: false,
3-
roots: ['v2.0/__tests__'],
4+
// roots: ['v2.0/__tests__'],
45
transform: { '\\.ts$': ['ts-jest'] },
5-
}
6+
};

packages/rtk-codemods/package.json

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
{
2-
"name": "@reduxjs/rtk-codemods",
3-
"version": "0.0.1",
4-
"author": {
5-
"name": "Lenz Weber",
6-
"email": "mail@phryneas.de",
7-
"url": "https://phryneas.de/"
8-
},
9-
"license": "MIT",
10-
"type": "module",
2+
"name": "rtk-codemods",
3+
"version": "0.1.0",
114
"scripts": {
12-
"test:codemods": "jest --config codemods/jest.config.js"
5+
"lint": "eslint --cache .",
6+
"test": "codemod-cli test",
7+
"test:coverage": "codemod-cli test --coverage",
8+
"update-docs": "codemod-cli update-docs",
9+
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls"
1310
},
11+
"bin": "./bin/cli.js",
12+
"keywords": [
13+
"codemod-cli"
14+
],
1415
"dependencies": {
15-
"jest": "^27",
16-
"jscodeshift": "^0.13.1"
16+
"codemod-cli": "^3.2.0"
1717
},
1818
"devDependencies": {
1919
"@types/jest": "^27",
20-
"@types/jscodeshift": "^0.11.5"
21-
},
22-
"publishConfig": {
23-
"access": "public"
20+
"@types/jscodeshift": "^0.11.5",
21+
"coveralls": "^3.1.0",
22+
"eslint": "^7.25.0",
23+
"eslint-config-prettier": "^8.3.0",
24+
"eslint-plugin-node": "^11.1.0",
25+
"eslint-plugin-prettier": "^3.4.0",
26+
"jest": "^27",
27+
"prettier": "^2.2.1",
28+
"ts-jest": "^27"
2429
},
25-
"files": [
26-
"src",
27-
"dist"
28-
]
30+
"engines": {
31+
"node": ">= 14"
32+
}
2933
}

0 commit comments

Comments
 (0)