gilbarbara/react-dropdown

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@gilbarbara/react-dropdown",
  "version": "0.2.0",
  "description": "Customizable dropdown for React",
  "author": "Gil Barbara <gilbarbara@gmail.com>",
  "repository": {
    "type": "git",
    "url": "https://github.com/gilbarbara/react-dropdown"
  },
  "bugs": {
    "url": "https://github.com/gilbarbara/react-dropdown/issues"
  },
  "homepage": "https://github.com/gilbarbara/react-dropdown#readme",
  "main": "dist/index.js",
  "module": "dist/index.mjs",
  "exports": {
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.js"
    }
  },
  "files": [
    "dist",
    "src"
  ],
  "types": "dist/index.d.ts",
  "sideEffects": false,
  "license": "MIT",
  "keywords": [
    "react",
    "react component",
    "select",
    "dropdown"
  ],
  "peerDependencies": {
    "react": "17 - 18",
    "react-dom": "17 - 18"
  },
  "dependencies": {
    "@emotion/is-prop-valid": "^1.2.1",
    "@emotion/react": "^11.11.3",
    "@emotion/styled": "^11.11.0",
    "@gilbarbara/deep-equal": "^0.3.1",
    "react-innertext": "^1.1.5"
  },
  "devDependencies": {
    "@gilbarbara/eslint-config": "^0.7.3",
    "@gilbarbara/node-helpers": "^0.1.0",
    "@gilbarbara/prettier-config": "^1.0.0",
    "@gilbarbara/tsconfig": "^0.2.3",
    "@size-limit/preset-small-lib": "^11.0.2",
    "@testing-library/jest-dom": "^6.2.1",
    "@testing-library/react": "^14.1.2",
    "@testing-library/user-event": "^14.5.2",
    "@types/exenv": "^1.2.2",
    "@types/node": "^20.11.5",
    "@types/react": "^18.2.48",
    "@types/react-dom": "^18.2.18",
    "@vitejs/plugin-react-swc": "^3.5.0",
    "@vitest/coverage-v8": "^1.2.1",
    "del-cli": "^5.1.0",
    "husky": "^8.0.3",
    "is-ci-cli": "^2.2.0",
    "jest-extended": "^4.0.2",
    "jsdom": "^24.0.0",
    "prettier": "^3.2.4",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "replace": "^1.2.2",
    "repo-tools": "^0.3.1",
    "size-limit": "^11.0.2",
    "ts-node": "^10.9.2",
    "tsconfig-replace-paths": "^0.0.14",
    "tsup": "^8.0.1",
    "type-fest": "^4.10.0",
    "typescript": "^5.3.3",
    "vite-tsconfig-paths": "^4.3.1",
    "vitest": "^1.2.1"
  },
  "scripts": {
    "build": "npm run clean && tsup && ts-node scripts/fix-cjs.ts",
    "clean": "del dist/*",
    "lint": "eslint --fix src test",
    "test": "is-ci \"test:coverage\" \"test:watch\"",
    "test:coverage": "vitest run --coverage",
    "test:watch": "vitest watch",
    "typecheck": "tsc --noEmit",
    "format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
    "validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
    "size": "size-limit",
    "prepublishOnly": "npm run validate",
    "prepare": "husky install"
  },
  "tsup": {
    "banner": {
      "js": "\"use client\";"
    },
    "dts": true,
    "entry": [
      "src/index.tsx"
    ],
    "format": [
      "cjs",
      "esm"
    ],
    "sourcemap": true,
    "splitting": false
  },
  "eslintConfig": {
    "extends": [
      "@gilbarbara/eslint-config",
      "@gilbarbara/eslint-config/vitest",
      "@gilbarbara/eslint-config/testing-library"
    ],
    "overrides": [
      {
        "files": [
          "test/**/*.ts?(x)"
        ],
        "rules": {
          "no-console": "off"
        }
      }
    ]
  },
  "eslintIgnore": [
    "demo"
  ],
  "prettier": "@gilbarbara/prettier-config",
  "size-limit": [
    {
      "name": "commonjs",
      "path": "./dist/index.js",
      "limit": "22 KB"
    },
    {
      "name": "esm",
      "path": "./dist/index.mjs",
      "limit": "22 KB"
    }
  ]
}