@ch1/utility
Version:
Utility functions I end up adding to all my projects
96 lines (95 loc) • 2.21 kB
JSON
{
"name": "@ch1/utility",
"version": "0.8.0",
"description": "Utility functions I end up adding to all my projects",
"keywords": [
"CH1",
"Utility",
"Functions"
],
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/bennett000/ch1-utility",
"homepage": "https://github.com/bennett000/ch1-utility",
"bugs": "https://github.com/bennett000/ch1-utility/issues",
"author": "dev@michaeljbennett.info",
"contributors": [],
"license": "LGPL-3.0",
"private": false,
"scripts": {
"prebuild": "rimraf ./dist",
"build": "tsc",
"postbuild": "rollup --input ./dist/index.js --format cjs --file ./dist/index.cjs.js",
"pretest": "rimraf ./dist && rimraf ./coverage",
"test": "jest",
"test:watch": "jest --watch"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --single-quote --write src/**/*.ts",
"git add"
]
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/*.{ts,tsx}",
"!**/node_modules/**",
"!**/coverage/**",
"!**/dist/**",
"!**/*.d.ts",
"!**/interfaces.ts",
"!**/index.ts"
],
"coverageDirectory": "coverage/",
"coveragePathIgnorePatterns": [
"/node_modules/",
"/coverage/",
"/dist/"
],
"coverageReporters": [
"json",
"lcov",
"text",
"html"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 90
}
},
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
},
"devDependencies": {
"@types/jest": "^23.3.1",
"@types/node": "^10.9.4",
"husky": "^1.0.0-rc.13",
"jest": "^23.5.0",
"lint-staged": "^7.2.2",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"rollup": "^0.65.2",
"ts-jest": "^23.1.4",
"typescript": "^3.0.3"
}
}