{
  "name": "web-highlighter",
  "version": "0.8.0",
  "description": "✨A no-runtime dependency lib for text highlighting & persistence on any website ✨🖍️",
  "main": "dist/web-highlighter.min.js",
  "types": "dist/index.d.ts",
  "browser": "dist/web-highlighter.min.js",
  "files": [
    "dist"
  ],
  "engines": {
    "node": "22.15.1"
  },
  "packageManager": "npm@10.9.9",
  "browserslist": [
    "ie 11",
    "last 2 Chrome versions",
    "last 2 Firefox versions",
    "last 2 Safari versions"
  ],
  "scripts": {
    "lint": "eslint \"src/**/*.ts\"",
    "lint:fix": "npm run lint -- --fix",
    "test:types": "tsc --project tsconfig.test.json",
    "test:unit": "run-s test:types test:unit:runtime",
    "test:unit:runtime": "mocha -r ts-node/register -r tsconfig-paths/register \"test/**/*.spec.ts\" --exclude \"test/dist.spec.ts\"",
    "test:dist": "mocha -r ts-node/register \"test/dist.spec.ts\"",
    "test:package": "node script/test-package.js",
    "test": "run-s build test:unit test:dist test:package",
    "coverage": "nyc -r lcov -e .ts -x \"test/**/*.ts\" npm run test",
    "serve-example": "http-server example/static",
    "serve": "http-server -p 8081 ./dist",
    "watch": "webpack --config ./config/webpack.config.prod.js --watch",
    "build-example": "target=example node script/build.js",
    "static": "run-p watch serve",
    "start": "node script/dev.js",
    "build:types": "tsc && tsc-alias -p tsconfig.json",
    "build:code": "target=dist node script/build.js",
    "build": "run-s build:code build:types",
    "prepare": "husky",
    "prepublishOnly": "run-s lint build test"
  },
  "lint-staged": {
    "src/**/*.ts": [
      "prettier --write",
      "eslint --fix"
    ],
    "test/**/*.ts": [
      "prettier --write",
      "eslint --fix"
    ]
  },
  "homepage": "https://alienzhou.github.io/web-highlighter",
  "repository": {
    "type": "git",
    "url": "https://github.com/alienzhou/web-highlighter"
  },
  "keywords": [
    "text",
    "highlight",
    "web",
    "persistence",
    "lightweight",
    "selection",
    "range"
  ],
  "author": "alienzhou <alienzhou16@163.com>",
  "license": "MIT",
  "overrides": {
    "diff": "8.0.3",
    "serialize-javascript": "7.0.5"
  },
  "devDependencies": {
    "@types/chai": "^4.3.20",
    "@types/jsdom": "^21.1.7",
    "@types/jsdom-global": "^3.0.5",
    "@types/mocha": "^10.0.10",
    "@types/sinon": "^17.0.3",
    "@typescript-eslint/eslint-plugin": "^8.18.2",
    "@typescript-eslint/parser": "^8.18.2",
    "better-opn": "^3.0.2",
    "chai": "^4.5.0",
    "chalk": "^4.1.2",
    "clean-webpack-plugin": "^4.0.0",
    "css-loader": "^7.1.2",
    "eslint": "^8.57.1",
    "eslint-config-prettier": "^9.1.0",
    "eslint-plugin-import": "^2.31.0",
    "eslint-plugin-prettier": "^5.2.1",
    "fs-extra": "^11.2.0",
    "html-webpack-plugin": "^5.6.3",
    "http-server": "^14.1.1",
    "husky": "^9.1.7",
    "jsdom": "^24.1.3",
    "jsdom-global": "^3.0.2",
    "lint-staged": "^15.2.10",
    "markdown-it": "^15.0.0",
    "mocha": "^11.8.0",
    "npm-run-all": "^4.1.5",
    "nyc": "^18.0.0",
    "prettier": "^3.3.3",
    "sinon": "^17.0.1",
    "style-loader": "^4.0.0",
    "ts-loader": "^9.5.1",
    "ts-node": "^10.9.2",
    "tsc-alias": "^1.8.10",
    "tsconfig-paths": "^4.2.0",
    "tsconfig-paths-webpack-plugin": "^4.2.0",
    "typescript": "^5.7.3",
    "webpack": "^5.97.1",
    "webpack-cli": "^5.1.4",
    "webpack-dev-server": "^6.0.0",
    "webpack-merge": "^6.0.1"
  }
}
