{
  "name": "zustand",
  "private": true,
  "version": "4.5.1",
  "description": "🐻 Bear necessities for state management in React",
  "main": "./index.js",
  "types": "./index.d.ts",
  "typesVersions": {
    "<4.0": {
      "esm/*": [
        "ts3.4/*"
      ],
      "*": [
        "ts3.4/*"
      ]
    }
  },
  "files": [
    "**"
  ],
  "exports": {
    "./package.json": "./package.json",
    ".": {
      "import": {
        "types": "./esm/index.d.mts",
        "default": "./esm/index.mjs"
      },
      "module": {
        "types": "./esm/index.d.ts",
        "default": "./esm/index.js"
      },
      "default": {
        "types": "./index.d.ts",
        "default": "./index.js"
      }
    },
    "./vanilla": {
      "import": {
        "types": "./esm/vanilla.d.mts",
        "default": "./esm/vanilla.mjs"
      },
      "module": {
        "types": "./esm/vanilla.d.ts",
        "default": "./esm/vanilla.js"
      },
      "default": {
        "types": "./vanilla.d.ts",
        "default": "./vanilla.js"
      }
    },
    "./middleware": {
      "import": {
        "types": "./esm/middleware.d.mts",
        "default": "./esm/middleware.mjs"
      },
      "module": {
        "types": "./esm/middleware.d.ts",
        "default": "./esm/middleware.js"
      },
      "default": {
        "types": "./middleware.d.ts",
        "default": "./middleware.js"
      }
    },
    "./middleware/immer": {
      "import": {
        "types": "./esm/middleware/immer.d.mts",
        "default": "./esm/middleware/immer.mjs"
      },
      "module": {
        "types": "./esm/middleware/immer.d.ts",
        "default": "./esm/middleware/immer.js"
      },
      "default": {
        "types": "./middleware/immer.d.ts",
        "default": "./middleware/immer.js"
      }
    },
    "./shallow": {
      "import": {
        "types": "./esm/shallow.d.mts",
        "default": "./esm/shallow.mjs"
      },
      "module": {
        "types": "./esm/shallow.d.ts",
        "default": "./esm/shallow.js"
      },
      "default": {
        "types": "./shallow.d.ts",
        "default": "./shallow.js"
      }
    },
    "./vanilla/shallow": {
      "import": {
        "types": "./esm/vanilla/shallow.d.mts",
        "default": "./esm/vanilla/shallow.mjs"
      },
      "module": {
        "types": "./esm/vanilla/shallow.d.ts",
        "default": "./esm/vanilla/shallow.js"
      },
      "default": {
        "types": "./vanilla/shallow.d.ts",
        "default": "./vanilla/shallow.js"
      }
    },
    "./react/shallow": {
      "import": {
        "types": "./esm/react/shallow.d.mts",
        "default": "./esm/react/shallow.mjs"
      },
      "module": {
        "types": "./esm/react/shallow.d.ts",
        "default": "./esm/react/shallow.js"
      },
      "default": {
        "types": "./react/shallow.d.ts",
        "default": "./react/shallow.js"
      }
    },
    "./traditional": {
      "import": {
        "types": "./esm/traditional.d.mts",
        "default": "./esm/traditional.mjs"
      },
      "module": {
        "types": "./esm/traditional.d.ts",
        "default": "./esm/traditional.js"
      },
      "default": {
        "types": "./traditional.d.ts",
        "default": "./traditional.js"
      }
    },
    "./context": {
      "import": {
        "types": "./esm/context.d.mts",
        "default": "./esm/context.mjs"
      },
      "module": {
        "types": "./esm/context.d.ts",
        "default": "./esm/context.js"
      },
      "default": {
        "types": "./context.d.ts",
        "default": "./context.js"
      }
    }
  },
  "sideEffects": false,
  "scripts": {
    "prebuild": "shx rm -rf dist",
    "build": "concurrently -m 8 'yarn:build:*'",
    "build:base": "rollup -c",
    "build:vanilla": "rollup -c --config-vanilla",
    "build:middleware": "rollup -c --config-middleware",
    "build:middleware:immer": "rollup -c --config-middleware_immer",
    "build:shallow": "rollup -c --config-shallow",
    "build:vanilla:shallow": "rollup -c --config-vanilla_shallow",
    "build:react:shallow": "rollup -c --config-react_shallow",
    "build:traditional": "rollup -c --config-traditional",
    "build:context": "rollup -c --config-context",
    "postbuild": "yarn patch-d-ts && yarn copy && yarn patch-esm-ts",
    "prettier": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write",
    "prettier:ci": "prettier '*.{js,json,md}' '{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}' --list-different",
    "eslint": "eslint --no-eslintrc --c .eslintrc.json --fix '*.{js,json,ts}' '{src,tests}/**/*.{ts,tsx}'",
    "eslint:ci": "eslint  --no-eslintrc --c .eslintrc.json '*.{js,json,ts}' '{src,tests}/**/*.{ts,tsx}'",
    "pretest": "tsc",
    "test": "vitest --ui --coverage",
    "test:ci": "vitest",
    "patch-d-ts": "node -e \"var {entries}=require('./rollup.config.js');require('shelljs').find('dist/**/*.d.ts').forEach(f=>{entries.forEach(({find,replacement})=>require('shelljs').sed('-i',new RegExp(' from \\''+find.source.slice(0,-1)+'\\';$'),' from \\''+replacement+'\\';',f));require('shelljs').sed('-i',/ from '(\\.[^']+)\\.ts';$/,' from \\'\\$1\\';',f)})\"",
    "copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined;\"",
    "patch-esm-ts": "node -e \"require('shelljs').find('dist/esm/**/*.d.ts').forEach(f=>{var f2=f.replace(/\\.ts$/,'.mts');require('fs').copyFileSync(f,f2);require('shelljs').sed('-i',/ from '(\\.[^']+)';$/,' from \\'\\$1.mjs\\';',f2);require('shelljs').sed('-i',/^declare module '(\\.[^']+)'/,'declare module \\'\\$1.mjs\\'',f2)})\""
  },
  "engines": {
    "node": ">=12.7.0"
  },
  "prettier": {
    "semi": false,
    "singleQuote": true
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/pmndrs/zustand.git"
  },
  "keywords": [
    "react",
    "state",
    "manager",
    "management",
    "redux",
    "store"
  ],
  "author": "Paul Henschel",
  "contributors": [
    "Jeremy Holcomb (https://github.com/JeremyRH)",
    "Daishi Kato (https://github.com/dai-shi)"
  ],
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/pmndrs/zustand/issues"
  },
  "homepage": "https://github.com/pmndrs/zustand",
  "dependencies": {
    "use-sync-external-store": "1.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.23.9",
    "@babel/plugin-external-helpers": "^7.23.3",
    "@babel/plugin-transform-react-jsx": "^7.23.4",
    "@babel/plugin-transform-runtime": "^7.23.9",
    "@babel/plugin-transform-typescript": "^7.23.6",
    "@babel/preset-env": "^7.23.9",
    "@redux-devtools/extension": "^3.3.0",
    "@rollup/plugin-alias": "^5.1.0",
    "@rollup/plugin-babel": "^6.0.4",
    "@rollup/plugin-node-resolve": "^15.2.3",
    "@rollup/plugin-replace": "^5.0.5",
    "@rollup/plugin-terser": "^0.4.4",
    "@rollup/plugin-typescript": "^11.1.6",
    "@testing-library/react": "^14.2.1",
    "@types/node": "^20.11.19",
    "@types/react": "^18.2.55",
    "@types/react-dom": "^18.2.19",
    "@types/use-sync-external-store": "^0.0.6",
    "@typescript-eslint/eslint-plugin": "^7.0.1",
    "@typescript-eslint/parser": "^7.0.1",
    "@vitest/coverage-v8": "0.33.0",
    "@vitest/ui": "0.33.0",
    "concurrently": "^8.2.2",
    "downlevel-dts": "^0.11.0",
    "esbuild": "^0.20.0",
    "eslint": "^8.56.0",
    "eslint-config-prettier": "^9.1.0",
    "eslint-import-resolver-alias": "^1.1.2",
    "eslint-plugin-import": "^2.29.1",
    "eslint-plugin-prettier": "^5.1.3",
    "eslint-plugin-react": "^7.33.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "eslint-plugin-vitest": "^0.3.22",
    "immer": "^10.0.3",
    "jsdom": "^24.0.0",
    "json": "^11.0.0",
    "prettier": "^3.2.5",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "redux": "^5.0.1",
    "rollup": "^4.12.0",
    "rollup-plugin-esbuild": "^6.1.1",
    "shx": "^0.3.4",
    "typescript": "^5.3.3",
    "vitest": "0.33.0"
  },
  "peerDependencies": {
    "@types/react": ">=16.8",
    "immer": ">=9.0.6",
    "react": ">=16.8"
  },
  "peerDependenciesMeta": {
    "@types/react": {
      "optional": true
    },
    "immer": {
      "optional": true
    },
    "react": {
      "optional": true
    }
  },
  "packageManager": "yarn@1.22.21+sha256.dbed5b7e10c552ba0e1a545c948d5473bc6c5a28ce22a8fd27e493e3e5eb6370"
}
