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.2.11", "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" } }, "files": [ "**" ], "sideEffects": false, "scripts": { "prebuild": "shx rm -rf dist", "build": "concurrently 'yarn:build:*'", "build:base": "rollup -c", "build:vanilla": "rollup -c --config-vanilla", "build:utils": "rollup -c --config-utils", "build:macro": "rollup -c --config-macro", "postbuild": "yarn copy", "eslint": "eslint --fix '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'", "eslint:ci": "eslint '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'", "pretest": "tsc --noEmit", "test": "jest && jest --setupFiles ./tests/setNodeEnvProduction.ts", "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; 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}": [ "prettier --write" ] }, "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" ] }, "moduleNameMapper": { "^valtio$": "<rootDir>/src/index.ts", "^valtio/(.*)$": "<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}" ] }, "dependencies": { "proxy-compare": "2.0.2" }, "devDependencies": { "@babel/core": "^7.16.12", "@babel/helper-module-imports": "^7.16.7", "@babel/plugin-transform-react-jsx": "^7.16.7", "@babel/plugin-transform-typescript": "^7.16.8", "@babel/preset-env": "^7.16.11", "@babel/types": "^7.16.8", "@rollup/plugin-alias": "^3.1.9", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-node-resolve": "^13.1.3", "@rollup/plugin-typescript": "^8.3.0", "@swc/core": "^1.2.133", "@swc/jest": "^0.2.17", "@testing-library/react": "^12.1.2", "@types/babel-plugin-macros": "^2.8.5", "@types/jest": "^27.4.0", "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@typescript-eslint/eslint-plugin": "^5.10.0", "@typescript-eslint/parser": "^5.10.0", "babel-plugin-macros": "^3.1.0", "babel-plugin-tester": "^10.1.0", "concurrently": "^7.0.0", "downlevel-dts": "^0.8.0", "esbuild": "^0.14.13", "eslint": "^8.7.0", "eslint-config-prettier": "^8.3.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^25.7.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.28.0", "eslint-plugin-react-hooks": "^4.3.0", "husky": "^7.0.4", "jest": "^27.4.7", "json": "^11.0.0", "lint-staged": "^12.3.1", "prettier": "^2.5.1", "react": "^17.0.2", "react-dom": "^17.0.2", "rollup": "^2.66.0", "rollup-plugin-esbuild": "^4.8.2", "shx": "^0.3.4", "tslib": "^2.3.1", "typescript": "^4.5.5" }, "peerDependencies": { "@babel/helper-module-imports": ">=7.12", "@babel/types": ">=7.13", "babel-plugin-macros": ">=3.0", "react": ">=16.8" }, "peerDependenciesMeta": { "@babel/helper-module-imports": { "optional": true }, "@babel/types": { "optional": true }, "babel-plugin-macros": { "optional": true }, "react": { "optional": true } }}