NatLibFi/marc-record-validate

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
    "name": "@natlibfi/marc-record-validate",
    "description": "Validate and fix MARC records",
    "author": {
        "name": "The National Library of Finland"
    },
    "keywords": [],
    "homepage": "https://github.com/natlibfi/marc-record-validate",
    "bugs": {
        "url": "https://github.com/natlibfi/marc-record-validate/issues"
    },
    "repository": {
        "type": "git",
        "url": "git@github.com:natlibfi/marc-record-validate.git"
    },
    "license": "MIT",
    "version": "8.0.7",
    "main": "./dist/index.js",
    "engines": {
        "node": ">=18"
    },
    "publishConfig": {
        "access": "public"
    },
    "scripts": {
        "prepare": "npm run build",
        "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist",
        "lint": "eslint ./src",
        "lint:dev": "eslint --fix ./src",
        "test:base": "cross-env NODE_ENV=test nyc mocha --package ./package.json",
        "test": "npm run lint && npm run test:dev && npm run coverage",
        "test:dev": "npm run lint:dev && npm run test:base -- src/*.spec.js",
        "coverage": "nyc check-coverage --per-file",
        "build:transpile": "babel src --source-maps --out-dir=dist --minified"
    },
    "dependencies": {
        "@babel/runtime": "^7.24.4",
        "@natlibfi/marc-record": "^8.1.1"
    },
    "devDependencies": {
        "@babel/cli": "^7.24.1",
        "@babel/core": "^7.24.4",
        "@babel/node": "^7.23.9",
        "@babel/preset-env": "^7.24.4",
        "@babel/register": "^7.23.7",
        "@natlibfi/eslint-config-melinda-backend": "^3.0.4",
        "babel-plugin-istanbul": "^6.1.1",
        "chai": "^4.4.1",
        "chai-as-promised": "^7.1.1",
        "cross-env": "^7.0.3",
        "eslint": "^8.57.0",
        "eslint-plugin-import": "^2.29.1",
        "eslint-plugin-mocha": "^10.4.2",
        "mocha": "^10.4.0",
        "nyc": "^15.1.0",
        "sinon": "^17.0.1"
    },
    "eslintConfig": {
        "extends": "@natlibfi/melinda-backend"
    },
    "babel": {
        "presets": [
            [
                "@babel/preset-env",
                {
                    "targets": "maintained node versions"
                }
            ]
        ],
        "env": {
            "test": {
                "plugins": [
                    "istanbul"
                ]
            }
        }
    },
    "mocha": {
        "spec": [
            "src/*.spec.js",
            "src/**/*.spec.js"
        ],
        "require": [
            "@babel/register"
        ],
        "inline-diffs": true,
        "maxDiffSize": 25000,
        "bail": true,
        "exit": true
    },
    "nyc": {
        "exclude": [
            "*/*.spec.js",
            "src/**/*.spec.js"
        ],
        "reporter": [
            "text"
        ],
        "sourceMap": false,
        "instrument": false,
        "lines": 80,
        "statements": 80,
        "functions": 80,
        "branches": 80
    }
}