From 0461695b730821c04c20d46f5cff9195509f865b Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Mon, 7 Aug 2023 20:37:39 +0530 Subject: [PATCH] chore: standardize npm script names (#55) * chore: standardize npm script names * chore: udpate npm scripts * docs: update README --- README.md | 2 +- package.json | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 0ea83f1..cab8103 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Welcome. See [ESLint contribution guidelines](https://eslint.org/docs/developer- - `npm test` runs tests and measures code coverage. - `npm run lint` checks source codes with ESLint. -- `npm run coverage` opens the code coverage report of the previous test with your default browser. +- `npm run test:open-coverage` opens the code coverage report of the previous test with your default browser. [npm]: https://www.npmjs.com/ diff --git a/package.json b/package.json index b9972e9..6f89e4b 100644 --- a/package.json +++ b/package.json @@ -46,21 +46,21 @@ "typescript": "^4.6.2" }, "scripts": { - "prepare": "npm run build", - "bundle": "rollup -c", - "build": "npm run bundle && npm run tsc", - "build:debug": "npm run bundle -- -m && npm run tsc", + "build": "npm run build:cjs && npm run build:types", + "build:cjs": "rollup -c", + "build:debug": "npm run build:cjs -- -m && npm run build:types", + "build:keys": "node tools/build-keys-from-ts", + "build:types": "tsc", "lint": "eslint .", - "tsc": "tsc", - "tsd": "tsd", - "build-keys": "node tools/build-keys-from-ts", - "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run tsd", - "coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", - "generate-release": "eslint-generate-release", - "generate-alpharelease": "eslint-generate-prerelease alpha", - "generate-betarelease": "eslint-generate-prerelease beta", - "generate-rcrelease": "eslint-generate-prerelease rc", - "publish-release": "eslint-publish-release" + "prepare": "npm run build", + "release:generate:latest": "eslint-generate-release", + "release:generate:alpha": "eslint-generate-prerelease alpha", + "release:generate:beta": "eslint-generate-prerelease beta", + "release:generate:rc": "eslint-generate-prerelease rc", + "release:publish": "eslint-publish-release", + "test": "mocha tests/lib/**/*.cjs && c8 mocha tests/lib/**/*.js && npm run test:types", + "test:open-coverage": "c8 report --reporter lcov && opener coverage/lcov-report/index.html", + "test:types": "tsd" }, "repository": "eslint/eslint-visitor-keys", "funding": "https://opencollective.com/eslint",