package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "name": "@sxzz/popperjs-es",
  3. "version": "2.11.8",
  4. "description": "Tooltip and Popover Positioning Engine",
  5. "main": "dist/index.js",
  6. "module": "dist/index.mjs",
  7. "unpkg": "dist/index.iife.js",
  8. "packageManager": "yarn@1.22.22",
  9. "type": "commonjs",
  10. "exports": {
  11. ".": {
  12. "types": "./index.d.ts",
  13. "require": "./dist/index.js",
  14. "import": "./dist/index.mjs"
  15. },
  16. "./*": "./*"
  17. },
  18. "types": "./index.d.ts",
  19. "author": "Federico Zivolo <federico.zivolo@gmail.com>",
  20. "license": "MIT",
  21. "repository": "github:popperjs/popper-core",
  22. "keywords": [
  23. "tooltip",
  24. "popover",
  25. "dropdown",
  26. "popup",
  27. "popper",
  28. "positioning engine"
  29. ],
  30. "funding": {
  31. "type": "opencollective",
  32. "url": "https://opencollective.com/popperjs"
  33. },
  34. "files": [
  35. "index.d.ts",
  36. "dist",
  37. "lib"
  38. ],
  39. "sideEffects": false,
  40. "publishConfig": {
  41. "access": "public"
  42. },
  43. "scripts": {
  44. "clean": "rimraf lib && rimraf dist && rimraf test/visual/dist",
  45. "test": "yarn test:unit && yarn test:functional",
  46. "test:unit": "jest --coverage src",
  47. "test:functional": "DEV_PORT=`get-port` jest tests/functional",
  48. "test:flow": "flow",
  49. "test:typescript": "tsc --project tests/typescript/tsconfig.json",
  50. "test:eslint": "eslint .",
  51. "dev": "NODE_ENV=dev concurrently 'yarn serve' 'yarn build:dev --watch'",
  52. "serve": "serve -l ${DEV_PORT:-5000} tests/visual",
  53. "build": "yarn clean && tsx build/build.mts && yarn run build:typescript",
  54. "build:typescript": "rimraf dist/typescript; flow-to-ts \"src/**/*.js\" --write --inline-utility-types; tsc-silent --project .config/tsconfig.json --createSourceFile .config/createSourceFile.js --suppress @; rimraf \"src/**/*.ts\"",
  55. "prepublishOnly": "yarn build && pinst --disable",
  56. "prepare": "husky install .config/husky",
  57. "postpublish": "pinst --enable"
  58. },
  59. "prettier": {
  60. "semi": true,
  61. "trailingComma": "es5",
  62. "singleQuote": true,
  63. "proseWrap": "always"
  64. },
  65. "babel": {
  66. "extends": "./.config/babel.config"
  67. },
  68. "jest": {
  69. "preset": "./.config/jest.config"
  70. },
  71. "eslintConfig": {
  72. "extends": "./.config/eslint.config"
  73. },
  74. "husky": {
  75. "hooks": {
  76. "pre-commit": "pretty-quick --staged"
  77. }
  78. },
  79. "devDependencies": {
  80. "@ampproject/rollup-plugin-closure-compiler": "^0.26.0",
  81. "@atomico/rollup-plugin-sizes": "^1.1.4",
  82. "@babel/cli": "^7.12.17",
  83. "@babel/core": "^7.12.17",
  84. "@babel/plugin-transform-flow-strip-types": "^7.12.13",
  85. "@babel/plugin-transform-runtime": "^7.12.17",
  86. "@babel/preset-env": "^7.12.17",
  87. "@fezvrasta/tsc-silent": "^1.3.0",
  88. "@khanacademy/flow-to-ts": "^0.3.0",
  89. "@rollup/plugin-babel": "^5.3.1",
  90. "@rollup/plugin-replace": "^2.3.4",
  91. "babel-eslint": "^10.0.3",
  92. "babel-jest": "^26.6.3",
  93. "babel-plugin-add-import-extension": "^1.4.4",
  94. "babel-plugin-annotate-pure-calls": "^0.4.0",
  95. "babel-plugin-dev-expression": "^0.2.2",
  96. "babel-plugin-inline-replace-variables": "^1.3.1",
  97. "babel-plugin-transform-inline-environment-variables": "^0.4.3",
  98. "concurrently": "^5.3.0",
  99. "dotenv": "^8.2.0",
  100. "esbuild": "^0.27.2",
  101. "esbuild-plugin-flow": "^0.3.2",
  102. "eslint": "^7.20.0",
  103. "eslint-plugin-flowtype": "^5.2.2",
  104. "eslint-plugin-import": "^2.22.1",
  105. "eslint-plugin-unused-imports": "^1.1.0",
  106. "flow-bin": "^0.139.0",
  107. "flow-copy-source": "^2.0.9",
  108. "get-port-cli": "^2.0.0",
  109. "husky": "^5.0.9",
  110. "jest": "^26.6.3",
  111. "jest-environment-jsdom-sixteen": "^1.0.3",
  112. "jest-environment-puppeteer": "^4.4.0",
  113. "jest-image-snapshot": "^4.3.0",
  114. "jest-puppeteer": "^4.4.0",
  115. "pinst": "^2.1.4",
  116. "poster": "^0.0.9",
  117. "prettier": "^2.2.1",
  118. "pretty-quick": "^3.1.0",
  119. "puppeteer": "^10.4.0",
  120. "replace-in-files-cli": "^1.0.0",
  121. "rollup": "^4.57.0",
  122. "rollup-plugin-esbuild": "^6.2.1",
  123. "rollup-plugin-flow-entry": "^0.3.3",
  124. "rollup-plugin-license": "^2.2.0",
  125. "rollup-plugin-terser": "^7.0.2",
  126. "rollup-plugin-visualizer": "^4.2.0",
  127. "serve": "^11.3.2",
  128. "tsx": "^4.21.0",
  129. "typescript": "^4.1.5"
  130. }
  131. }