package.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "name": "@eslint/object-schema",
  3. "version": "2.1.7",
  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:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
  29. "build:cts": "node ../../tools/build-cts.js dist/esm/index.d.ts dist/cjs/index.d.cts",
  30. "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts",
  31. "test": "mocha \"tests/**/*.test.js\"",
  32. "test:coverage": "c8 npm test",
  33. "test:jsr": "npx jsr@latest publish --dry-run",
  34. "test:types": "tsc -p tests/types/tsconfig.json"
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/eslint/rewrite.git",
  39. "directory": "packages/object-schema"
  40. },
  41. "keywords": [
  42. "object",
  43. "validation",
  44. "schema",
  45. "merge"
  46. ],
  47. "author": "Nicholas C. Zakas",
  48. "license": "Apache-2.0",
  49. "bugs": {
  50. "url": "https://github.com/eslint/rewrite/issues"
  51. },
  52. "homepage": "https://github.com/eslint/rewrite/tree/main/packages/object-schema#readme",
  53. "devDependencies": {
  54. "rollup-plugin-copy": "^3.5.0"
  55. },
  56. "engines": {
  57. "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
  58. }
  59. }