package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "name": "@sinonjs/commons",
  3. "version": "1.8.6",
  4. "description": "Simple functions shared among the sinon end user libraries",
  5. "main": "lib/index.js",
  6. "types": "./types/index.d.ts",
  7. "scripts": {
  8. "build": "rm -rf types && tsc",
  9. "lint": "eslint .",
  10. "precommit": "lint-staged",
  11. "test": "mocha --recursive -R dot \"lib/**/*.test.js\"",
  12. "test-check-coverage": "npm run test-coverage && nyc check-coverage --branches 100 --functions 100 --lines 100",
  13. "test-coverage": "nyc --reporter text --reporter html --reporter lcovonly npm run test",
  14. "prepublishOnly": "npm run build",
  15. "prettier:check": "prettier --check '**/*.{js,css,md}'",
  16. "prettier:write": "prettier --write '**/*.{js,css,md}'",
  17. "preversion": "npm run test-check-coverage",
  18. "version": "changes --commits --footer",
  19. "postversion": "git push --follow-tags && npm publish",
  20. "prepare": "husky install"
  21. },
  22. "repository": {
  23. "type": "git",
  24. "url": "git+https://github.com/sinonjs/commons.git"
  25. },
  26. "files": [
  27. "lib",
  28. "types"
  29. ],
  30. "author": "",
  31. "license": "BSD-3-Clause",
  32. "bugs": {
  33. "url": "https://github.com/sinonjs/commons/issues"
  34. },
  35. "homepage": "https://github.com/sinonjs/commons#readme",
  36. "lint-staged": {
  37. "*.{js,css,md}": "prettier --check",
  38. "*.js": "eslint"
  39. },
  40. "devDependencies": {
  41. "@sinonjs/eslint-config": "^4.0.6",
  42. "@sinonjs/eslint-plugin-no-prototype-methods": "^0.1.0",
  43. "@sinonjs/referee-sinon": "^10.1.0",
  44. "@studio/changes": "^2.2.0",
  45. "husky": "^6.0.0",
  46. "jsverify": "0.8.4",
  47. "knuth-shuffle": "^1.0.8",
  48. "lint-staged": "^13.0.3",
  49. "mocha": "^10.1.0",
  50. "nyc": "^15.1.0",
  51. "prettier": "^2.7.1",
  52. "typescript": "^4.8.4"
  53. },
  54. "dependencies": {
  55. "type-detect": "4.0.8"
  56. }
  57. }