UNPKG

rspack-plugin-mock

Version:
132 lines 3.2 kB
{ "name": "rspack-plugin-mock", "type": "module", "version": "2.1.0", "description": "inject api mock server to development server", "author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo)", "license": "MIT", "homepage": "https://github.com/pengzhanbo/rspack-plugin-mock", "repository": { "type": "git", "url": "https://github.com/pengzhanbo/rspack-plugin-mock" }, "keywords": [ "mock", "mock server", "rspack", "rsbuild", "rspack-plugin", "rsbuild-plugin" ], "imports": { "#json5-loader": "./dist/json5-loader.mjs" }, "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./server": { "import": { "types": "./dist/server.d.ts", "default": "./dist/server.js" } }, "./rsbuild": { "import": { "types": "./dist/rsbuild.d.ts", "default": "./dist/rsbuild.js" } }, "./helper": { "import": { "types": "./dist/helper.d.ts", "default": "./dist/helper.js" } }, "./package.json": "./package.json" }, "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "engines": { "node": ">=20.19.0", "pnpm": ">=9" }, "peerDependencies": { "@rsbuild/core": ">=2.0.0", "@rspack/core": ">=2.0.0", "zstd-codec": ">=0.1.5" }, "peerDependenciesMeta": { "@rsbuild/core": { "optional": true }, "@rspack/core": { "optional": true }, "zstd-codec": { "optional": true } }, "dependencies": { "@pengzhanbo/utils": "^3.6.0", "ansis": "^4.2.0", "chokidar": "^5.0.0", "co-body": "^6.2.0", "cors": "^2.8.6", "debug": "^4.4.3", "formidable": "^3.5.4", "http-status": "^2.1.0", "is-core-module": "^2.16.1", "json5": "^2.2.3", "local-pkg": "^1.1.2", "memfs": "^4.57.2", "mime-types": "^3.0.2", "path-to-regexp": "^8.4.2", "picomatch": "^4.0.4", "tinyglobby": "^0.2.16", "ws": "^8.20.0" }, "devDependencies": { "@pengzhanbo/eslint-config": "^2.4.0", "@rsbuild/core": "^2.0.3", "@rspack/core": "^2.0.1", "@types/co-body": "^6.1.3", "@types/cors": "^2.8.19", "@types/debug": "^4.1.13", "@types/formidable": "^3.5.1", "@types/is-core-module": "^2.2.2", "@types/mime-types": "^3.0.1", "@types/node": "^25.6.0", "@types/picomatch": "^4.0.3", "@types/ws": "^8.18.1", "bumpp": "^11.0.1", "conventional-changelog-cli": "^5.0.0", "eslint": "^10.3.0", "husky": "^9.1.7", "lint-staged": "^16.4.0", "tsdown": "^0.21.10", "typescript": "^6.0.3", "zstd-codec": "^0.1.5" }, "lint-staged": { "*": "eslint --fix" }, "publishConfig": { "access": "public", "provenance": true }, "scripts": { "dev": "tsdown src --watch", "build": "tsdown", "lint": "eslint .", "release:publish": "pnpm -r publish", "release:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "release": "bumpp package.json --execute=\"pnpm release:changelog\" --commit --all --push --tag" } }