Skip to content

Commit 41fb701

Browse files
authored
Merge pull request #262 from SAP/upd-scripts
Update npm scripts
2 parents cf811ad + dbcfa49 commit 41fb701

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
cache: 'npm'
3030
- run: npm ci
3131
- run: npm run test
32-
- run: npm run coverage
32+
- run: npm run test-coverage

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
"homepage": "https://sap.github.io/cf-nodejs-logging-support/",
2222
"scripts": {
2323
"build": "npm run build-json-schema && tsc -p tsconfig.json",
24-
"test": "npm run build-json-schema && tsc -p tsconfig.json && node build/main/index.js && mocha 'src/test/**/*.test.js'",
24+
"build-json-schema": "typescript-json-schema 'src/lib/config/interfaces.ts' ConfigObject --noExtraProps --required --out 'src/lib/config/default/config-schema.json'",
25+
"prepare": "npm run build",
26+
"test": "npm run build && node build/main/index.js && mocha 'src/test/**/*.test.js'",
2527
"test-lint": "eslint src --ext .ts",
2628
"test-performance": "mocha 'src/performance-test/*.test.js'",
27-
"build-json-schema": "typescript-json-schema 'src/lib/config/interfaces.ts' ConfigObject --noExtraProps --required --out 'src/lib/config/default/config-schema.json'",
28-
"coverage": "nyc --reporter=lcov --reporter=text-summary npm run test"
29+
"test-coverage": "nyc --reporter=lcov --reporter=text-summary npm run test"
2930
},
3031
"engines": {
3132
"node": ">=14.14"

0 commit comments

Comments
 (0)