package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. {
  2. "name": "react-joyride",
  3. "version": "2.7.2",
  4. "description": "Create guided tours for your apps",
  5. "author": "Gil Barbara <gilbarbara@gmail.com>",
  6. "repository": {
  7. "type": "git",
  8. "url": "git+https://github.com/gilbarbara/react-joyride.git"
  9. },
  10. "bugs": {
  11. "url": "https://github.com/gilbarbara/react-joyride/issues"
  12. },
  13. "homepage": "https://react-joyride.com/",
  14. "keywords": [
  15. "react",
  16. "react-component",
  17. "tooltips",
  18. "joyride",
  19. "walkthroughs",
  20. "tour"
  21. ],
  22. "main": "./dist/index.js",
  23. "module": "./dist/index.mjs",
  24. "exports": {
  25. "import": "./dist/index.mjs",
  26. "require": "./dist/index.js"
  27. },
  28. "files": [
  29. "dist",
  30. "src"
  31. ],
  32. "types": "dist/index.d.ts",
  33. "sideEffects": false,
  34. "license": "MIT",
  35. "peerDependencies": {
  36. "react": "15 - 18",
  37. "react-dom": "15 - 18"
  38. },
  39. "dependencies": {
  40. "@gilbarbara/deep-equal": "^0.3.1",
  41. "@gilbarbara/helpers": "^0.9.0",
  42. "deep-diff": "^1.0.2",
  43. "deepmerge": "^4.3.1",
  44. "is-lite": "^1.2.0",
  45. "react-floater": "^0.7.9",
  46. "react-innertext": "^1.1.5",
  47. "react-is": "^16.13.1",
  48. "scroll": "^3.0.1",
  49. "scrollparent": "^2.1.0",
  50. "tree-changes": "^0.11.2",
  51. "type-fest": "^4.8.3"
  52. },
  53. "devDependencies": {
  54. "@arethetypeswrong/cli": "^0.13.5",
  55. "@gilbarbara/eslint-config": "^0.7.2",
  56. "@gilbarbara/node-helpers": "^0.1.0",
  57. "@gilbarbara/prettier-config": "^1.0.0",
  58. "@gilbarbara/tsconfig": "^0.2.3",
  59. "@playwright/experimental-ct-react": "^1.40.1",
  60. "@size-limit/preset-big-lib": "^11.0.1",
  61. "@swc/core": "^1.3.100",
  62. "@swc/jest": "^0.2.29",
  63. "@testing-library/dom": "^9.3.3",
  64. "@testing-library/jest-dom": "^6.1.5",
  65. "@testing-library/react": "^14.1.2",
  66. "@total-typescript/shoehorn": "^0.1.1",
  67. "@types/exenv": "^1.2.2",
  68. "@types/jest": "^29.5.11",
  69. "@types/node": "^20.10.4",
  70. "@types/react": "^18.2.45",
  71. "@types/react-dom": "^18.2.17",
  72. "@types/scroll": "^3.0.3",
  73. "@types/scrollparent": "^2.0.3",
  74. "caniuse-lite": "^1.0.30001570",
  75. "cross-env": "^7.0.3",
  76. "csstype": "^3.1.3",
  77. "del-cli": "^5.1.0",
  78. "husky": "^8.0.3",
  79. "is-ci-cli": "^2.2.0",
  80. "jest": "^29.7.0",
  81. "jest-environment-jsdom": "^29.7.0",
  82. "jest-extended": "^4.0.2",
  83. "jest-watch-typeahead": "^2.2.2",
  84. "lint-staged": "^15.2.0",
  85. "react": "^18.2.0",
  86. "react-dom": "^18.2.0",
  87. "repo-tools": "^0.3.1",
  88. "size-limit": "^11.0.1",
  89. "ts-jest": "^29.1.1",
  90. "ts-node": "^10.9.2",
  91. "tsup": "^8.0.1",
  92. "typescript": "^5.3.3"
  93. },
  94. "scripts": {
  95. "build": " npm run clean && tsup && ts-node scripts/fix-cjs.ts",
  96. "watch": "tsup --watch",
  97. "clean": "del dist/*",
  98. "lint": "eslint --fix src test",
  99. "typecheck": "tsc --noEmit",
  100. "typevalidation": "attw -P",
  101. "test": "is-ci \"test:coverage\" \"test:watch\"",
  102. "test:coverage": "jest --bail --coverage",
  103. "test:watch": "jest --watchAll --verbose",
  104. "e2e": "playwright test -c playwright-ct.config.ts",
  105. "e2e:debug": "npm run e2e -- --project=chromium --debug",
  106. "e2e:ui": "npm run e2e -- --ui",
  107. "format": "prettier \"**/*.{js,jsx,ts,tsx}\" --write",
  108. "validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run e2e && npm run build && npm run size && npm run typevalidation",
  109. "size": "size-limit",
  110. "prepublishOnly": "npm run validate"
  111. },
  112. "tsup": {
  113. "dts": true,
  114. "entry": [
  115. "src/index.tsx"
  116. ],
  117. "format": [
  118. "cjs",
  119. "esm"
  120. ],
  121. "target": "es2018",
  122. "sourcemap": true,
  123. "splitting": false
  124. },
  125. "eslintConfig": {
  126. "extends": [
  127. "@gilbarbara/eslint-config",
  128. "@gilbarbara/eslint-config/jest",
  129. "@gilbarbara/eslint-config/testing-library"
  130. ],
  131. "overrides": [
  132. {
  133. "files": [
  134. "test/**/*.ts?(x)"
  135. ],
  136. "rules": {
  137. "no-console": "off",
  138. "no-constructor-return": "off",
  139. "prefer-destructuring": "off",
  140. "jsx-a11y/anchor-has-content": "off",
  141. "jsx-a11y/anchor-is-valid": "off",
  142. "react/destructuring-assignment": "off",
  143. "react/jsx-filename-extension": "off",
  144. "react/prop-types": "off"
  145. }
  146. }
  147. ]
  148. },
  149. "prettier": "@gilbarbara/prettier-config",
  150. "lint-staged": {
  151. "*.(ts|tsx)": [
  152. "eslint --fix",
  153. "jest --findRelatedTests --passWithNoTests"
  154. ],
  155. "*.(css|graphql|js|json|jsx|less|md|mdx|scss|ts|tsx|yaml|yml)": [
  156. "prettier --write"
  157. ]
  158. },
  159. "size-limit": [
  160. {
  161. "name": "commonjs",
  162. "path": "./dist/index.js",
  163. "limit": "45 kB"
  164. },
  165. {
  166. "name": "esm",
  167. "path": "./dist/index.mjs",
  168. "limit": "35 kB"
  169. }
  170. ]
  171. }