package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "tree-changes",
  3. "version": "0.11.2",
  4. "description": "Get changes between two versions of data with similar shape",
  5. "author": "Gil Barbara <gilbarbara@gmail.com>",
  6. "keywords": [
  7. "comparison",
  8. "tree"
  9. ],
  10. "license": "MIT",
  11. "repository": {
  12. "type": "git",
  13. "url": "git+https://github.com/gilbarbara/tree-changes.git"
  14. },
  15. "bugs": {
  16. "url": "https://github.com/gilbarbara/tree-changes/issues"
  17. },
  18. "homepage": "https://github.com/gilbarbara/tree-changes/tree/main/packages/tree-changes#readme",
  19. "main": "dist/index.js",
  20. "module": "dist/index.mjs",
  21. "exports": {
  22. ".": {
  23. "import": "./dist/index.mjs",
  24. "require": "./dist/index.js"
  25. }
  26. },
  27. "files": [
  28. "dist",
  29. "src"
  30. ],
  31. "types": "dist/index.d.ts",
  32. "sideEffects": false,
  33. "dependencies": {
  34. "@gilbarbara/deep-equal": "^0.3.1",
  35. "is-lite": "^1.2.0"
  36. },
  37. "devDependencies": {
  38. "@gilbarbara/node-helpers": "^0.1.0",
  39. "vitest": "^0.34.6"
  40. },
  41. "scripts": {
  42. "build": "npm run clean && tsup && ts-node scripts/fix-cjs.ts",
  43. "watch": "tsup --watch",
  44. "clean": "del dist/*",
  45. "lint": "eslint src test",
  46. "test": "is-ci \"test:coverage\" \"test:watch\"",
  47. "test:coverage": "vitest run --coverage",
  48. "test:watch": "vitest watch",
  49. "typecheck": "tsc --noEmit",
  50. "format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
  51. "validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
  52. "size": "size-limit",
  53. "prepublishOnly": "npm run validate"
  54. },
  55. "tsup": {
  56. "cjsInterop": true,
  57. "dts": true,
  58. "entry": [
  59. "src/index.ts"
  60. ],
  61. "format": [
  62. "cjs",
  63. "esm"
  64. ],
  65. "sourcemap": true,
  66. "splitting": false
  67. },
  68. "eslintConfig": {
  69. "extends": [
  70. "@gilbarbara/eslint-config/base",
  71. "@gilbarbara/eslint-config/vitest"
  72. ]
  73. },
  74. "prettier": "@gilbarbara/prettier-config",
  75. "size-limit": [
  76. {
  77. "name": "cjs",
  78. "path": "./dist/index.js",
  79. "limit": "4 kB"
  80. },
  81. {
  82. "name": "esm",
  83. "path": "./dist/index.mjs",
  84. "limit": "3 kB"
  85. }
  86. ],
  87. "gitHead": "77086e475c287f0c2d801953209ed8eae096952b"
  88. }