package.json 2.4 KB

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