Skip to main content
Module

x/valtio/package.json

πŸ’Š Valtio makes proxy-state simple for React and Vanilla
Go to Latest
File
{ "name": "valtio", "private": true, "version": "1.6.2", "description": "πŸ’Š Valtio makes proxy-state simple for React and Vanilla", "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" }, "./vanilla": { "types": "./vanilla.d.ts", "module": "./esm/vanilla.js", "import": "./esm/vanilla.mjs", "default": "./vanilla.js" }, "./utils": { "types": "./utils.d.ts", "module": "./esm/utils.js", "import": "./esm/utils.mjs", "default": "./utils.js" }, "./macro": { "types": "./macro.d.ts", "module": "./esm/macro.js", "import": "./esm/macro.mjs", "default": "./macro.js" }, "./macro/vite": { "types": "./esm/macro/vite.d.ts", "module": "./esm/macro/vite.js", "import": "./esm/macro/vite.mjs", "default": "./macro/vite.js" } }, "files": [ "**" ], "sideEffects": false, "scripts": { "postinstall": "patch-package", "prebuild": "shx rm -rf dist", "build": "concurrently -m 8 'yarn:build:*'", "build-watch": "concurrently -n watch: 'yarn:build:* --watch'", "build:base": "rollup -c", "build:vanilla": "rollup -c --config-vanilla", "build:utils": "rollup -c --config-utils", "build:macro": "rollup -c --config-macro", "build:macro-vite": "rollup -c --config-macro_vite", "postbuild": "yarn copy", "prettier": "prettier '*.{js,json,md}' '{src,tests,docs}/**/*.{ts,tsx,md,mdx}' --write", "prettier:ci": "prettier '*.{js,json,md}' '{src,tests,docs}/**/*.{ts,tsx,md,mdx}' --list-different", "eslint": "eslint --fix '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'", "eslint:ci": "eslint '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'", "pretest": "tsc --noEmit", "test": "jest", "test:ci": "jest", "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;\"" }, "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/valtio.git" }, "keywords": [ "react", "state", "manager", "management", "mobx", "proxy", "store" ], "author": "Daishi Kato", "contributors": [], "license": "MIT", "bugs": { "url": "https://github.com/pmndrs/valtio/issues" }, "homepage": "https://github.com/pmndrs/valtio", "jest": { "rootDir": ".", "testEnvironment": "jsdom", "transform": { "^.+\\.(t|j)sx?$": [ "@swc/jest" ] }, "globals": { "__DEV__": true }, "moduleNameMapper": { "^valtio$": "<rootDir>/src/index.ts", "^valtio/(.*)$": "<rootDir>/src/$1.ts", "^proxy-memoize$": "<rootDir>/node_modules/proxy-memoize/dist/wrapper.cjs" }, "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}" ] }, "dependencies": { "proxy-compare": "2.2.0", "use-sync-external-store": "1.2.0" }, "devDependencies": { "@babel/core": "^7.18.6", "@babel/helper-module-imports": "^7.18.6", "@babel/plugin-transform-react-jsx": "^7.18.6", "@babel/plugin-transform-typescript": "^7.18.8", "@babel/preset-env": "^7.18.6", "@babel/types": "^7.18.8", "@redux-devtools/extension": "^3.2.2", "@rollup/plugin-alias": "^3.1.9", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-replace": "^4.0.0", "@rollup/plugin-typescript": "^8.3.3", "@swc/core": "^1.2.213", "@swc/jest": "^0.2.21", "@testing-library/react": "^13.3.0", "@types/babel-plugin-macros": "^2.8.5", "@types/jest": "^28.1.5", "@types/react": "^18.0.15", "@types/react-dom": "^18.0.6", "@types/use-sync-external-store": "^0.0.3", "@typescript-eslint/eslint-plugin": "^5.30.6", "@typescript-eslint/parser": "^5.30.6", "aslemammad-vite-plugin-macro": "^1.0.0-alpha.1", "babel-plugin-macros": "^3.1.0", "babel-plugin-tester": "^10.1.0", "concurrently": "^7.2.2", "downlevel-dts": "^0.10.0", "esbuild": "^0.14.49", "eslint": "^8.19.0", "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^26.5.3", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^28.1.2", "jest-environment-jsdom": "^28.1.2", "json": "^11.0.0", "patch-package": "^6.4.7", "postinstall-postinstall": "^2.1.0", "prettier": "^2.7.1", "proxy-memoize": "^1.1.0", "react": "^18.2.0", "react-dom": "^18.2.0", "redux": "^4.2.0", "rollup": "^2.76.0", "rollup-plugin-esbuild": "^4.9.1", "rollup-plugin-terser": "^7.0.2", "shx": "^0.3.4", "tslib": "^2.4.0", "typescript": "^4.7.4", "vite": "2.8.6" }, "resolutions": { "date-fns": "2.27.0" }, "peerDependencies": { "@babel/helper-module-imports": ">=7.12", "@babel/types": ">=7.13", "aslemammad-vite-plugin-macro": ">=1.0.0-alpha.1", "babel-plugin-macros": ">=3.0", "react": ">=16.8", "vite": ">=2.8.6" }, "peerDependenciesMeta": { "vite": { "optional": true }, "aslemammad-vite-plugin-macro": { "optional": true }, "@babel/helper-module-imports": { "optional": true }, "@babel/types": { "optional": true }, "babel-plugin-macros": { "optional": true }, "react": { "optional": true } }}