UNPKG

@tsdotnet/type

Version:

A set of useful utility functions for JavaScript run-time type checking and inspection.

70 lines 2.27 kB
{ "name": "@tsdotnet/type", "version": "1.2.8", "description": "A set of useful utility functions for JavaScript run-time type checking and inspection.", "author": "electricessence", "license": "MIT", "type": "module", "exports": { ".": { "types": "./dist/types/type.d.ts", "import": "./dist/esm/type.js", "require": "./dist/cjs/type.js" } }, "types": "./dist/types/type.d.ts", "keywords": [ "typeof", "primitive", "property", "member", "type check", "type checking", "has member", "has member of" ], "repository": { "type": "git", "url": "git+https://github.com/tsdotnet/type.git" }, "bugs": { "url": "https://github.com/tsdotnet/type/issues" }, "homepage": "https://github.com/tsdotnet/type#readme", "devDependencies": { "@eslint/js": "^10.0.1", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-typescript": "^12.3.0", "@types/node": "^25.5.0", "@vitest/coverage-v8": "^4.1.0", "cpy-cli": "^7.0.0", "eslint": "^10.0.3", "rimraf": "^6.1.3", "rollup": "^4.59.0", "typedoc": "^0.28.17", "typescript": "^5.9.3", "typescript-eslint": "^8.57.1", "vitest": "^4.1.0" }, "dependencies": { "@tsdotnet/common-interfaces": "^1.0.6", "tslib": "^2.8.1" }, "scripts": { "clean": "rimraf dist", "copy:dts": "cpy \"src/**/*.d.ts\" dist/types --parents || echo No .d.ts files to copy", "build:types": "pnpm copy:dts && tsc -p tsconfig.types.json", "build:esm": "rollup -c rollup.config.js", "build:cjs": "tsc -p tsconfig.cjs.json", "build": "pnpm clean && pnpm build:types && pnpm build:esm && pnpm build:cjs && pnpm typecheck:tests", "test": "vitest run", "typecheck": "tsc --noEmit", "typecheck:tests": "tsc -p tests/tsconfig.json --noEmit", "lint": "eslint src/**/*.ts", "docs": "rimraf docs && typedoc --options typedoc.json --readme none", "bump": "pnpm run precommit && pnpm version patch", "precommit": "pnpm build && pnpm test && pnpm lint && git status -s", "preversion": "pnpm lint && pnpm test", "postversion": "git push && git push --tags && pnpm run docs && git add -A && git commit -m \"Updated docs.\" docs && git push" } }