package.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. "name": "use-sidecar",
  3. "version": "1.1.2",
  4. "description": "Sidecar code splitting utils",
  5. "module:es2019": "dist/es2019/index.js",
  6. "main": "dist/es5/index.js",
  7. "module": "dist/es2015/index.js",
  8. "types": "dist/es5/index.d.ts",
  9. "devDependencies": {
  10. "@size-limit/preset-small-lib": "^2.1.6",
  11. "@theuiteam/lib-builder": "^0.1.4",
  12. "@types/enzyme-adapter-react-16": "^1.0.6",
  13. "enzyme-adapter-react-16": "^1.15.6",
  14. "react": "^16.8.6",
  15. "react-dom": "^16.8.6"
  16. },
  17. "engines": {
  18. "node": ">=10"
  19. },
  20. "scripts": {
  21. "dev": "lib-builder dev",
  22. "test": "jest",
  23. "test:ci": "jest --runInBand --coverage",
  24. "build": "lib-builder build && yarn size:report",
  25. "release": "yarn build && yarn test",
  26. "size": "npx size-limit",
  27. "size:report": "npx size-limit --json > .size.json",
  28. "lint": "lib-builder lint",
  29. "format": "lib-builder format",
  30. "update": "lib-builder update",
  31. "prepublish": "yarn build && yarn changelog",
  32. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  33. "changelog:rewrite": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
  34. },
  35. "peerDependencies": {
  36. "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0",
  37. "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
  38. },
  39. "sideEffects": [
  40. "**/medium.js"
  41. ],
  42. "files": [
  43. "dist"
  44. ],
  45. "keywords": [
  46. "code spliting",
  47. "react",
  48. "sidecar"
  49. ],
  50. "homepage": "https://github.com/theKashey/use-sidecar",
  51. "author": "theKashey <thekashey@gmail.com>",
  52. "license": "MIT",
  53. "dependencies": {
  54. "detect-node-es": "^1.1.0",
  55. "tslib": "^2.0.0"
  56. },
  57. "peerDependenciesMeta": {
  58. "@types/react": {
  59. "optional": true
  60. }
  61. },
  62. "repository": {
  63. "type": "git",
  64. "url": "https://github.com/theKashey/use-sidecar"
  65. },
  66. "husky": {
  67. "hooks": {
  68. "pre-commit": "lint-staged"
  69. }
  70. },
  71. "lint-staged": {
  72. "*.{ts,tsx}": [
  73. "prettier --write",
  74. "eslint --fix",
  75. "git add"
  76. ],
  77. "*.{js,css,json,md}": [
  78. "prettier --write",
  79. "git add"
  80. ]
  81. },
  82. "prettier": {
  83. "printWidth": 120,
  84. "trailingComma": "es5",
  85. "tabWidth": 2,
  86. "semi": true,
  87. "singleQuote": true
  88. }
  89. }