|
14 | 14 | "url": "[email protected]:natlibfi/melinda-backend-commons-js.git"
|
15 | 15 | },
|
16 | 16 | "license": "LGPL-3.0+",
|
17 |
| - "version": "2.2.4", |
| 17 | + "version": "2.2.5-alpha.1", |
18 | 18 | "main": "./dist/index.js",
|
19 | 19 | "bin": {
|
20 | 20 | "gen-jwt-token": "./dist/gen-jwt-token.js",
|
|
28 | 28 | },
|
29 | 29 | "scripts": {
|
30 | 30 | "prepare": "npm run build",
|
31 |
| - "lint": "eslint src", |
32 |
| - "lint:dev": "eslint --fix src", |
33 |
| - "test:base": "cross-env NODE_ENV=test nyc mocha --require @babel/register", |
34 |
| - "test": "npm run lint && npm run test:base -- src/*.spec.js src/**/**/*.spec.js", |
35 |
| - "test:dev": "npm run lint:dev && npm run test:base -- src/*.spec.js src/**/**/*.spec.js && npm run coverage", |
36 |
| - "coverage": "nyc check-coverage --per-file", |
37 | 31 | "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist",
|
38 |
| - "watch:test": "cross-env DEBUG=1 NODE_ENV=test nodemon -w src -w test-fixtures --exec 'npm run test:dev'" |
| 32 | + "lint": "eslint ./src", |
| 33 | + "lint:dev": "eslint --fix ./src", |
| 34 | + "test:base": "cross-env NODE_ENV=test nyc mocha --package ./package.json", |
| 35 | + "test": "npm run lint && npm run test:base", |
| 36 | + "test:dev": "npm run lint:dev && npm run test:base && npm run coverage", |
| 37 | + "coverage": "nyc check-coverage --per-file", |
| 38 | + "watch:test": "cross-env DEBUG=@natlibfi/* NODE_ENV=test nodemon", |
| 39 | + "dev": "nodemon", |
| 40 | + "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test nodemon" |
39 | 41 | },
|
40 | 42 | "dependencies": {
|
41 | 43 | "base64-url": "^2.3.3",
|
|
86 | 88 | }
|
87 | 89 | }
|
88 | 90 | },
|
| 91 | + "mocha": { |
| 92 | + "spec": [ |
| 93 | + "src/*.spec.js", |
| 94 | + "src/**/*.spec.js" |
| 95 | + ], |
| 96 | + "require": [ |
| 97 | + "@babel/register" |
| 98 | + ], |
| 99 | + "inline-diffs": true, |
| 100 | + "maxDiffSize": 25000, |
| 101 | + "bail": true, |
| 102 | + "exit": true |
| 103 | + }, |
| 104 | + "nodemonConfig": { |
| 105 | + "exec": "npm run test:dev", |
| 106 | + "watch": [ |
| 107 | + "src/*", |
| 108 | + "test-fixtures/*" |
| 109 | + ] |
| 110 | + }, |
89 | 111 | "nyc": {
|
90 | 112 | "exclude": [
|
91 |
| - "*/*.spec.js" |
| 113 | + "src/*.spec.js", |
| 114 | + "src/**/*.spec.js" |
92 | 115 | ],
|
93 | 116 | "reporter": [
|
94 |
| - "lcov", |
95 |
| - "html" |
96 |
| - ], |
97 |
| - "require": [ |
98 |
| - "@babel/register" |
| 117 | + "text" |
99 | 118 | ],
|
100 | 119 | "sourceMap": false,
|
101 | 120 | "instrument": false,
|
|
0 commit comments