{
  "name": "signature_pad",
  "description": "Library for drawing smooth signatures.",
  "version": "5.1.3",
  "homepage": "https://github.com/szimek/signature_pad",
  "author": {
    "name": "Szymon Nowak",
    "email": "szimek@gmail.com",
    "url": "https://github.com/szimek"
  },
  "license": "MIT",
  "source": "src/signature_pad.ts",
  "main": "dist/signature_pad.umd.js",
  "module": "dist/signature_pad.js",
  "type": "module",
  "types": "dist/types/signature_pad.d.ts",
  "exports": {
    "types": "./dist/types/signature_pad.d.ts",
    "import": "./dist/signature_pad.js",
    "require": "./dist/signature_pad.umd.js",
    "default": "./dist/signature_pad.umd.js"
  },
  "scripts": {
    "build": "yarn run lint && yarn run clean && node esbuild.config.js && yarn run emit-types && yarn run update-docs",
    "clean": "yarn run del dist",
    "emit-types": "yarn run del dist/types && yarn run tsc src/signature_pad.ts --lib DOM,ES2015 --declaration --declarationDir dist/types --emitDeclarationOnly",
    "format": "prettier --write {src,tests}/**/*.{js,ts}",
    "lint": "eslint {src,tests}/**/*.ts",
    "prepublishOnly": "yarn run build",
    "serve": "serve -l 9000 docs",
    "start": "yarn run build && yarn run serve",
    "test": "jest --coverage",
    "update-docs": "yarn run cpy 'dist/signature_pad.umd.min.*' docs/js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/szimek/signature_pad.git"
  },
  "files": [
    "src",
    "dist",
    "docs"
  ],
  "devDependencies": {
    "@eslint/js": "^9.34.0",
    "@semantic-release/changelog": "^6.0.3",
    "@semantic-release/commit-analyzer": "^13.0.1",
    "@semantic-release/git": "^10.0.1",
    "@semantic-release/github": "^11.0.5",
    "@semantic-release/npm": "^12.0.2",
    "@semantic-release/release-notes-generator": "^14.0.3",
    "@types/jest": "^30.0.0",
    "@types/node": "^24.3.0",
    "cpy-cli": "^6.0.0",
    "del": "^8.0.0",
    "del-cli": "^6.0.0",
    "esbuild": "^0.25.9",
    "esbuild-plugin-umd-wrapper": "^3.0.0",
    "eslint": "^9.34.0",
    "eslint-config-prettier": "^10.1.8",
    "globals": "^16.3.0",
    "jest": "^30.1.3",
    "jest-canvas-mock": "^2.5.2",
    "jest-environment-jsdom": "^30.1.2",
    "prettier": "^3.6.2",
    "semantic-release": "^24.2.7",
    "serve": "^14.2.4",
    "ts-jest": "^29.4.1",
    "tslib": "^2.8.1",
    "typescript": "~5.9.2",
    "typescript-eslint": "^8.42.0"
  },
  "jest": {
    "moduleFileExtensions": [
      "ts",
      "js"
    ],
    "moduleNameMapper": {
      "^\\./bezier\\.js$": "<rootDir>/src/bezier.ts",
      "^\\./point\\.js$": "<rootDir>/src/point.ts",
      "^\\./signature_event_target\\.js$": "<rootDir>/src/signature_event_target.ts",
      "^\\./throttle\\.js$": "<rootDir>/src/throttle.ts"
    },
    "testEnvironment": "jsdom",
    "testEnvironmentOptions": {
      "resources": "usable",
      "url": "http://localhost:3000/"
    },
    "testMatch": [
      "<rootDir>/tests/**/*.test.ts"
    ],
    "transform": {
      "^.+\\.tsx?$": "ts-jest"
    },
    "setupFiles": [
      "jest-canvas-mock"
    ]
  },
  "release": {
    "plugins": [
      "@semantic-release/commit-analyzer",
      "@semantic-release/release-notes-generator",
      "@semantic-release/changelog",
      "@semantic-release/npm",
      "@semantic-release/github",
      "@semantic-release/git"
    ]
  },
  "packageManager": "yarn@4.9.4"
}
