@natlibfi/melinda-record-matching 4.3.1-alpha.1 → 4.3.1-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +32 -14
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "url": "git@github.com:natlibfi/melinda-record-matching-js.git"
15
15
  },
16
16
  "license": "LGPL-3.0+",
17
- "version": "4.3.1-alpha.1",
17
+ "version": "4.3.1-alpha.2",
18
18
  "main": "./dist/index.js",
19
19
  "engines": {
20
20
  "node": ">=18"
@@ -24,15 +24,17 @@
24
24
  },
25
25
  "scripts": {
26
26
  "prepare": "npm run build",
27
+ "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist",
27
28
  "start": "node dist/index.js",
28
29
  "cli": "node dist/cli.js",
29
- "lint": "eslint src",
30
- "lint:dev": "eslint --fix src",
31
- "test:base": "cross-env NODE_ENV=test nyc mocha --require @babel/register",
32
- "test": "npm run lint && npm run test:base -- --recursive src",
33
- "test:dev": "npm run lint:dev && npm run test:base -- --recursive src && npm run coverage",
30
+ "lint": "eslint ./src",
31
+ "lint:dev": "eslint --fix ./src",
32
+ "test": "npm run lint && npm run test:base",
33
+ "test:base": "cross-env NODE_ENV=test nyc mocha --package ./package.json",
34
+ "test:dev": "npm run lint:dev && npm run test:base && npm run coverage",
34
35
  "coverage": "nyc check-coverage --per-file",
35
- "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist",
36
+ "dev": "nodemon",
37
+ "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test nodemon",
36
38
  "watch:test": "cross-env DEBUG=1 NODE_ENV=test nodemon -w src -w test-fixtures --exec 'npm run test:dev'"
37
39
  },
38
40
  "dependencies": {
@@ -88,17 +90,33 @@
88
90
  }
89
91
  }
90
92
  },
93
+ "mocha": {
94
+ "spec": [
95
+ "src/*.spec.js",
96
+ "src/**/*.spec.js"
97
+ ],
98
+ "require": [
99
+ "@babel/register"
100
+ ],
101
+ "inline-diffs": true,
102
+ "maxDiffSize": 25000,
103
+ "bail": true,
104
+ "exit": true
105
+ },
106
+ "nodemonConfig": {
107
+ "exec": "npm run test:dev",
108
+ "watch": [
109
+ "src/*",
110
+ "test-fixtures/*"
111
+ ]
112
+ },
91
113
  "nyc": {
92
114
  "exclude": [
93
- "*/*.spec.js",
94
- "*/**/*.spec.js"
115
+ "src/*.spec.js",
116
+ "src/**/*.spec.js"
95
117
  ],
96
118
  "reporter": [
97
- "lcov",
98
- "html"
99
- ],
100
- "require": [
101
- "@babel/register"
119
+ "text"
102
120
  ],
103
121
  "sourceMap": false,
104
122
  "instrument": false,