package.json
This file
Path
package.json
180 lines · 5.9 KiB · JSON
Last changed by
v5.0.15daishibefore adoption2115efb
History of this fileTake it
The walk stopped after 200 commits: lines older than f85898f point at it.
chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 1–5why, one step back1{2 "name": "zustand",3 "description": "🐻 Bear necessities for state management in React",4 "private": true,5 "type": "commonjs",v5.0.15daishibefore adoption2115efb
line 6why, one step back6 "version": "5.0.15",chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 7–29why, one step back7 "main": "./index.js",8 "types": "./index.d.ts",9 "typesVersions": {10 ">=4.5": {11 "esm/*": [12 "esm/*"13 ],14 "*": [15 "*"16 ]17 },18 "*": {19 "esm/*": [20 "ts_version_4.5_and_above_is_required.d.ts"21 ],22 "*": [23 "ts_version_4.5_and_above_is_required.d.ts"24 ]25 }26 },27 "exports": {28 "./package.json": "./package.json",29 ".": {react-native condition for CJS (#3087)Daishi Katobefore adoption850777b
lines 30–33why, one step back30 "react-native": {31 "types": "./index.d.ts",32 "default": "./index.js"33 },chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 34–43why, one step back34 "import": {35 "types": "./esm/index.d.mts",36 "default": "./esm/index.mjs"37 },38 "default": {39 "types": "./index.d.ts",40 "default": "./index.js"41 }42 },43 "./*": {react-native condition for CJS (#3087)Daishi Katobefore adoption850777b
lines 44–47why, one step back44 "react-native": {45 "types": "./*.d.ts",46 "default": "./*.js"47 },chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 48–64why, one step back48 "import": {49 "types": "./esm/*.d.mts",50 "default": "./esm/*.mjs"51 },52 "default": {53 "types": "./*.d.ts",54 "default": "./*.js"55 }56 }57 },58 "files": [59 "**"60 ],61 "sideEffects": false,62 "scripts": {63 "prebuild": "shx rm -rf dist",64 "build": "pnpm run prebuild && pnpm run \"/^build:.*/\" && pnpm run postbuild",chore(package.json): add 'build-watch' script for watch mode builds (#3357)Wonsuk Choibefore adoptionb0ea6ea
line 65why, one step back65 "build-watch": "pnpm run \"/^build:.*/\" --watch",chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 66–118why, one step back66 "build:base": "rollup -c",67 "build:vanilla": "rollup -c --config-vanilla",68 "build:react": "rollup -c --config-react",69 "build:middleware": "rollup -c --config-middleware",70 "build:middleware:immer": "rollup -c --config-middleware_immer",71 "build:shallow": "rollup -c --config-shallow",72 "build:vanilla:shallow": "rollup -c --config-vanilla_shallow",73 "build:react:shallow": "rollup -c --config-react_shallow",74 "build:traditional": "rollup -c --config-traditional",75 "postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts",76 "fix": "pnpm run fix:lint && pnpm run fix:format",77 "fix:format": "prettier . --write",78 "fix:lint": "eslint . --fix",79 "test": "pnpm run \"/^test:.*/\"",80 "test:format": "prettier . --list-different",81 "test:types": "tsc --noEmit",82 "test:lint": "eslint .",83 "test:spec": "vitest run",84 "patch-d-ts": "node --input-type=module -e \"import { entries } from './rollup.config.mjs'; import shelljs from 'shelljs'; const { find, sed } = shelljs; find('dist/**/*.d.ts').forEach(f => { entries.forEach(({ find, replacement }) => { sed('-i', new RegExp(' from \\'' + find.source.slice(0, -1) + '\\';$'), ' from \\'' + replacement + '\\';', f); }); sed('-i', / from '(\\.[^']+)\\.ts';$/, ' from \\'\\$1\\';', f); });\"",85 "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} && 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;\"",86 "patch-old-ts": "shx touch dist/ts_version_4.5_and_above_is_required.d.ts",87 "patch-esm-ts": "node -e \"require('shelljs').find('dist/esm/**/*.d.ts').forEach(f=>{var f2=f.replace(/\\.ts$/,'.mts');require('fs').renameSync(f,f2);require('shelljs').sed('-i',/ from '(\\.[^']+)';$/,' from \\'\\$1.mjs\\';',f2);require('shelljs').sed('-i',/^declare module '(\\.[^']+)'/,'declare module \\'\\$1.mjs\\'',f2)})\""88 },89 "engines": {90 "node": ">=12.20.0"91 },92 "prettier": {93 "semi": false,94 "singleQuote": true95 },96 "repository": {97 "type": "git",98 "url": "git+https://github.com/pmndrs/zustand.git"99 },100 "keywords": [101 "react",102 "state",103 "manager",104 "management",105 "redux",106 "store"107 ],108 "author": "Paul Henschel",109 "contributors": [110 "Jeremy Holcomb (https://github.com/JeremyRH)",111 "Daishi Kato (https://github.com/dai-shi)"112 ],113 "license": "MIT",114 "bugs": {115 "url": "https://github.com/pmndrs/zustand/issues"116 },117 "homepage": "https://github.com/pmndrs/zustand",118 "devDependencies": {chore(deps): update dev dependencies (#3486)Daishi Katobefore adoption8ec2169
line 119why, one step back119 "@eslint/js": "9.39.4",chore(deps): update dev dependencies (#3427)Daishi Katobefore adoptiond714065
line 120why, one step back120 "@redux-devtools/extension": "^4.0.0",chore: update dev dependencies (#3279)Daishi Katobefore adoption18ab9e2
lines 121–123why, one step back121 "@rollup/plugin-alias": "^6.0.0",122 "@rollup/plugin-node-resolve": "^16.0.3",123 "@rollup/plugin-replace": "^6.0.3",chore(deps): update dev dependencies (#3375)Daishi Katobefore adoptionc81b4eb
line 124why, one step back124 "@rollup/plugin-typescript": "^12.3.0",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
line 125why, one step back125 "@testing-library/jest-dom": "^7.0.1",chore(deps): update dev dependencies (#3375)Daishi Katobefore adoptionc81b4eb
line 126why, one step back126 "@testing-library/react": "^16.3.2",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
lines 127–129why, one step back127 "@types/node": "^25.9.5",128 "@types/react": "^19.2.18",129 "@types/react-dom": "^19.2.4",chore(deps): update dev dependencies (#3104)Daishi Katobefore adoption2a53f2e
line 130why, one step back130 "@types/use-sync-external-store": "^1.5.0",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
lines 131–134why, one step back131 "@vitest/coverage-v8": "^4.1.10",132 "@vitest/eslint-plugin": "^1.6.27",133 "@vitest/ui": "^4.1.10",134 "esbuild": "^0.28.2",chore(deps): update dev dependencies (#3486)Daishi Katobefore adoption8ec2169
line 135why, one step back135 "eslint": "9.39.4",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
line 136why, one step back136 "eslint-import-resolver-typescript": "^4.4.5",chore: update dev dependencies (#3159)Daishi Katobefore adoption4a5e814
line 137why, one step back137 "eslint-plugin-import": "^2.32.0",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
line 138why, one step back138 "eslint-plugin-jest-dom": "^5.10.1",chore(deps): update dev dependencies (#3104)Daishi Katobefore adoption2a53f2e
line 139why, one step back139 "eslint-plugin-react": "^7.37.5",chore(deps): update dev dependencies (#3486)Daishi Katobefore adoption8ec2169
lines 140–141why, one step back140 "eslint-plugin-react-hooks": "^7.1.1",141 "eslint-plugin-testing-library": "^7.16.2",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
lines 142–143why, one step back142 "immer": "^11.1.16",143 "jsdom": "^30.0.1",chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
line 144why, one step back144 "json": "^11.0.0",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
lines 145–147why, one step back145 "prettier": "^3.9.6",146 "react": "^19.2.8",147 "react-dom": "^19.2.8",chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
line 148why, one step back148 "redux": "^5.0.1",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
line 149why, one step back149 "rollup": "^4.62.4",chore(deps): update dev dependencies (#3104)Daishi Katobefore adoption2a53f2e
line 150why, one step back150 "rollup-plugin-esbuild": "^6.2.1",chore: update dev dependencies (#3128)Daishi Katobefore adoptionceb9744
line 151why, one step back151 "shelljs": "^0.10.0",chore(deps): update dev dependencies (#3104)Daishi Katobefore adoption2a53f2e
line 152why, one step back152 "shx": "^0.4.0",chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
line 153why, one step back153 "tslib": "^2.8.1",chore(deps): update dev dependencies (#3486)Daishi Katobefore adoption8ec2169
line 154why, one step back154 "typescript": "^6.0.3",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
line 155why, one step back155 "typescript-eslint": "^8.67.0",chore: update dev dependencies (#3279)Daishi Katobefore adoption18ab9e2
line 156why, one step back156 "use-sync-external-store": "^1.6.0",chore(deps): update dev dependencies (#3560)Daishi Katobefore adoption1f531ba
line 157why, one step back157 "vitest": "^4.1.10"chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
lines 158–177why, one step back158 },159 "peerDependencies": {160 "@types/react": ">=18.0.0",161 "immer": ">=9.0.6",162 "react": ">=18.0.0",163 "use-sync-external-store": ">=1.2.0"164 },165 "peerDependenciesMeta": {166 "@types/react": {167 "optional": true168 },169 "immer": {170 "optional": true171 },172 "react": {173 "optional": true174 },175 "use-sync-external-store": {176 "optional": true177 }update pnpm etc (#3512)Daishi Katobefore adoption8476d2c
lines 178–179why, one step back178 },179 "packageManager": "pnpm@11.3.0+sha512.2c403d6594527287672b1f7056343a1f7c3634036a67ffabfcc2b3d7595d843768f8787148d1b57cf7956c90606bbd192857c363af19e96d2d0ec9ec5741d215"chore(eslint.config.mjs): update 'eslint-plugin-react-hooks', 'eslint-plugin-react-compiler' config (#3043)Wonsuk Choibefore adoptionf85898f
line 180why, one step back180}