UNPKG

msw-snapshot

Version:

Transparently create an API cache for testing.

67 lines (66 loc) 2.01 kB
{ "name": "msw-snapshot", "version": "6.0.0", "description": "Transparently create an API cache for testing.", "type": "module", "main": "./dist/esm/index.js", "typings": "./dist/dts/index.d.ts", "exports": { ".": { "types": "./dist/dts/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./mask": { "types": "./dist/dts/mask.d.ts", "import": "./dist/esm/mask.js", "require": "./dist/cjs/mask.js" } }, "files": [ "dist" ], "scripts": { "test": "pnpm run test:vitest && pnpm run test:tsc", "test:vitest": "start-server-and-test 'pnpm run server' 3000 'vitest --run'", "test:tsc": "tsc --noEmit", "server": "tsx ./server.ts", "build": "pnpm run build:cjs && pnpm run build:esm && pnpm 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 node10 --ignoreDeprecations 6.0", "build:esm": "tsc --project ./tsconfig.build.json --outDir ./dist/esm --sourceMap --module nodenext", "prepack": "pnpm run build", "prepublishOnly": "pnpm run build && pnpm 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": "^9.0.0", "@fastify/cookie": "^11.0.2", "@fastify/formbody": "^8.0.2", "@fastify/multipart": "^10.0.0", "@types/node": "^26.0.1", "fastify": "^5.8.5", "msw": "^2.14.6", "start-server-and-test": "^3.0.11", "tsx": "^4.22.4", "typescript": "^6.0.3", "vite": "^7.3.6", "vitest": "^4.1.9" } }