package.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "@discoveryjs/json-ext",
  3. "version": "1.1.0",
  4. "description": "A set of efficient utilities that extend the use of JSON (streaming, estimate size, NDJSON/JSONL, etc.)",
  5. "keywords": [
  6. "json",
  7. "jsonl",
  8. "ndjson",
  9. "utils",
  10. "stream",
  11. "streaming",
  12. "webstreams",
  13. "async",
  14. "promise",
  15. "generator",
  16. "parse",
  17. "stringify",
  18. "info"
  19. ],
  20. "author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)",
  21. "license": "MIT",
  22. "repository": {
  23. "type": "git",
  24. "url": "git+https://github.com/discoveryjs/json-ext.git"
  25. },
  26. "engines": {
  27. "node": ">=14.17.0"
  28. },
  29. "type": "module",
  30. "main": "./cjs/index.cjs",
  31. "module": "./src/index.js",
  32. "types": "./index.d.ts",
  33. "exports": {
  34. ".": {
  35. "types": "./index.d.ts",
  36. "require": "./cjs/index.cjs",
  37. "import": "./src/index.js"
  38. },
  39. "./dist/*": "./dist/*",
  40. "./package.json": "./package.json"
  41. },
  42. "scripts": {
  43. "test": "npm run test:src",
  44. "lint": "eslint src",
  45. "lint-and-test": "npm run lint && npm test",
  46. "bundle": "node scripts/bundle.js",
  47. "transpile": "node scripts/transpile.cjs",
  48. "test:all": "npm run test:src && npm run test:cjs && npm run test:dist && npm run test:e2e",
  49. "test:src": "mocha --reporter progress src/*.test.js",
  50. "test:cjs": "mocha --reporter progress cjs/*.test.cjs",
  51. "test:e2e": "mocha --reporter progress test-e2e",
  52. "test:dist": "mocha --reporter progress dist/test",
  53. "test:deno": "node scripts/deno-adapt-test.js && mocha --reporter progress deno-tests/*.test.js",
  54. "bundle-and-test": "npm run bundle && npm run test:dist",
  55. "coverage": "c8 --reporter=lcovonly npm test",
  56. "prepublishOnly": "npm run lint && npm run bundle && npm run transpile && npm run test:all"
  57. },
  58. "devDependencies": {
  59. "c8": "^7.10.0",
  60. "chalk": "^4.1.0",
  61. "esbuild": "^0.27.3",
  62. "eslint": "^8.57.0",
  63. "mocha": "^9.2.2",
  64. "rollup": "^2.79.2"
  65. },
  66. "files": [
  67. "cjs",
  68. "!cjs/*{.test,-cases}.cjs",
  69. "dist",
  70. "src",
  71. "!src/*{.test,-cases}.js",
  72. "index.d.ts"
  73. ]
  74. }