UNPKG

groupby-typename

Version:

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

72 lines (71 loc) 1.67 kB
{ "name": "groupby-typename", "version": "1.1.0", "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.29.0", "@total-typescript/tsconfig": "^1.0.4", "@types/jest": "^30.0.0", "eslint": "^9.29.0", "eslint-plugin-import": "^2.31.0", "expect-type": "^1.2.1", "husky": "^9.1.7", "jest": "^30.0.0", "lint-staged": "^16.1.2", "prettier": "3.5.3", "ts-jest": "^29.4.0", "tsdown": "^0.12.8", "typescript": "^5.8.3", "typescript-eslint": "^8.34.1" } }