package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "@cfworker/json-schema",
  3. "version": "4.1.1",
  4. "description": "A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, 2019-09, and 2020-12.",
  5. "keywords": [
  6. "json-schema",
  7. "jsonschema",
  8. "json",
  9. "schema",
  10. "cloudflare",
  11. "worker",
  12. "workers",
  13. "service-worker"
  14. ],
  15. "repository": "https://github.com/cfworker/cfworker",
  16. "author": "Jeremy Danyow <jdanyow@gmail.com>",
  17. "homepage": "https://github.com/cfworker/cfworker/tree/master/packages/json-schema/README.md",
  18. "license": "MIT",
  19. "publishConfig": {
  20. "access": "public"
  21. },
  22. "type": "module",
  23. "sideEffects": false,
  24. "main": "./dist/commonjs/index.js",
  25. "types": "./dist/commonjs/index.d.ts",
  26. "module": "./dist/esm/index.js",
  27. "exports": {
  28. "./package.json": "./package.json",
  29. ".": {
  30. "import": {
  31. "types": "./dist/esm/index.d.ts",
  32. "default": "./dist/esm/index.js"
  33. },
  34. "require": {
  35. "types": "./dist/commonjs/index.d.ts",
  36. "default": "./dist/commonjs/index.js"
  37. }
  38. }
  39. },
  40. "files": [
  41. "dist",
  42. "src",
  43. "README.md"
  44. ],
  45. "scripts": {
  46. "prepare": "tshy",
  47. "build": "tsc --build",
  48. "clean": "tsc --build --clean",
  49. "pretest": "node --experimental-import-meta-resolve suite-gen.mjs && esbuild test/test.ts --target=esnext --bundle --format=esm --conditions=worker,browser --outdir=dist-test --ignore-annotations",
  50. "test": "node ../../test.mjs"
  51. },
  52. "devDependencies": {
  53. "@types/chai": "^5.0.1",
  54. "@types/mocha": "^10.0.10",
  55. "chai": "^5.1.2",
  56. "json-schema-test-suite": "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite#76b529f",
  57. "esbuild": "^0.24.2",
  58. "mocha": "^11.1.0",
  59. "typescript": "^5.7.3",
  60. "wrangler": "^3.107.2"
  61. },
  62. "tshy": {
  63. "exports": {
  64. "./package.json": "./package.json",
  65. ".": "./src/index.ts"
  66. }
  67. }
  68. }