varianter
Version:
Simple variants/tagged unions/discriminated unions in TypeScript
69 lines (68 loc) • 1.59 kB
JSON
{
"version": "0.1.3",
"name": "varianter",
"description": "Simple variants/tagged unions/discriminated unions in TypeScript",
"author": "Jan Ove Kjærland",
"repository": "janovekj/varianter",
"homepage": "https://github.com/janovekj/varianter#README",
"keywords": [
"union",
"discriminated",
"tagged",
"type"
],
"license": "MIT",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/varianter.module.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"src"
],
"scripts": {
"build": "microbundle",
"dev": "microbundle watch",
"test": "uvu -r ts-node/register test",
"test:watch": "watchlist src test -- yarn test",
"lint": "eslint . --ext .ts",
"size": "size-limit",
"analyze": "size-limit --why",
"release": "np"
},
"peerDependencies": {},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.7.0",
"@typescript-eslint/eslint-plugin": "^4.6.1",
"@typescript-eslint/parser": "^4.6.1",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"husky": "^4.3.0",
"microbundle": "^0.12.4",
"np": "^7.0.0",
"prettier": "^2.1.2",
"size-limit": "^4.7.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.5",
"uvu": "^0.4.0",
"watchlist": "^0.2.3"
},
"engines": {
"node": ">=10"
},
"husky": {
"hooks": {
"pre-push": "yarn test && yarn lint"
}
},
"size-limit": [
{
"path": "dist/index.js",
"limit": "10 KB"
},
{
"path": "dist/index.modern.js",
"limit": "10 KB"
}
]
}