{
  "name": "@stencila/encoda",
  "version": "1.0.12",
  "description": "Codecs for executable document formats",
  "files": [
    "install.js",
    "dist"
  ],
  "main": "dist/index.js",
  "scripts": {
    "install": "node install.js",
    "format": "npx prettier --write './**/*.{js,json,md,ts,yaml}'",
    "lint": "eslint 'src/**/*.{ts,js}'",
    "lint:fix": "eslint 'src/**/*.{ts,js}' --fix",
    "fixtures": "npx ts-node --files src/__fixtures__/make",
    "test": "jest --maxWorkers=4 --testTimeout=120000",
    "test:cover": "npm test -- --coverage",
    "test:watch": "npm test -- --watchAll",
    "test:docker": "docker build --tag stencila/encoda . && docker run -it --rm stencila/encoda",
    "check": "npm run build && npm run check:deps-used && npm run check:deps-unused",
    "check:deps-used": "dependency-check --missing .",
    "check:deps-unused": "dependency-check --unused --no-dev --ignore-module @stencila/schema --ignore-module @stencila/thema .",
    "start": "ts-node --files src",
    "convert-jats": "ts-node ./src/convertJats.ts",
    "debug": "node --require ./ts-node-register.js --inspect=9229 src --debug=1",
    "build": "npm run build:dist && npm run build:docs",
    "build:dist": "tsc -p tsconfig.prod.json",
    "build:docs": "typedoc --options typedoc.js ./src",
    "clean": "rm -rf bin coverage dist docs tests/**/*.to.*",
    "prepublishOnly": "npm run build"
  },
  "license": "Apache-2.0",
  "homepage": "https://github.com/stencila/encoda#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/stencila/encoda.git"
  },
  "bugs": {
    "url": "https://github.com/stencila/encoda/issues"
  },
  "dependencies": {
    "fp-ts": "^2.16.5",
    "fs-extra": "^11.2.0",
    "get-stdin": "^8.0.0",
    "js-yaml": "^4.1.0",
    "mathjax-node": "^2.1.1",
    "mime": "^3.0.0",
    "tempy": "^1.0.1",
    "to-vfile": "^6.1.0",
    "vfile": "^4.2.1",
    "xml-js": "^1.6.11"
  },
  "peerDependencies": {
    "@stencila/schema": "1.9.0"
  },
  "devDependencies": {
    "@qiwi/semantic-release-gh-pages-plugin": "5.2.8",
    "@semantic-release/exec": "6.0.3",
    "@semantic-release/npm": "12.0.1",
    "@stencila/dev-config": "3.0.4",
    "@stencila/eslint-config": "^3.0.4",
    "@stencila/semantic-release-config": "2.0.20",
    "@testing-library/jest-dom": "5.17.0",
    "@types/fs-extra": "9.0.13",
    "@types/jest": "29.5.4",
    "@types/js-yaml": "4.0.5",
    "@types/json-schema": "^7.0.15",
    "@types/mime": "2.0.3",
    "@types/node": "18.17.9",
    "callsites": "3.1.0",
    "delay": "5.0.0",
    "dependency-check": "4.1.0",
    "jest": "29.6.4",
    "jest-file-snapshot": "0.5.0",
    "jest-matcher-utils": "29.6.4",
    "semantic-release": "24.1.0",
    "ts-jest": "29.1.1",
    "ts-node": "10.9.1",
    "typedoc": "0.24.8",
    "typescript": "4.9.5"
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ],
    "rules": {
      "scope-case": [
        2,
        "always",
        "sentence-case"
      ],
      "subject-case": [
        2,
        "always",
        "sentence-case"
      ]
    }
  },
  "eslintConfig": {
    "extends": "@stencila/eslint-config",
    "rules": {
      "@typescript-eslint/ban-types": "off",
      "@typescript-eslint/ban-ts-comment": "off",
      "@typescript-eslint/no-explicit-any": "off",
      "@typescript-eslint/no-unsafe-assignment": "off",
      "@typescript-eslint/no-unsafe-call": "off",
      "@typescript-eslint/no-unsafe-member-access": "off",
      "@typescript-eslint/no-unsafe-return": "off",
      "@typescript-eslint/restrict-template-expressions": "off"
    }
  },
  "eslintIgnore": [
    "**/__fixtures__/*",
    "**/__mocks__/*",
    "**/__tests__/*",
    "*.test.ts"
  ],
  "jest": {
    "preset": "ts-jest",
    "testEnvironment": "node",
    "setupFilesAfterEnv": [
      "<rootDir>/src/__tests__/matchers.ts"
    ],
    "testMatch": [
      "<rootDir>/src/**/__tests__/**/*.[jt]s?(x)",
      "<rootDir>/src/**/*.test.[jt]s?(x)"
    ],
    "modulePathIgnorePatterns": [
      "<rootDir>/dist"
    ],
    "testPathIgnorePatterns": [
      "<rootDir>/dist/",
      "__tests__/matchers.ts",
      "__tests__/teardown.ts",
      "__tests__/helpers.ts"
    ],
    "coveragePathIgnorePatterns": [
      "__tests__/helpers.ts",
      "__fixtures__/*",
      "__outputs__/*"
    ],
    "watchPathIgnorePatterns": [
      "__file_snapshots__",
      "__outputs__/*",
      ".out.*"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "pretty-quick --staged",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  },
  "prettier": "@stencila/dev-config/prettier-config.json",
  "release": {
    "extends": "@stencila/semantic-release-config",
    "branches": [
      "master"
    ],
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator",
      "@semantic-release/changelog",
      "@semantic-release/npm",
      [
        "@semantic-release/exec",
        {
          "prepareCmd": "sed -i -e \"s!softwareVersion: .*!softwareVersion: '${nextRelease.version}',!\" src/index.ts"
        }
      ],
      [
        "@semantic-release/git",
        {
          "assets": [
            "CHANGELOG.md",
            "package.json",
            "codemeta.json"
          ]
        }
      ],
      "@semantic-release/github",
      "@qiwi/semantic-release-gh-pages-plugin"
    ]
  },
  "renovate": {
    "extends": [
      "config:base"
    ],
    "timezone": "UTC",
    "stabilityDays": 3,
    "masterIssue": true,
    "masterIssueTitle": "Update dependencies",
    "packageRules": [
      {
        "matchDepTypes": [
          "dependencies"
        ],
        "rangeStrategy": "bump",
        "semanticCommitType": "fix",
        "semanticCommitScope": "Dependencies",
        "automerge": false
      },
      {
        "groupName": "Dev dependencies",
        "groupSlug": "dev",
        "matchDepTypes": [
          "devDependencies"
        ],
        "rangeStrategy": "pin",
        "semanticCommitType": "chore",
        "semanticCommitScope": "Dev dependencies",
        "automerge": true
      }
    ]
  }
}
