From: Jérôme Benoit Date: Sat, 22 Apr 2023 23:16:25 +0000 (+0200) Subject: build: cleanup pnpm scripts usage X-Git-Tag: v2.4.11~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=bb8ed27c1ef5cb7106ffec517871cc0204c52f2a;p=poolifier.git build: cleanup pnpm scripts usage Signed-off-by: Jérôme Benoit --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index af859bf3..e6babf4f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,19 +10,19 @@ Please do your PR on **master** branch. **How to run unit tests and coverage** ```bash - pnpm test && pnpm run coverage + pnpm test && pnpm coverage ``` **How to check if your new code is standard JS style** ```bash - pnpm run lint + pnpm lint ``` **How to format and lint to standard JS style your code** ```bash - pnpm run format && pnpm run lint:fix + pnpm format && pnpm lint:fix ``` ### Project pillars diff --git a/package.json b/package.json index 11707f38..20bf3202 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,11 @@ "build": "rollup --config --environment BUILD:development", "build:typedoc": "rollup --config --environment BUILD:development --environment DOCUMENTATION", "build:prod": "rollup --config", - "benchmark": "pnpm run build && node -r source-map-support/register benchmarks/internal/bench.js", - "benchmark:debug": "pnpm run build && node -r source-map-support/register --inspect benchmarks/internal/bench.js", - "benchmark:prod": "pnpm run build:prod && node -r source-map-support/register benchmarks/internal/bench.js", - "test": "pnpm run build && c8 mocha 'tests/**/*.test.js'", - "test:debug": "pnpm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'", + "benchmark": "pnpm build && node -r source-map-support/register benchmarks/internal/bench.js", + "benchmark:debug": "pnpm build && node -r source-map-support/register --inspect benchmarks/internal/bench.js", + "benchmark:prod": "pnpm build:prod && node -r source-map-support/register benchmarks/internal/bench.js", + "test": "pnpm build && c8 mocha 'tests/**/*.test.js'", + "test:debug": "pnpm build && mocha --no-parallel --inspect 'tests/**/*.test.js'", "coverage": "c8 report --reporter=lcov", "coverage:html": "c8 report --reporter=html", "format": "prettier . --cache --write; ts-standard . --fix", @@ -29,7 +29,7 @@ "lint:report": "eslint . --cache --format json --output-file reports/eslint.json", "release": "release-it", "typedoc": "typedoc", - "prepublishOnly": "pnpm run build:prod" + "prepublishOnly": "pnpm build:prod" }, "ts-standard": { "globals": [ diff --git a/rollup.config.mjs b/rollup.config.mjs index 017ca1b9..9b9aa8a7 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -52,6 +52,6 @@ export default { targets: ['lib/*'] }), isAnalyze && analyze(), - isDocumentation && command('pnpm run typedoc') + isDocumentation && command('pnpm typedoc') ] }