package.json 1.4 KB

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