x/jotai/package.json

👻 Primitive and flexible state management for React
Go to Latest
File
{ "name": "jotai", "private": true, "version": "1.7.8", "description": "👻 Next gen state management that will spook you", "main": "./index.js", "types": "./index.d.ts", "typesVersions": { "<4.0": { "esm/*": [ "ts3.4/*" ], "*": [ "ts3.4/*" ] } }, "exports": { "./package.json": "./package.json", ".": { "types": "./index.d.ts", "module": "./esm/index.js", "import": "./esm/index.mjs", "default": "./index.js" }, "./utils": { "types": "./utils.d.ts", "module": "./esm/utils.js", "import": "./esm/utils.mjs", "default": "./utils.js" }, "./devtools": { "types": "./devtools.d.ts", "module": "./esm/devtools.js", "import": "./esm/devtools.mjs", "default": "./devtools.js" }, "./immer": { "types": "./immer.d.ts", "module": "./esm/immer.js", "import": "./esm/immer.mjs", "default": "./immer.js" }, "./optics": { "types": "./optics.d.ts", "module": "./esm/optics.js", "import": "./esm/optics.mjs", "default": "./optics.js" }, "./query": { "types": "./query.d.ts", "module": "./esm/query.js", "import": "./esm/query.mjs", "default": "./query.js" }, "./xstate": { "types": "./xstate.d.ts", "module": "./esm/xstate.js", "import": "./esm/xstate.mjs", "default": "./xstate.js" }, "./valtio": { "types": "./valtio.d.ts", "module": "./esm/valtio.js", "import": "./esm/valtio.mjs", "default": "./valtio.js" }, "./zustand": { "types": "./zustand.d.ts", "module": "./esm/zustand.js", "import": "./esm/zustand.mjs", "default": "./zustand.js" }, "./redux": { "types": "./redux.d.ts", "module": "./esm/redux.js", "import": "./esm/redux.mjs", "default": "./redux.js" }, "./urql": { "types": "./urql.d.ts", "module": "./esm/urql.js", "import": "./esm/urql.mjs", "default": "./urql.js" }, "./babel/plugin-debug-label": { "types": "./babel/plugin-debug-label.d.ts", "module": "./esm/babel/plugin-debug-label.js", "import": "./esm/babel/plugin-debug-label.mjs", "default": "./babel/plugin-debug-label.js" }, "./babel/plugin-react-refresh": { "types": "./babel/plugin-react-refresh.d.ts", "module": "./esm/babel/plugin-react-refresh.js", "import": "./esm/babel/plugin-react-refresh.mjs", "default": "./babel/plugin-react-refresh.js" }, "./babel/preset": { "types": "./babel/preset.d.ts", "module": "./esm/babel/preset.js", "import": "./esm/babel/preset.mjs", "default": "./babel/preset.js" } }, "files": [ "**" ], "sideEffects": false, "scripts": { "prebuild": "shx rm -rf dist", "build": "concurrently -m 8 'yarn:build:*'", "build-watch": "concurrently -n watch: 'yarn:build:* --watch'", "build:base": "rollup -c", "build:utils": "rollup -c --config-utils", "build:devtools": "rollup -c --config-devtools", "build:immer": "rollup -c --config-immer", "build:optics": "rollup -c --config-optics", "build:query": "rollup -c --config-query", "build:xstate": "rollup -c --config-xstate", "build:valtio": "rollup -c --config-valtio", "build:zustand": "rollup -c --config-zustand", "build:redux": "rollup -c --config-redux", "build:urql": "rollup -c --config-urql", "build:babel:plugin-debug-label": "rollup -c --config-babel_plugin-debug-label", "build:babel:plugin-react-refresh": "rollup -c --config-babel_plugin-react-refresh", "build:babel:preset": "rollup -c --config-babel_preset", "postbuild": "yarn copy && yarn patch-readme", "prettier": "prettier '*.{js,json,md}' '{src,tests,benchmarks,docs}/**/*.{ts,tsx,md,mdx}' --write", "prettier:ci": "prettier '*.{js,json,md}' '{src,tests,benchmarks,docs}/**/*.{ts,tsx,md,mdx}' --list-different", "eslint": "eslint --fix '*.{js,json}' '{src,tests,benchmarks}/**/*.{ts,tsx}'", "eslint:ci": "eslint '*.{js,json}' '{src,tests,benchmarks}/**/*.{ts,tsx}'", "pretest": "tsc --noEmit", "test": "jest && jest --setupFiles ./tests/setProviderLessMode.ts && jest --setupFiles ./tests/setVersionedWriteMode.ts", "test:ci": "jest", "test:dev": "jest --watch --no-coverage", "test:coverage:watch": "jest --watch", "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; this.jest=undefined;\"", "patch-readme": "shx sed -i 's/.*dark mode.*//' dist/readme.md" }, "engines": { "node": ">=12.7.0" }, "prettier": { "semi": false, "trailingComma": "es5", "singleQuote": true, "bracketSameLine": true, "tabWidth": 2, "printWidth": 80 }, "repository": { "type": "git", "url": "git+https://github.com/pmndrs/jotai.git" }, "keywords": [ "react", "state", "manager", "management", "recoil", "store" ], "author": "Daishi Kato", "contributors": [], "license": "MIT", "bugs": { "url": "https://github.com/pmndrs/jotai/issues" }, "homepage": "https://github.com/pmndrs/jotai", "jest": { "rootDir": ".", "testEnvironment": "jsdom", "transform": { "^.+\\.(t|j)sx?$": [ "@swc/jest" ] }, "globals": { "__DEV__": true }, "moduleNameMapper": { "^jotai$": "<rootDir>/src/index.ts", "^jotai/(.*)$": "<rootDir>/src/$1.ts" }, "modulePathIgnorePatterns": [ "dist" ], "testRegex": "test.(js|ts|tsx)$", "coverageDirectory": "./coverage/", "collectCoverage": true, "coverageReporters": [ "json", "html", "text", "text-summary" ], "collectCoverageFrom": [ "src/**/*.{js,ts,tsx}", "tests/**/*.{js,ts,tsx}" ] }, "devDependencies": { "@babel/core": "^7.18.10", "@babel/plugin-transform-react-jsx": "^7.18.10", "@babel/plugin-transform-typescript": "^7.18.12", "@babel/preset-env": "^7.18.10", "@babel/template": "^7.18.10", "@babel/types": "^7.18.10", "@redux-devtools/extension": "^3.2.2", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-replace": "^4.0.0", "@rollup/plugin-typescript": "^8.3.4", "@swc/core": "^1.2.224", "@swc/jest": "^0.2.22", "@tanstack/query-core": "^4.0.10", "@testing-library/react": "^13.3.0", "@types/jest": "^28.1.6", "@types/react": "^18.0.16", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.32.0", "@typescript-eslint/parser": "^5.32.0", "@urql/core": "^2.6.1", "benny": "^3.7.1", "concurrently": "^7.3.0", "downlevel-dts": "^0.10.0", "esbuild": "^0.14.53", "eslint": "^8.21.0", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^26.8.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "graphql": "^16.5.0", "immer": "^9.0.15", "jest": "^28.1.3", "jest-environment-jsdom": "^28.1.3", "json": "^11.0.0", "optics-ts": "^2.3.0", "postinstall-postinstall": "^2.1.0", "prettier": "^2.7.1", "react": "^18.2.0", "react-dom": "^18.2.0", "redux": "^4.2.0", "rollup": "^2.77.2", "rollup-plugin-esbuild": "^4.9.1", "rollup-plugin-terser": "^7.0.2", "rxjs": "^7.5.6", "shx": "^0.3.4", "ts-expect": "^1.3.0", "ts-node": "^10.9.1", "tslib": "^2.4.0", "typescript": "^4.7.4", "valtio": "^1.6.3", "wonka": "^4.0.15", "xstate": "^4.33.0", "zustand": "^4.0.0" }, "resolutions": { "date-fns": "2.27.0" }, "peerDependencies": { "@babel/core": "*", "@babel/template": "*", "@tanstack/query-core": "*", "@urql/core": "*", "immer": "*", "optics-ts": "*", "react": ">=16.8", "valtio": "*", "wonka": "*", "xstate": "*" }, "peerDependenciesMeta": { "@babel/core": { "optional": true }, "@babel/template": { "optional": true }, "@urql/core": { "optional": true }, "immer": { "optional": true }, "optics-ts": { "optional": true }, "@tanstack/query-core": { "optional": true }, "valtio": { "optional": true }, "wonka": { "optional": true }, "xstate": { "optional": true } }}