From 909acc66b798ebdfff5b7d3db30a997ce02f6eec Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Fri, 29 Nov 2024 10:35:10 +0100 Subject: [PATCH] test: Prevent removal of coverage dir in npm test The additional build for e2e tests did remove the previously generated coverage report. --- package.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 6ccdbc07..fba111c9 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,13 @@ "type": "module", "types": "lib/index.d.ts", "scripts": { - "build": "npm run cleanup && tsc -p tsconfig.build.json", + "build": "npm run clean-lib && tsc -p tsconfig.build.json", "build-test": "tsc --noEmit -p .", - "build-watch": "npm run cleanup && tsc -w -p tsconfig.build.json", + "build-watch": "npm run clean-lib && tsc -w -p tsconfig.build.json", "check-licenses": "licensee --errors-only", - "cleanup": "rimraf lib coverage", - "coverage": "nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"", + "clean-coverage": "rimraf coverage", + "clean-lib": "rimraf lib", + "coverage": "npm run clean-coverage && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"", "depcheck": "depcheck --ignores @commitlint/config-conventional,@istanbuljs/esm-loader-hook,rimraf,sap,mycomp,@ui5/linter", "hooks:pre-push": "npm run lint:commit", "lint": "eslint .",