UNPKG

@unsplash/sum-types

Version:

Safe, ergonomic, non-generic sum types in TypeScript.

53 lines (52 loc) 1.49 kB
{ "name": "@unsplash/sum-types", "description": "Safe, ergonomic, non-generic sum types in TypeScript.", "version": "1.0.1", "license": "MIT", "author": "Unsplash", "repository": { "type": "git", "url": "https://github.com/unsplash/sum-types" }, "homepage": "https://github.com/unsplash/sum-types", "bugs": "https://github.com/unsplash/sum-types/issues", "keywords": [ "functional-programming", "typescript", "adt", "tagged", "pattern", "matching" ], "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "files": [ "dist/" ], "sideEffects": false, "scripts": { "build": "rm -rf ./dist/ && mkdir -p ./dist/esm/ ./dist/cjs/ && tsc -p ./tsconfig.build-esm.json && tsc -p ./tsconfig.build-cjs.json && tsc -p ./tsconfig.build-types.json", "typecheck": "tsc --noEmit", "lint": "eslint ./src/ ./test/ --ext ts", "fmt": "prettier .", "unit": "jest", "docs": "docs-ts", "prepublish": "yarn run build" }, "devDependencies": { "@types/eslint": "^7.0.0", "@types/jest": "^26.0.20", "@typescript-eslint/eslint-plugin": "^4.3.0", "@typescript-eslint/parser": "^4.3.0", "docs-ts": "^0.6.7", "eslint": "^7.0.0", "eslint-plugin-expect-type": "^0.0.6", "eslint-plugin-functional": "^3.5.0", "fast-check": "^2.5.0", "jest": "^26.6.0", "prettier": "^2.1.2", "ts-jest": "^26.4.1", "typescript": "^4.0.3" } }