package.json 2.2 KB

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