Skip to content

Commit 7e8d937

Browse files
committed
simplified script names
1 parent 032711e commit 7e8d937

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

.github/workflows/quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Install
2424
uses: ./.github/composite-actions/install
2525
- name: Run format check
26-
run: npm run format:check
26+
run: npm run format
2727

2828
lint:
2929
name: Lint
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install
3535
uses: ./.github/composite-actions/install
3636
- name: Run lint check
37-
run: npm run lint:check
37+
run: npm run lint
3838

3939
typecheck:
4040
name: Typecheck
@@ -45,7 +45,7 @@ jobs:
4545
- name: Install
4646
uses: ./.github/composite-actions/install
4747
- name: Run type check
48-
run: npm run types:check
48+
run: npm run typecheck
4949

5050
build:
5151
name: Build

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
npx lint-staged
2-
npm run types:check
2+
npm run typecheck

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ All checks are run automatically before committing by using [husky](https://gith
2727
The checks can be run manually by running the below command too.
2828

2929
```bash
30-
npm run codequality:check
30+
npm run codequality
3131
```
3232

3333
And the same checks can be run also by enabling fixes for auto-fixable issues.
@@ -40,17 +40,17 @@ npm run codequality:fix
4040

4141
```bash
4242
# ESLint checks
43-
npm run lint:check
43+
npm run lint
4444
# ESLint fixes
4545
npm run lint:fix
4646

4747
# Prettier checks
48-
npm run format:check
48+
npm run format
4949
# Prettier fixes
5050
npm run format:fix
5151

5252
# TypeScript checks
53-
npm run types:check
53+
npm run typecheck
5454
# There is no auto-fix script for TypeScript.
5555
```
5656

@@ -61,7 +61,7 @@ We use `npm-check-updates` package to automatically check if there are newer ver
6161
To run it, we can use the below command. It starts an interactive CLI to check the dependencies of all the apps and packages, including the root dependencies.
6262

6363
```bash
64-
npm run updates:check
64+
npm run updates
6565
```
6666

6767
## Adding Contributors
@@ -90,10 +90,10 @@ To be sure the output is OK for ESM and CJS clients, we can run the below comman
9090

9191
```bash
9292
# For `publint`
93-
npm run publint:check -w react-infinite-scroll-hook
93+
npm run publint -w react-infinite-scroll-hook
9494

9595
# For `Are the Types Wrong`
96-
npm run attw:check -w react-infinite-scroll-hook
96+
npm run attw -w react-infinite-scroll-hook
9797
```
9898

9999
To see the content of the package which can be uploaded to [npm](https://www.npmjs.com/) can be seen by using the below command. It will create a tarball from `react-infinite-scroll-hook` package.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
"scripts": {
1010
"build": "turbo build",
1111
"build:bundle": "turbo build --filter=react-infinite-scroll-hook",
12-
"codequality:check": "npm run format:check && npm run lint:check && npm run types:check",
13-
"codequality:fix": "npm run format:fix && npm run lint:fix && npm run types:check",
12+
"codequality": "npm run format && npm run lint && npm run typecheck",
13+
"codequality:fix": "npm run format:fix && npm run lint:fix && npm run typecheck",
1414
"contributors:add": "all-contributors add",
1515
"contributors:generate": "all-contributors generate",
1616
"dev": "turbo dev",
17-
"format:check": "prettier --check --ignore-unknown .",
17+
"format": "prettier --check --ignore-unknown .",
1818
"format:fix": "prettier --write --ignore-unknown .",
19-
"lint:check": "turbo lint:check",
19+
"lint": "turbo lint",
2020
"lint:fix": "turbo lint:fix",
2121
"prepare": "husky && npm run build:bundle",
22-
"types:check": "turbo types:check",
23-
"updates:check": "npm-check-updates -i -ws --root"
22+
"typecheck": "turbo typecheck",
23+
"updates": "npm-check-updates -i -ws --root"
2424
},
2525
"devDependencies": {
2626
"all-contributors-cli": "^6.26.1",

packages/react-infinite-scroll-hook/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
"dist"
3838
],
3939
"scripts": {
40-
"attw:check": "attw --pack .",
40+
"attw": "attw --pack .",
4141
"build": "tsup",
4242
"dev": "tsup --watch",
43-
"lint:check": "eslint . --max-warnings 0",
43+
"lint": "eslint . --max-warnings 0",
4444
"lint:fix": "eslint . --fix --max-warnings 0",
4545
"prepublishOnly": "npm run build",
46-
"publint:check": "publint",
47-
"types:check": "tsc"
46+
"publint": "publint",
47+
"typecheck": "tsc"
4848
},
4949
"dependencies": {
5050
"react-intersection-observer-hook": "^3.0.0"

turbo.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"cache": false,
1111
"persistent": true
1212
},
13-
"lint:check": {
14-
"dependsOn": ["^build", "^lint:check"]
13+
"lint": {
14+
"dependsOn": ["^build", "^lint"]
1515
},
1616
"lint:fix": {
1717
"dependsOn": ["^build", "^lint:fix"]
1818
},
19-
"types:check": {
19+
"typecheck": {
2020
"dependsOn": ["^build"]
2121
}
2222
}

0 commit comments

Comments
 (0)