build: cleanup pnpm scripts usage
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Apr 2023 23:16:25 +0000 (01:16 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Apr 2023 23:16:25 +0000 (01:16 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
CONTRIBUTING.md
package.json
rollup.config.mjs

index af859bf32855b3d4b3a55fc0902e0637f05d5fd7..e6babf4fea4a24343f5f926f4e023937bd6f4cd6 100644 (file)
@@ -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
index 11707f382ea4547c2212a58ae9334b64251f8bd6..20bf3202b86bca2186d44282abffc039caeb8a88 100644 (file)
     "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": [
index 017ca1b9bee2ea0a1ee01ec6939248a7a23f0a3a..9b9aa8a76fadb59dba51accf10fd2ed7930f8caf 100644 (file)
@@ -52,6 +52,6 @@ export default {
       targets: ['lib/*']
     }),
     isAnalyze && analyze(),
-    isDocumentation && command('pnpm run typedoc')
+    isDocumentation && command('pnpm typedoc')
   ]
 }