Skip to content

Commit

Permalink
Make reselect-codemods a Yarn workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Oct 2, 2024
1 parent 7bf0412 commit ad9c2c4
Show file tree
Hide file tree
Showing 6 changed files with 2,010 additions and 4,303 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-reselect-codemods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache-dependency-path: ./codemods
cache: 'yarn'

- name: Check folder contents
Expand Down
45 changes: 24 additions & 21 deletions codemods/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{
"name": "reselect-codemods",
"version": "0.1.0",
"version": "0.0.1",
"description": "A collection of codemods for the reselect library",
"keywords": [
"redux",
"redux-toolkit",
"reselect",
"codemod"
],
"homepage": "https://github.com/reduxjs/reselect/tree/master/codemods#readme",
"bugs": {
"url": "https://github.com/reduxjs/reselect/issues"
},
"scripts": {
"format": "prettier -w . --config prettier.config.mjs",
"format-check": "prettier -c . --config prettier.config.mjs",
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
"lint-fix": "eslint --fix --flag unstable_ts_config -c eslint.config.mts",
"test": "vitest --run"
"repository": {
"directory": "codemods",
"type": "git",
"url": "git+https://github.com/reduxjs/reselect.git"
},
"sideEffects": false,
"bin": "./bin/cli.mjs",
"files": [
"bin/*",
Expand All @@ -20,12 +26,13 @@
"package.json",
"README.md"
],
"keywords": [
"redux",
"redux-toolkit",
"reselect",
"codemod"
],
"scripts": {
"format": "prettier -w . --config prettier.config.mjs",
"format-check": "prettier -c . --config prettier.config.mjs",
"lint": "eslint --flag unstable_ts_config -c eslint.config.mts",
"lint-fix": "eslint --fix --flag unstable_ts_config -c eslint.config.mts",
"test": "vitest --run"
},
"dependencies": {
"execa": "^9.4.0",
"globby": "^14.0.2",
Expand All @@ -42,19 +49,15 @@
"eslint-config-prettier": "^9.1.0",
"jiti": "^2.1.0",
"prettier": "^3.3.3",
"reselect": "workspace:^",
"typescript-eslint": "^8.8.0",
"vitest": "^2.1.2"
},
"engines": {
"node": ">= 16"
},
"publishConfig": {
"access": "public"
},
"repository": {
"directory": "codemods",
"type": "git",
"url": "git+https://github.com/reduxjs/reselect.git"
},
"sideEffects": false
"access": "public",
"provenance": true
}
}
5 changes: 1 addition & 4 deletions codemods/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"paths": {
"reselect": ["../src/index.ts"]
},
"rootDir": ".",
"rootDir": "./",
"skipLibCheck": true,
"strict": true,
"target": "ESNext",
Expand Down
Loading

0 comments on commit ad9c2c4

Please sign in to comment.