UNPKG

ts-expect

Version:

Checks TypeScript types match expected values

101 lines (100 loc) 2.37 kB
{ "name": "ts-expect", "version": "1.3.0", "description": "Checks TypeScript types match expected values", "main": "dist/index.js", "typings": "dist/index.d.ts", "files": [ "dist/", "LICENSE" ], "scripts": { "prettier": "prettier --write", "lint": "eslint \"src/**/*.{ts,tsx}\" --quiet --fix", "format": "npm run prettier -- \"{,src/**/}*.{js,jsx,ts,tsx,json,css,md,yml,yaml}\"", "build": "rimraf dist/ && tsc", "specs": "jest --coverage", "test": "npm run -s lint && npm run -s build && npm run -s specs", "prepare": "npm run build" }, "repository": { "type": "git", "url": "git://github.com/TypeStrong/ts-expect.git" }, "keywords": [ "typescript", "type-check", "assert", "expect", "type", "check", "types", "typings" ], "author": { "name": "Blake Embrey", "email": "hello@blakeembrey.com", "url": "http://blakeembrey.me" }, "license": "MIT", "bugs": { "url": "https://github.com/TypeStrong/ts-expect/issues" }, "homepage": "https://github.com/TypeStrong/ts-expect", "eslintConfig": { "parser": "@typescript-eslint/parser", "extends": [ "plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended" ], "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" } }, "jest": { "roots": [ "<rootDir>/src/" ], "transform": { "\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx,ts,tsx,json,css,md,yml,yaml}": "npm run prettier" }, "publishConfig": { "access": "public" }, "devDependencies": { "@types/jest": "^26.0.20", "@types/node": "^14.14.25", "@typescript-eslint/eslint-plugin": "^4.15.0", "@typescript-eslint/parser": "^4.15.0", "eslint": "^7.19.0", "eslint-config-prettier": "^7.2.0", "eslint-plugin-prettier": "^3.3.1", "husky": "^5.0.9", "jest": "^26.6.3", "lint-staged": "^10.5.4", "prettier": "^2.2.1", "rimraf": "^3.0.2", "ts-jest": "^26.5.1", "typescript": "^4.1.4" } }