package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "name": "ts-api-utils",
  3. "version": "1.0.1",
  4. "description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils.",
  5. "repository": {
  6. "type": "git",
  7. "url": "https://github.com/JoshuaKGoldberg/ts-api-utils"
  8. },
  9. "license": "MIT",
  10. "author": "Josh Goldberg <npm@joshuakgoldberg.com>",
  11. "type": "module",
  12. "exports": {
  13. ".": {
  14. "types": {
  15. "import": "./lib/index.d.ts",
  16. "require": "./lib/index.d.cts"
  17. },
  18. "import": "./lib/index.js",
  19. "require": "./lib/index.cjs"
  20. }
  21. },
  22. "main": "./lib/index.js",
  23. "files": [
  24. "lib/",
  25. "package.json",
  26. "LICENSE.md",
  27. "README.md"
  28. ],
  29. "scripts": {
  30. "build": "tsup src/index.ts --clean --format cjs,esm --outDir lib --dts && cp lib/index.d.ts lib/index.d.cts",
  31. "docs": "typedoc",
  32. "docs:serve": "http-serve docs/generated",
  33. "format": "prettier \"**/*\" --ignore-unknown",
  34. "format:write": "pnpm format --write",
  35. "lint": "eslint . --max-warnings 0 --report-unused-disable-directives",
  36. "lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
  37. "lint:knip": "knip --config knip.jsonc",
  38. "lint:knip:production": "knip --config knip.production.jsonc --production",
  39. "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
  40. "lint:package": "npmPkgJsonLint .",
  41. "lint:packages": "pnpm-deduplicate --list",
  42. "lint:spelling": "cspell \"**\" \".github/**/*\"",
  43. "prepare": "husky install",
  44. "should-semantic-release": "should-semantic-release --verbose",
  45. "test": "vitest",
  46. "type-check": "tsc --noEmit"
  47. },
  48. "lint-staged": {
  49. "*": "prettier --ignore-unknown --write"
  50. },
  51. "devDependencies": {
  52. "@typescript-eslint/eslint-plugin": "^5.48.2",
  53. "@typescript-eslint/parser": "^5.48.2",
  54. "@typescript/vfs": "^1.4.0",
  55. "@vitest/coverage-istanbul": "^0.32.0",
  56. "cspell": "^6.19.2",
  57. "eslint": "^8.32.0",
  58. "eslint-config-prettier": "^8.6.0",
  59. "eslint-plugin-deprecation": "^1.3.3",
  60. "eslint-plugin-eslint-comments": "^3.2.0",
  61. "eslint-plugin-import": "^2.27.5",
  62. "eslint-plugin-jsdoc": "^41.0.0",
  63. "eslint-plugin-jsonc": "^2.6.0",
  64. "eslint-plugin-markdown": "^3.0.0",
  65. "eslint-plugin-no-only-tests": "^3.1.0",
  66. "eslint-plugin-regexp": "^1.12.0",
  67. "eslint-plugin-simple-import-sort": "^10.0.0",
  68. "eslint-plugin-typescript-sort-keys": "^2.1.0",
  69. "eslint-plugin-unicorn": "^46.0.0",
  70. "eslint-plugin-vitest": "^0.2.0",
  71. "http-serve": "^1.0.1",
  72. "husky": "^8.0.3",
  73. "jsonc-eslint-parser": "^2.1.0",
  74. "knip": "^2.0.0",
  75. "lint-staged": "^13.1.0",
  76. "markdownlint": "^0.29.0",
  77. "markdownlint-cli": "^0.34.0",
  78. "npm-package-json-lint": "^6.4.0",
  79. "npm-package-json-lint-config-default": "^5.0.0",
  80. "pnpm-deduplicate": "^0.4.1",
  81. "prettier": "^2.8.3",
  82. "prettier-plugin-packagejson": "^2.4.2",
  83. "release-it": "^15.6.0",
  84. "sentences-per-line": "^0.2.1",
  85. "should-semantic-release": "^0.1.0",
  86. "tsup": "^6.5.0",
  87. "typedoc": "^0.24.0",
  88. "typedoc-plugin-coverage": "^2.0.0",
  89. "typedoc-plugin-custom-validation": "^1.1.0",
  90. "typedoc-plugin-konamimojisplosion": "^0.0.2",
  91. "typedoc-plugin-mdn-links": "^3.0.0",
  92. "typedoc-plugin-versions": "^0.2.3",
  93. "typescript": "^5.0.2",
  94. "vitest": "^0.32.0"
  95. },
  96. "peerDependencies": {
  97. "typescript": ">=4.2.0"
  98. },
  99. "packageManager": "pnpm@7.33.1",
  100. "engines": {
  101. "node": ">=16.13.0"
  102. }
  103. }