mihawk
Version:
A tiny & simple mock server tool, support json,js,cjs,ts(typescript).
141 lines (140 loc) • 4.32 kB
JSON
{
"name": "mihawk",
"version": "0.1.0-j",
"description": "A tiny & simple mock server tool, support json,js,cjs,ts(typescript).",
"author": "Froguard <figure_wf@163.com>",
"engines": {
"node": ">=12.0.0"
},
"files": [
"assets",
"dist",
"!dist/.gitkeep"
],
"bin": {
"mihawk": "dist/cjs/bin/index.js"
},
"main": "dist/cjs/src/index.js",
"module": "dist/esm/src/index.js",
"types": "dist/types/src/index.d.ts",
"scripts": {
"dev": "ts-node ./demo.ts",
"dev:bin": "ts-node ./bin/index.ts",
"dev:bin:init": "ts-node ./bin/index.ts init",
"-------------------build-------------------": "echo '------------------- build -------------------'",
"prebuild": "ts-node ./build/pre-build.ts",
"build": "run-p build:esm build:cjs build:types",
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build:types": "tsc --project tsconfig.type.json",
"postbuild": "ts-node ./build/post-build.ts",
"-------------------check-------------------": "echo '------------------- check -------------------'",
"pretest:cover": "rm -rf ./__coverage__",
"test:cover": "jest --coverage",
"test": "jest",
"lint:fix": "eslint --fix 'src/**/*.ts'",
"-------------------publish-----------------": "echo '------------------- publish -----------------'",
"prerelease": "npm rum build",
"release": "npm publish --regitry=https://registry.npmjs.org",
"_postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"exports": {
"./package.json": "./package.json",
"./assets/schema/root-config.json": "./assets/schema/root-config.json",
".": {
"require": "./dist/cjs/src/index.js",
"import": "./dist/esm/src/index.js",
"types": "./dist/types/src/index.d.ts"
},
"./com-types": {
"require": "./dist/cjs/src/com-types.js",
"import": "./dist/esm/src/com-types.js",
"types": "./dist/types/src/com-types.d.ts"
},
"./tools": {
"require": "./dist/cjs/src/tools/index.js",
"import": "./dist/esm/src/tools/index.js",
"types": "./dist/types/src/tools/index.d.ts"
}
},
"dependencies": {
"@types/debug": "^4.1.12",
"@types/fs-extra": "^11.0.3",
"@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-sslify": "^4.0.6",
"@types/lru-cache": "^5.0.0",
"@types/minimist": "^1.2.5",
"@types/node-fetch": "^2.6.11",
"@types/prompts": "^2.4.9",
"@types/ws": "^8.5.13",
"anymatch": "^3.1.3",
"chokidar": "^3.6.0",
"color-cc": "^0.0.7",
"cosmiconfig": "^8.3.6",
"debug": "^4.3.6",
"deepmerge": "^4.3.1",
"free-dedupe": "^0.0.7",
"fs-extra": "^11.1.1",
"json5": "^2.2.3",
"koa": "^2.16.1",
"koa-bodyparser": "^4.4.1",
"koa-connect": "^2.1.0",
"koa-sslify": "^5.0.1",
"lru-cache": "^5.0.0",
"minimist": "^1.2.8",
"node-fetch": "^2.6.11",
"package-json-type": "^1.0.3",
"prettier": "^3.0.3",
"prompts": "^2.4.2",
"typescript": "^4.5.5",
"ws": "^8.18.0"
},
"devDependencies": {
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@types/jest": "^27.4.0",
"@types/node": "^20.8.7",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"cross-env": "^7.0.3",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"jest": "^27.4.0",
"lint-staged": "^12.3.3",
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
"pinst": "^2.1.6",
"prettier": "^3.0.3",
"ts-jest": "^27.1.3",
"ts-node": "^10.4.0",
"tslib": "^2.6.2",
"typescript": "^4.5.5"
},
"keywords": [
"mock",
"mihawk",
"koa2",
"express",
"mock-server",
"http-mock",
"api-mock",
"socket-mock",
"socket"
],
"repository": {
"type": "git",
"url": "git@github.com:Froguard/mihawk.git"
},
"bugs": {
"url": "https://github.com/Froguard/mihawk/issues"
},
"homepage": "https://github.com/Froguard/mihawk#readme",
"license": "MIT"
}