{ "name": "jotai", "private": true, "version": "1.3.7", "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/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 'yarn:build:*'", "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:preset": "rollup -c --config-babel_preset", "postbuild": "yarn copy", "eslint": "eslint --fix '*.{js,json}' '{src,tests,benchmarks}/**/*.{ts,tsx}'", "eslint:ci": "eslint '*.{js,json}' '{src,tests,benchmarks}/**/*.{ts,tsx}'", "prepare": "yarn build", "pretest": "tsc --noEmit", "test": "jest && jest --setupFiles ./tests/setProviderLessMode.ts", "test:dev": "jest --watch --no-coverage", "test:coverage:watch": "jest --watch", "copy": "shx cp -r dist/src/* dist/esm && shx mv dist/src/* dist && 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; this['lint-staged']=undefined;\"" }, "engines": { "node": ">=12.7.0" }, "prettier": { "semi": false, "trailingComma": "es5", "singleQuote": true, "bracketSameLine": true, "tabWidth": 2, "printWidth": 80 }, "lint-staged": { "*.{js,ts,tsx,md}": [ "prettier --write" ] }, "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", "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.15.5", "@babel/plugin-transform-react-jsx": "^7.14.9", "@babel/plugin-transform-typescript": "^7.15.4", "@babel/preset-env": "^7.15.6", "@babel/template": "^7.15.4", "@babel/types": "^7.15.6", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-node-resolve": "^13.0.5", "@rollup/plugin-typescript": "^8.2.5", "@testing-library/react": "^12.1.1", "@types/jest": "^27.0.2", "@types/react": "^17.0.26", "@types/react-dom": "^17.0.9", "@typescript-eslint/eslint-plugin": "^4.32.0", "@typescript-eslint/parser": "^4.32.0", "@urql/core": "^2.0.0", "benny": "^3.6.15", "concurrently": "^6.2.2", "downlevel-dts": "^0.7.0", "esbuild": "^0.13.3", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.24.2", "eslint-plugin-jest": "^24.5.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.26.1", "eslint-plugin-react-hooks": "^4.2.0", "graphql": "^15.6.0", "husky": "^7.0.2", "immer": "^8.0.1", "jest": "^27.2.4", "json": "^11.0.0", "lint-staged": "^11.1.2", "optics-ts": "^2.1.0", "prettier": "^2.4.1", "react": "^17.0.2", "react-dom": "^17.0.2", "react-query": "^3.21.0", "redux": "^4.1.1", "rollup": "^2.58.0", "rollup-plugin-esbuild": "^4.5.0", "rxjs": "^7.3.0", "shx": "^0.3.3", "ts-expect": "^1.3.0", "ts-node": "^10.2.1", "tslib": "^2.3.1", "typescript": "^4.4.3", "valtio": "^1.2.4", "wonka": "^4.0.15", "xstate": "^4.17.1", "zustand": "^3.5.12" }, "peerDependencies": { "@babel/core": "*", "@babel/template": "*", "@urql/core": "*", "immer": "*", "optics-ts": "*", "react": ">=16.8", "react-query": "*", "valtio": "*", "wonka": "*", "xstate": "*" }, "peerDependenciesMeta": { "@babel/core": { "optional": true }, "@babel/template": { "optional": true }, "@urql/core": { "optional": true }, "immer": { "optional": true }, "optics-ts": { "optional": true }, "react-query": { "optional": true }, "valtio": { "optional": true }, "wonka": { "optional": true }, "xstate": { "optional": true } }}