gilbarbara/react-range-slider

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@gilbarbara/react-range-slider",
  "version": "0.7.0",
  "description": "A range slider component for React",
  "author": "Gil Barbara <gilbarbara@gmail.com>",
  "repository": {
    "type": "git",
    "url": "https://github.com/gilbarbara/react-range-slider.git"
  },
  "bugs": {
    "url": "https://github.com/gilbarbara/react-range-slider/issues"
  },
  "homepage": "https://github.com/gilbarbara/react-range-slider",
  "keywords": [
    "react",
    "react-component",
    "range",
    "slider"
  ],
  "license": "MIT",
  "main": "lib/index.js",
  "module": "esm/index.js",
  "files": [
    "esm",
    "lib",
    "src"
  ],
  "types": "esm",
  "sideEffects": false,
  "peerDependencies": {
    "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
  },
  "dependencies": {
    "deepmerge-ts": "^4.0.3"
  },
  "devDependencies": {
    "@gilbarbara/eslint-config": "^0.2.1",
    "@gilbarbara/prettier-config": "^0.1.0",
    "@gilbarbara/tsconfig": "^0.1.0",
    "@size-limit/preset-small-lib": "^7.0.8",
    "@testing-library/jest-dom": "^5.16.4",
    "@testing-library/react": "^13.1.1",
    "@types/jest": "^27.4.1",
    "@types/node": "^17.0.24",
    "@types/once": "^1.4.0",
    "@types/react": "^18.0.5",
    "@types/react-dom": "^18.0.1",
    "cross-env": "^7.0.3",
    "del-cli": "^3.0.1",
    "husky": "^7.0.4",
    "is-ci-cli": "^2.2.0",
    "jest": "^27.5.1",
    "jest-extended": "^2.0.0",
    "jest-serializer-html": "^7.1.0",
    "jest-watch-typeahead": "^1.0.0",
    "react": "^18.0.0",
    "react-dom": "^18.0.0",
    "repo-tools": "^0.2.2",
    "size-limit": "^7.0.8",
    "ts-jest": "^27.1.4",
    "ts-node": "^10.7.0",
    "typescript": "^4.6.3"
  },
  "scripts": {
    "build": "npm run clean && npm run build:cjs && npm run build:esm",
    "build:cjs": "tsc",
    "build:esm": "tsc -m es6 --outDir esm",
    "clean": "del lib/* && del esm/*",
    "watch:cjs": "npm run build:cjs -- -w",
    "watch:esm": "npm run build:esm -- -w",
    "test": "is-ci \"test:coverage\" \"test:watch\"",
    "test:coverage": "jest --bail --coverage",
    "test:watch": "jest --watchAll --verbose",
    "lint": "eslint --ext .ts,.tsx src test",
    "format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
    "validate": "npm run lint && npm run test:coverage && npm run build && npm run size",
    "size": "size-limit",
    "prepublishOnly": "npm run validate",
    "prepare": "husky install"
  },
  "eslintConfig": {
    "extends": [
      "@gilbarbara/eslint-config"
    ],
    "overrides": [
      {
        "files": [
          "test/**/*.ts?(x)"
        ],
        "rules": {
          "@typescript-eslint/ban-ts-comment": "off",
          "no-console": "off",
          "testing-library/no-container": "off",
          "testing-library/no-node-access": "off"
        }
      }
    ]
  },
  "prettier": "@gilbarbara/prettier-config",
  "size-limit": [
    {
      "name": "esm",
      "path": "./esm/index.js",
      "limit": "5 kB"
    },
    {
      "name": "lib",
      "path": "./lib/index.js",
      "limit": "6 kB"
    }
  ]
}