UNPKG

groupby-typename

Version:

Type-safe and tested utility to easily group an array of GraphQL objects by their typename

73 lines (72 loc) 1.71 kB
{ "name": "groupby-typename", "version": "1.1.1", "description": "Type-safe and tested utility to easily group an array of GraphQL objects by their typename", "keywords": [ "groupby", "group", "by", "typename", "graphql", "node", "union", "type" ], "repository": { "type": "git", "url": "git+https://github.com/charpeni/groupby-typename.git" }, "license": "MIT", "author": "Nicolas Charpentier <nicolas.charpentier079@gmail.com>", "sideEffects": false, "type": "module", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.cts", "files": [ "LICENSE", "README.md", "dist", "package.json" ], "scripts": { "build": "tsdown", "format": "prettier --write .", "lint": "eslint .", "prepack": "pnpm build", "prepare": "husky", "test": "jest", "type-check": "tsc --pretty --noEmit", "check-exports": "attw --pack ." }, "lint-staged": { "*.{js,ts,md}": [ "prettier --write" ] }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.2", "@eslint/js": "^9.35.0", "@total-typescript/tsconfig": "^1.0.4", "@types/jest": "^30.0.0", "eslint": "^9.35.0", "eslint-plugin-import": "^2.32.0", "expect-type": "^1.2.2", "husky": "^9.1.7", "jest": "^30.1.3", "lint-staged": "^16.1.6", "prettier": "3.6.2", "ts-jest": "^29.4.1", "tsdown": "^0.14.2", "typescript": "^5.9.2", "typescript-eslint": "^8.42.0" }, "packageManager": "pnpm@10.15.1" }