package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "copy-anything",
  3. "version": "3.0.5",
  4. "description": "An optimised way to copy'ing an object. A small and simple integration",
  5. "type": "module",
  6. "sideEffects": false,
  7. "types": "./dist/index.d.ts",
  8. "module": "./dist/index.js",
  9. "main": "./dist/index.js",
  10. "exports": {
  11. ".": {
  12. "require": {
  13. "types": "./dist/cjs/index.d.cts",
  14. "default": "./dist/cjs/index.cjs"
  15. },
  16. "import": {
  17. "types": "./dist/index.d.ts",
  18. "default": "./dist/index.js"
  19. }
  20. }
  21. },
  22. "files": [
  23. "dist"
  24. ],
  25. "engines": {
  26. "node": ">=12.13"
  27. },
  28. "scripts": {
  29. "test": "vitest run",
  30. "lint": "tsc --noEmit && eslint ./src --ext .ts",
  31. "build": "rollup -c ./rollup.config.js",
  32. "release": "npm run lint && del dist && npm run build && np"
  33. },
  34. "dependencies": {
  35. "is-what": "^4.1.8"
  36. },
  37. "devDependencies": {
  38. "@typescript-eslint/eslint-plugin": "^5.59.2",
  39. "@typescript-eslint/parser": "^5.59.2",
  40. "del-cli": "^5.0.0",
  41. "eslint": "^8.40.0",
  42. "eslint-config-prettier": "^8.8.0",
  43. "eslint-plugin-tree-shaking": "^1.10.0",
  44. "np": "^7.7.0",
  45. "prettier": "^2.8.8",
  46. "rollup": "^3.23.0",
  47. "rollup-plugin-dts": "^5.3.0",
  48. "rollup-plugin-esbuild": "^5.0.0",
  49. "typescript": "^4.9.5",
  50. "vitest": "^0.31.0"
  51. },
  52. "keywords": [
  53. "copy",
  54. "clone",
  55. "json-stringify",
  56. "stringify-parse",
  57. "object",
  58. "copy-objects",
  59. "clone-objects",
  60. "json-stringify-json-parse",
  61. "deep-clone",
  62. "deep-copy",
  63. "typescript",
  64. "ts"
  65. ],
  66. "author": "Luca Ban - Mesqueeb",
  67. "funding": "https://github.com/sponsors/mesqueeb",
  68. "license": "MIT",
  69. "bugs": {
  70. "url": "https://github.com/mesqueeb/copy-anything/issues"
  71. },
  72. "homepage": "https://github.com/mesqueeb/copy-anything#readme",
  73. "repository": {
  74. "type": "git",
  75. "url": "git+https://github.com/mesqueeb/copy-anything.git"
  76. },
  77. "np": {
  78. "yarn": false,
  79. "branch": "production"
  80. },
  81. "eslintConfig": {
  82. "ignorePatterns": [
  83. "node_modules",
  84. "dist",
  85. "scripts",
  86. "test"
  87. ],
  88. "root": true,
  89. "parser": "@typescript-eslint/parser",
  90. "plugins": [
  91. "@typescript-eslint",
  92. "tree-shaking"
  93. ],
  94. "extends": [
  95. "eslint:recommended",
  96. "plugin:@typescript-eslint/eslint-recommended",
  97. "plugin:@typescript-eslint/recommended",
  98. "prettier"
  99. ],
  100. "rules": {
  101. "@typescript-eslint/no-empty-function": "off",
  102. "@typescript-eslint/no-explicit-any": "off",
  103. "@typescript-eslint/ban-ts-ignore": "off",
  104. "tree-shaking/no-side-effects-in-initialization": "error",
  105. "@typescript-eslint/ban-ts-comment": "off"
  106. }
  107. }
  108. }