package.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "name": "@eslint/plugin-kit",
  3. "version": "0.2.2",
  4. "description": "Utilities for building ESLint plugins.",
  5. "author": "Nicholas C. Zakas",
  6. "type": "module",
  7. "main": "dist/esm/index.js",
  8. "types": "dist/esm/index.d.ts",
  9. "exports": {
  10. "require": {
  11. "types": "./dist/cjs/index.d.cts",
  12. "default": "./dist/cjs/index.cjs"
  13. },
  14. "import": {
  15. "types": "./dist/esm/index.d.ts",
  16. "default": "./dist/esm/index.js"
  17. }
  18. },
  19. "files": [
  20. "dist"
  21. ],
  22. "publishConfig": {
  23. "access": "public"
  24. },
  25. "repository": {
  26. "type": "git",
  27. "url": "git+https://github.com/eslint/rewrite.git"
  28. },
  29. "bugs": {
  30. "url": "https://github.com/eslint/rewrite/issues"
  31. },
  32. "homepage": "https://github.com/eslint/rewrite#readme",
  33. "scripts": {
  34. "build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
  35. "build:cts": "node -e \"fs.copyFileSync('dist/esm/index.d.ts', 'dist/cjs/index.d.cts')\"",
  36. "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts",
  37. "test:jsr": "npx jsr@latest publish --dry-run",
  38. "pretest": "npm run build",
  39. "test": "mocha tests/",
  40. "test:coverage": "c8 npm test"
  41. },
  42. "keywords": [
  43. "eslint",
  44. "eslintplugin",
  45. "eslint-plugin"
  46. ],
  47. "license": "Apache-2.0",
  48. "devDependencies": {
  49. "@eslint/core": "^0.8.0",
  50. "c8": "^9.1.0",
  51. "mocha": "^10.4.0",
  52. "rollup": "^4.16.2",
  53. "rollup-plugin-copy": "^3.5.0",
  54. "typescript": "^5.4.5"
  55. },
  56. "engines": {
  57. "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
  58. },
  59. "dependencies": {
  60. "levn": "^0.4.1"
  61. }
  62. }