{
  "name": "@stencila/schema",
  "version": "1.18.0",
  "description": "Extensions to schema.org to support semantic, composable, parameterize-able and executable documents",
  "files": [
    "dist"
  ],
  "source": "src/index.ts",
  "main": "dist/index.js",
  "module": "dist/index.mjs",
  "browser": "dist/browser/schema.mjs",
  "unpkg": "dist/browser/schema.umd.js",
  "types": "dist/src/index.d.ts",
  "scripts": {
    "format": "npx prettier --write './**/*.{js,json,md,ts,yaml}'",
    "lint": "npx eslint 'src/**/*.{js,ts}' --fix",
    "test": "npm run build:jsonschema && npm run build:ts && npm run build:jsonld && jest --runInBand",
    "test:cover": "npm test -- --coverage",
    "build": "npm run build:jsonschema && npm run build:ts && npm run build:jsonld && npm run build:python && npm run build:r && npm run build:rust && npm run build:vscode && npm run build:dist",
    "build:jsonschema": "ts-node src/schema.ts",
    "build:jsonld": "ts-node src/bindings/jsonld.ts",
    "build:python": "ts-node src/bindings/python.ts",
    "build:r": "ts-node src/bindings/r.ts",
    "build:rust": "ts-node src/bindings/rust.ts",
    "build:ts": "ts-node src/bindings/typescript.ts",
    "build:vscode": "ts-node src/bindings/vscode.ts",
    "build:browser": "microbundle --tsconfig tsconfig.browser.json -o dist/browser --format es,umd src/index.browser.ts",
    "build:node": "microbundle --tsconfig tsconfig.lib.json --target node --format es,cjs src/index.ts",
    "build:dist": "npm run build:node && npm run build:browser && cp public/*.schema.json dist && cp public/*.jsonld dist",
    "docs": "npm run docs:md && npm run docs:api",
    "docs:md": "ts-node src/docs.ts",
    "docs:api": "ts-node src/bindings/typescript.ts && typedoc src/index.ts --readme src/README.md --tsconfig tsconfig.docs.json --out src/docs/",
    "clean": "rimraf coverage dist public src/types.ts"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/stencila/stencila.git"
  },
  "author": "Contributors https://github.com/stencila/stencila/contributors",
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/stencila/stencila/issues"
  },
  "homepage": "https://github.com/stencila/stencila#readme",
  "devDependencies": {
    "@semantic-release/exec": "6.0.3",
    "@stencila/dev-config": "3.0.4",
    "@stencila/eslint-config": "3.0.1",
    "@stencila/semantic-release-config": "2.0.6",
    "@stoplight/json-ref-resolver": "3.1.3",
    "@types/fs-extra": "9.0.13",
    "@types/jest": "27.4.0",
    "@types/js-yaml": "4.0.5",
    "@types/lodash": "4.14.178",
    "@types/node": "17.0.12",
    "@types/prettier": "2.4.3",
    "@types/toposort": "2.0.3",
    "@typescript-eslint/eslint-plugin": "5.10.1",
    "ajv": "8.9.0",
    "ajv-formats": "2.1.1",
    "change-case": "4.1.2",
    "del": "6.0.0",
    "eslint-config-standard-with-typescript": "21.0.1",
    "eslint-plugin-prettier": "^4.0.0",
    "fs-extra": "10.0.0",
    "globby": "11.1.0",
    "got": "11.8.3",
    "jest": "27.4.7",
    "jest-file-snapshot": "0.5.0",
    "js-yaml": "4.1.0",
    "json-schema": "0.4.0",
    "lodash": "4.17.21",
    "microbundle": "0.14.2",
    "prettier": "2.5.1",
    "rimraf": "3.0.2",
    "toposort": "2.0.2",
    "ts-jest": "27.1.3",
    "ts-node": "10.4.0",
    "typedoc": "0.22.11",
    "typescript": "4.5.5"
  },
  "jest": {
    "preset": "ts-jest",
    "testEnvironment": "node",
    "testMatch": [
      "<rootDir>/src/**/*.test.[jt]s?(x)"
    ],
    "modulePathIgnorePatterns": [
      "<rootDir>/dist"
    ],
    "setupFilesAfterEnv": [
      "<rootDir>/src/__tests__/matchers.ts"
    ],
    "collectCoverageFrom": [
      "src/util/*.ts",
      "!src/util/index.ts"
    ],
    "watchPathIgnorePatterns": [
      "__file_snapshots__",
      "public",
      "dist"
    ]
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ],
    "rules": {
      "scope-case": [
        2,
        "always",
        "sentence-case"
      ],
      "subject-case": [
        2,
        "always",
        "sentence-case"
      ]
    }
  },
  "eslintConfig": {
    "extends": "@stencila/eslint-config",
    "ignorePatterns": [
      "*.test.ts"
    ],
    "rules": {
      "@typescript-eslint/no-unsafe-assignment": "warn",
      "@typescript-eslint/no-unsafe-call": "warn",
      "@typescript-eslint/no-unsafe-member-access": "warn",
      "@typescript-eslint/no-unsafe-return": "warn",
      "@typescript-eslint/restrict-template-expressions": "warn",
      "@typescript-eslint/no-use-before-define": "off"
    },
    "env": {
      "es6": true,
      "node": true,
      "jest": true
    }
  },
  "eslintIgnore": [
    "public",
    "dist",
    "docs",
    "__file_snapshots__"
  ],
  "prettier": "@stencila/dev-config/prettier-config.json",
  "release": {
    "extends": "@stencila/semantic-release-config",
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator",
      "@semantic-release/changelog",
      [
        "@semantic-release/exec",
        {
          "prepareCmd": "./.ci/prepare-release.sh ${nextRelease.version}"
        }
      ],
      "@semantic-release/npm",
      [
        "@semantic-release/git",
        {
          "assets": [
            "CHANGELOG.md",
            "package.json",
            "package-lock.json",
            "src/types.ts",
            ".vscode/settings.json"
          ]
        }
      ],
      [
        "@semantic-release/github",
        {
          "assets": [
            {
              "path": "docs.tar.gz"
            }
          ]
        }
      ]
    ]
  }
}
