Skip to content

Commit b0767ef

Browse files
chore: standardize npm script names (#582)
* chore: standardize npm script names * ci: update test GHA job * chore: standardize npm script names * chore: standardize npm script names * docs: update README * chore: fix build:docs script Co-authored-by: Milos Djermanovic <[email protected]> --------- Co-authored-by: Milos Djermanovic <[email protected]>
1 parent 3907385 commit b0767ef

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,5 @@ jobs:
4141
node-version: ${{ matrix.node }}
4242
- name: Install dependencies
4343
run: npm install
44-
- name: Build commonjs
45-
run: npm run build
4644
- name: Run tests
47-
run: npm run unit
45+
run: npm run test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ We work hard to ensure that Espree is safe for everyone and that security issues
183183

184184
## Build Commands
185185

186-
* `npm test` - run all linting and tests
186+
* `npm test` - run all tests
187187
* `npm run lint` - run all linting
188188

189189
## Differences from Espree 2.x

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,21 @@
6767
"pre-commit": "lint-staged"
6868
},
6969
"scripts": {
70-
"unit": "npm-run-all -s unit:*",
71-
"unit:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
72-
"unit:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs",
73-
"test": "npm-run-all -p unit lint",
74-
"lint": "eslint . --report-unused-disable-directives",
75-
"fixlint": "npm run lint -- --fix",
7670
"build": "rollup -c rollup.config.js",
7771
"build:debug": "npm run build -- -m",
78-
"update-version": "node tools/update-version.js",
72+
"build:docs": "node tools/sync-docs.js",
73+
"build:update-version": "node tools/update-version.js",
74+
"lint": "eslint . --report-unused-disable-directives",
75+
"lint:fix": "npm run lint -- --fix",
76+
"prepublishOnly": "npm run build:update-version && npm run build",
7977
"pretest": "npm run build",
80-
"prepublishOnly": "npm run update-version && npm run build",
81-
"sync-docs": "node sync-docs.js",
82-
"generate-release": "eslint-generate-release",
83-
"generate-alpharelease": "eslint-generate-prerelease alpha",
84-
"generate-betarelease": "eslint-generate-prerelease beta",
85-
"generate-rcrelease": "eslint-generate-prerelease rc",
86-
"publish-release": "eslint-publish-release"
78+
"release:generate:latest": "eslint-generate-release",
79+
"release:generate:alpha": "eslint-generate-prerelease alpha",
80+
"release:generate:beta": "eslint-generate-prerelease beta",
81+
"release:generate:rc": "eslint-generate-prerelease rc",
82+
"release:publish": "eslint-publish-release",
83+
"test": "npm-run-all -s test:*",
84+
"test:esm": "c8 mocha --color --reporter progress --timeout 30000 'tests/lib/**/*.js'",
85+
"test:cjs": "mocha --color --reporter progress --timeout 30000 tests/lib/commonjs.cjs"
8786
}
8887
}

0 commit comments

Comments
 (0)