From bb8ed27c1ef5cb7106ffec517871cc0204c52f2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 23 Apr 2023 01:16:25 +0200 Subject: [PATCH] build: cleanup pnpm scripts usage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- CONTRIBUTING.md | 6 +++--- package.json | 12 ++++++------ rollup.config.mjs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) 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') ] } -- 2.34.1