UNPKG

@rageltd/bun-test-utils

Version:

A collection of test utilities for Bun projects

82 lines (81 loc) 2.58 kB
{ "name": "@rageltd/bun-test-utils", "version": "2.0.0", "author": "", "repository": { "type": "git", "url": "git+https://github.com/rageltd/bun-test-utils.git" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "main": "dist/index.js", "module": "dist/index.js", "devDependencies": { "@biomejs/biome": "^2.0.0", "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@semantic-release/commit-analyzer": "^13.0.1", "@semantic-release/npm": "^12.0.1", "@semantic-release/release-notes-generator": "^14.0.3", "@types/bun": "latest", "commitizen": "^4.3.1", "cz-conventional-changelog": "^3.3.0", "lefthook": "^1.11.14", "semantic-release": "^24.2.5", "typescript": "^5.8.3" }, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } }, "bugs": { "url": "https://github.com/rageltd/bun-test-utils/issues" }, "description": "A collection of test utilities for Bun projects", "files": [ "dist" ], "homepage": "https://github.com/rageltd/bun-test-utils#readme", "keywords": [ "bun", "testing", "test-utils", "typescript", "mocking", "mock", "module-mocking", "cleanup", "test-isolation" ], "license": "The Unlicense", "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "scripts": { "build": "bun run build:clean && bun run build:esm && bun run build:cjs && bun run build:types", "build:clean": "rm -rf dist", "build:esm": "bun build index.ts --outdir dist --format esm --minify --target bun", "build:cjs": "bun build index.ts --outfile dist/index.cjs --format cjs --minify --target bun", "build:types": "tsc --project tsconfig.build.json", "build:watch": "bun run build:types --watch", "dev": "bun run build:watch", "test": "bun test", "test:build": "bun run build && echo 'Testing CJS:' && bun -e \"console.log(Object.keys(require('./dist/index.cjs')))\" && echo 'Testing ESM:' && bun -e \"import('./dist/index.js').then(m => console.log(Object.keys(m)))\"", "lint": "bunx @biomejs/biome check src/", "lint:fix": "bunx @biomejs/biome check --apply ./", "prepare": "bun scripts/setup-hooks.js", "commit": "cz", "release": "semantic-release", "release:dry": "semantic-release --dry-run", "prepublishOnly": "bun run build" }, "type": "module", "types": "dist/index.d.ts" }