msw-snapshot
Version:
Transparently create an API cache for testing.
66 lines (65 loc) • 1.95 kB
JSON
{
"name": "msw-snapshot",
"version": "5.3.0",
"description": "Transparently create an API cache for testing.",
"type": "module",
"main": "./dist/esm/index.js",
"typings": "./dist/dts/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/dts/index.d.ts"
},
"./mask": {
"import": "./dist/esm/mask.js",
"require": "./dist/cjs/mask.js",
"types": "./dist/dts/mask.d.ts"
}
},
"files": [
"dist"
],
"scripts": {
"test": "npm run test:vitest && npm run test:tsc",
"test:vitest": "start-server-and-test 'npm run server' 3000 'vitest --run'",
"test:tsc": "tsc --noEmit",
"server": "tsx ./server.ts",
"build": "npm run build:cjs && npm run build:esm && npm run build:dts",
"build:dts": "tsc --project ./tsconfig.build.json --outDir ./dist/dts --sourceMap --emitDeclarationOnly",
"build:cjs": "tsc --project ./tsconfig.build.json --outDir ./dist/cjs --sourceMap --module commonjs --moduleResolution node",
"build:esm": "tsc --project ./tsconfig.build.json --outDir ./dist/esm --sourceMap --module nodenext",
"prepack": "npm run build",
"prepublishOnly": "npm run build && npm run test"
},
"author": "hrsh7th",
"homepage": "https://github.com/hrsh7th/msw-snapshot",
"repository": {
"type": "git",
"url": "https://github.com/hrsh7th/msw-snapshot.git"
},
"license": "MIT",
"keywords": [
"msw",
"mswjs",
"mock",
"api",
"snapshot"
],
"peerDependencies": {
"msw": "^2.0.0"
},
"devDependencies": {
"@fastify/compress": "^6.5.0",
"@fastify/cookie": "^9.2.0",
"@fastify/formbody": "^7.4.0",
"@fastify/multipart": "^8.0.0",
"@types/node": "^20.10.0",
"fastify": "^4.24.3",
"msw": "^2.0.9",
"start-server-and-test": "^2.0.3",
"tsx": "^4.5.0",
"typescript": "^5.2",
"vitest": "^0.34.6"
}
}