nerdyman/react-image-turntable

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "react-image-turntable",
  "description": "Display a set of images as a draggable 360 degree turntable.",
  "keywords": [
    "react",
    "image",
    "360",
    "turntable",
    "rotator",
    "slider"
  ],
  "version": "3.1.2",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/nerdyman/react-image-turntable.git"
  },
  "author": "nerdyman",
  "license": "MIT",
  "sideEffects": false,
  "packageManager": "pnpm@8.10.5",
  "engines": {
    "node": ">=16.9.0"
  },
  "module": "dist/index.mjs",
  "typings": "dist/index.d.mts",
  "files": [
    "dist",
    "src"
  ],
  "scripts": {
    "bootstrap": "npm run bootstrap:project && npm run bootstrap:playwright",
    "bootstrap:project": "corepack enable && pnpm i --frozen-lockfile",
    "bootstrap:playwright": "pnpm exec playwright install chromium",
    "build": "tsup",
    "dev": "pnpm -r --stream run start",
    "dx": "npm run bootstrap && pnpm exec husky install && pnpm run prepare",
    "clean": "rm -rf ./node_modules ./coverage ./dist ./.nyc_output ./.*.log ./example/node_modules",
    "lint": "eslint . && prettier --check .",
    "prepare": "husky install",
    "release": "pnpm run release:preflight && pnpm run release:publish",
    "release:preflight": "pnpm run lint && pnpm run test && pnpm run build",
    "release:publish": "release-it",
    "size": "size-limit",
    "start": "tsup --watch",
    "test": "rm -rf {.nyc_output,coverage} && playwright test && pnpm nyc report --reporter=lcov",
    "test:no-coverage": "playwright test",
    "test:debug": "env PWDEBUG=1 NODE_ENV=test playwright test && pnpm nyc report --reporter=lcov"
  },
  "lint-staged": {
    "**/*.{js,jsx,ts,tsx}": [
      "prettier --write",
      "eslint --fix"
    ]
  },
  "np": {
    "pnpm": true
  },
  "prettier": {
    "printWidth": 100,
    "semi": true,
    "singleQuote": true,
    "trailingComma": "all"
  },
  "size-limit": [
    {
      "path": "dist/index.mjs",
      "limit": "1.2 KB"
    }
  ],
  "peerDependencies": {
    "react": ">=16.8"
  },
  "devDependencies": {
    "@babel/preset-react": "^7.23.3",
    "@babel/preset-typescript": "^7.23.3",
    "@playwright/test": "^1.39.0",
    "@size-limit/preset-small-lib": "^11.0.0",
    "@types/jest-axe": "^3.5.8",
    "@types/node": "^20.9.0",
    "@types/react": "^18.2.37",
    "@types/react-dom": "^18.2.15",
    "@typescript-eslint/eslint-plugin": "^6.11.0",
    "@typescript-eslint/parser": "^6.11.0",
    "axe-core": "^4.8.2",
    "axe-playwright": "^1.2.3",
    "babel-plugin-istanbul": "^6.1.1",
    "esbuild-plugin-babel": "^0.2.3",
    "eslint": "^8.53.0",
    "eslint-plugin-react": "^7.33.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "husky": "^8.0.3",
    "lint-staged": "^15.1.0",
    "nyc": "^15.1.0",
    "playwright-core": "^1.39.0",
    "prettier": "^3.1.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "release-it": "^17.0.1",
    "size-limit": "^11.0.0",
    "tslib": "^2.6.2",
    "tsup": "^7.2.0",
    "typescript": "^5.2.2"
  }
}