package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "name": "@gilbarbara/helpers",
  3. "version": "0.9.1",
  4. "description": "Collection of useful functions",
  5. "author": "Gil Barbara <gilbarbara@gmail.com>",
  6. "repository": {
  7. "type": "git",
  8. "url": "git://github.com/gilbarbara/helpers.git"
  9. },
  10. "bugs": {
  11. "url": "https://github.com/gilbarbara/helpers/issues"
  12. },
  13. "homepage": "https://github.com/gilbarbara/helpers#readme",
  14. "main": "dist/index.js",
  15. "module": "dist/index.mjs",
  16. "exports": {
  17. ".": {
  18. "import": "./dist/index.mjs",
  19. "require": "./dist/index.js"
  20. }
  21. },
  22. "files": [
  23. "dist",
  24. "src"
  25. ],
  26. "types": "dist/index.d.ts",
  27. "sideEffects": false,
  28. "license": "MIT",
  29. "keywords": [
  30. "helpers"
  31. ],
  32. "dependencies": {
  33. "@gilbarbara/types": "^0.2.2",
  34. "is-lite": "^1.2.0"
  35. },
  36. "devDependencies": {
  37. "@gilbarbara/eslint-config": "^0.7.2",
  38. "@gilbarbara/prettier-config": "^1.0.0",
  39. "@gilbarbara/tsconfig": "^0.2.3",
  40. "@size-limit/preset-small-lib": "^11.0.1",
  41. "@types/node": "^20.10.5",
  42. "@vitest/coverage-v8": "^1.1.0",
  43. "del-cli": "^5.1.0",
  44. "happy-dom": "^12.10.3",
  45. "husky": "^8.0.3",
  46. "is-ci-cli": "^2.2.0",
  47. "jest-extended": "^4.0.2",
  48. "repo-tools": "^0.3.1",
  49. "size-limit": "^11.0.1",
  50. "ts-node": "^10.9.2",
  51. "tsup": "^8.0.1",
  52. "typescript": "^5.3.3",
  53. "vitest": "^1.1.0",
  54. "vitest-fetch-mock": "^0.2.2"
  55. },
  56. "scripts": {
  57. "build": "npm run clean && tsup",
  58. "watch": "tsup --watch",
  59. "clean": "del dist/*",
  60. "lint": "eslint --fix src test",
  61. "test": "is-ci \"test:coverage\" \"test:watch\"",
  62. "test:coverage": "TZ=UTC vitest run --coverage",
  63. "test:watch": "TZ=UTC vitest watch",
  64. "typecheck": "tsc -p test/tsconfig.json",
  65. "format": "prettier \"**/*.{css,graphql,js,json,jsx,less,md,mdx,scss,ts,tsx,yaml,yml}\" --write",
  66. "size": "size-limit",
  67. "validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
  68. "prepare": "husky install",
  69. "prepublishOnly": "npm run validate"
  70. },
  71. "tsup": {
  72. "dts": true,
  73. "entry": [
  74. "src/index.ts"
  75. ],
  76. "format": [
  77. "cjs",
  78. "esm"
  79. ],
  80. "sourcemap": true,
  81. "splitting": false
  82. },
  83. "eslintConfig": {
  84. "extends": [
  85. "@gilbarbara/eslint-config/base",
  86. "@gilbarbara/eslint-config/vitest"
  87. ],
  88. "rules": {
  89. "@typescript-eslint/explicit-module-boundary-types": "off"
  90. },
  91. "overrides": [
  92. {
  93. "files": [
  94. "**/?(*.)+(spec|test).[jt]s?(x)"
  95. ],
  96. "rules": {
  97. "unicorn/consistent-function-scoping": "off",
  98. "no-console": "off"
  99. }
  100. }
  101. ]
  102. },
  103. "prettier": "@gilbarbara/prettier-config",
  104. "size-limit": [
  105. {
  106. "name": "commonjs",
  107. "path": "./dist/index.js",
  108. "limit": "10 kB"
  109. },
  110. {
  111. "name": "esm",
  112. "path": "./dist/index.mjs",
  113. "limit": "10 kB"
  114. }
  115. ]
  116. }