package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "polyclip-ts",
  3. "description": "Apply boolean polygon clipping operations (intersection, union, difference, xor) to your Polygons & MultiPolygons.",
  4. "version": "0.16.8",
  5. "author": {
  6. "name": "Luiz Felipe Machado Barboza"
  7. },
  8. "license": "MIT",
  9. "type": "module",
  10. "main": "dist/esm/index.js",
  11. "module": "dist/esm/index.js",
  12. "jsdelivr": "dist/polyclip-ts.umd.min.js",
  13. "unpkg": "dist/polyclip-ts.umd.min.js",
  14. "types": "dist/esm/index.d.ts",
  15. "exports": {
  16. "umd": "./dist/polyclip-ts.umd.min.js",
  17. "import": "./dist/esm/index.js",
  18. "require": "./dist/cjs/index.cjs",
  19. "default": "./dist/cjs/index.cjs"
  20. },
  21. "files": [
  22. "dist"
  23. ],
  24. "keywords": [
  25. "polygon",
  26. "clipping",
  27. "boolean",
  28. "intersection",
  29. "union",
  30. "difference",
  31. "xor",
  32. "geometry",
  33. "martinez"
  34. ],
  35. "repository": {
  36. "type": "git",
  37. "url": "https://github.com/luizbarboza/polyclip-ts.git"
  38. },
  39. "scripts": {
  40. "preversion": "npm run test",
  41. "version": "npm run build && git add -A",
  42. "postversion": "git push && git push --tags && npm publish",
  43. "build": "rollup -c && tsup",
  44. "test": "npm run test:typecheck && npm run test:lint && npm run test:jest",
  45. "test:lint": "eslint src",
  46. "test:typecheck": "tsc --noEmit",
  47. "test:jest": "jest",
  48. "bench": "node bench/bench.js"
  49. },
  50. "devDependencies": {
  51. "@babel/preset-env": "^7.19.0",
  52. "@babel/preset-typescript": "^7.18.6",
  53. "@rollup/plugin-json": "4",
  54. "@rollup/plugin-node-resolve": "13",
  55. "@rollup/plugin-terser": "^0.4.1",
  56. "@rollup/plugin-typescript": "^8.5.0",
  57. "@types/node": "^18.8.5",
  58. "@typescript-eslint/eslint-plugin": "^5.25.0",
  59. "@typescript-eslint/parser": "^5.25.0",
  60. "benchmark": "^2.1.4",
  61. "eslint": "^8.16.0",
  62. "eslint-config-prettier": "^8.5.0",
  63. "jest": "^27.5.1",
  64. "jsts": "^2.12.1",
  65. "martinez-polygon-clipping": "^0.7.1",
  66. "tsup": "^8.3.5"
  67. },
  68. "dependencies": {
  69. "bignumber.js": "^9.1.0",
  70. "splaytree-ts": "^1.0.2"
  71. }
  72. }