{
  "name": "buse-sw-mock",
  "version": "1.0.5",
  "private": false,
  "description": "基于 ServiceWorker 的强大 API 模拟系统，支持网络故障仿真",
  "main": "dist/index.js",
  "module": "dist/index.esm.js",
  "types": "dist/index.d.ts",
  "files": [
    "dist",
    "src",
    "bin",
    "lib",
    "assets",
    "README.md",
    "LICENSE"
  ],
  "bin": {
    "swmock-test": "./bin/swmock-test.js"
  },
  "scripts": {
    "build": "rollup -c && npm run copy-sw",
    "copy-sw": "cp dist/sw-mock-worker.js sw-mock-worker.js",
    "build:watch": "rollup -c -w",
    "dev": "rollup -c --environment NODE_ENV:development -w",
    "dev:test": "python3 -m http.server 8089",
    "swmock:test": "node ./bin/swmock-test.js",
    "swmock:test-open": "node ./bin/swmock-test.js --open",
    "test": "jest",
    "test:watch": "jest --watch",
    "lint": "eslint src --ext .ts,.js",
    "lint:fix": "eslint src --ext .ts,.js --fix",
    "type-check": "tsc --noEmit",
    "docs:dev": "vitepress dev docs",
    "docs:build": "vitepress build docs",
    "prepublishOnly": "npm run build && npm run test",
    "release": "npm version patch && npm publish"
  },
  "keywords": [
    "serviceworker",
    "mock",
    "api",
    "testing",
    "network-simulation",
    "http-mock",
    "frontend",
    "development",
    "debugging",
    "network-failure",
    "模拟",
    "接口模拟",
    "网络仿真"
  ],
  "author": {
    "name": "Buse Team",
    "email": "1115025121@qq.com"
  },
  "license": "MIT",
  "publishConfig": {
    "registry": "https://registry.npmjs.org"
  },
  "bugs": {
    "url": "https://github.com/buse/sw-mock/issues"
  },
  "homepage": "https://github.com/buse/sw-mock#readme",
  "engines": {
    "node": ">=14.0.0"
  },
  "dependencies": {
    "chalk": "^4.1.2",
    "express": "^4.21.2",
    "open": "^8.4.2"
  },
  "devDependencies": {
    "@rollup/plugin-commonjs": "^25.0.0",
    "@rollup/plugin-node-resolve": "^15.0.0",
    "@rollup/plugin-terser": "^0.4.0",
    "@rollup/plugin-typescript": "^11.0.0",
    "@types/jest": "^29.0.0",
    "@typescript-eslint/eslint-plugin": "^6.0.0",
    "@typescript-eslint/parser": "^6.0.0",
    "eslint": "^8.0.0",
    "jest": "^29.0.0",
    "jest-environment-jsdom": "^30.0.0-beta.3",
    "rollup": "^2.79.0",
    "rollup-plugin-dts": "^4.2.0",
    "ts-jest": "^29.0.0",
    "tslib": "^2.8.1",
    "typescript": "^5.0.0",
    "vitepress": "^1.0.0"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead",
    "not ie 11"
  ]
}
