Module

x/valtio/package.json

💊 Valtio makes proxy-state simple for React and Vanilla
Go to Latest
File
{ "name": "valtio", "private": true, "version": "2.0.0-alpha.0", "publishConfig": { "tag": "next" }, "description": "💊 Valtio makes proxy-state simple for React and Vanilla", "main": "./index.js", "types": "./index.d.ts", "typesVersions": { ">=4.5": { "esm/*": [ "esm/*" ], "*": [ "*" ] }, "*": { "esm/*": [ "ts_version_4.5_and_above_is_required.d.ts" ], "*": [ "ts_version_4.5_and_above_is_required.d.ts" ] } }, "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./esm/index.d.mts", "default": "./esm/index.mjs" }, "default": { "types": "./index.d.ts", "default": "./index.js" } }, "./*": { "import": { "types": "./esm/*.d.mts", "default": "./esm/*.mjs" }, "default": { "types": "./*.d.ts", "default": "./*.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:vanilla": "rollup -c --config-vanilla", "build:vanilla_utils": "rollup -c --config-vanilla_utils", "build:react": "rollup -c --config-react", "build:react_utils": "rollup -c --config-react_utils", "postbuild": "yarn patch-d-ts && yarn copy && yarn patch-old-ts && yarn patch-esm-ts", "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 --no-eslintrc --c .eslintrc.json --fix '*.{js,json,ts}' '{src,tests}/**/*.{ts,tsx}'", "eslint:ci": "eslint --no-eslintrc --c .eslintrc.json '*.{js,json,ts}' '{src,tests}/**/*.{ts,tsx}'", "pretest": "tsc", "test": "vitest --ui --coverage", "test:ci": "vitest", "patch-d-ts": "node -e \"var {entries}=require('./rollup.config.js');require('shelljs').find('dist/**/*.d.ts').forEach(f=>{entries.forEach(({find,replacement})=>require('shelljs').sed('-i',new RegExp(' from \\''+find.source.slice(0,-1)+'\\';$'),' from \\''+replacement+'\\';',f));require('shelljs').sed('-i',/ from '(\\.[^']+)\\.ts';$/,' from \\'\\$1\\';',f)})\"", "copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && 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;\"", "patch-old-ts": "shx touch dist/ts_version_4.5_and_above_is_required.d.ts", "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)})\"" }, "engines": { "node": ">=12.20.0" }, "prettier": { "semi": false, "singleQuote": true }, "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", "dependencies": { "proxy-compare": "2.5.1" }, "devDependencies": { "@babel/core": "^7.23.2", "@babel/plugin-transform-react-jsx": "^7.22.15", "@babel/plugin-transform-typescript": "^7.22.15", "@babel/preset-env": "^7.23.2", "@redux-devtools/extension": "^3.2.5", "@rollup/plugin-alias": "^5.0.1", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-typescript": "^11.1.5", "@testing-library/react": "^14.0.0", "@types/jsdom": "^21.1.4", "@types/react": "^18.2.34", "@types/react-dom": "^18.2.14", "@typescript-eslint/eslint-plugin": "^6.9.1", "@typescript-eslint/parser": "^6.9.1", "@vitest/coverage-v8": "0.33.0", "@vitest/ui": "0.33.0", "concurrently": "^8.2.2", "esbuild": "^0.19.5", "eslint": "^8.52.0", "eslint-config-prettier": "^9.0.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.0", "eslint-plugin-prettier": "^5.0.1", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-vitest": "^0.3.8", "jsdom": "^22.1.0", "json": "^11.0.0", "postinstall-postinstall": "^2.1.0", "prettier": "^3.0.3", "proxy-memoize": "^2.0.4", "react": "18.3.0-canary-c47c306a7-20231109", "react-dom": "18.3.0-canary-c47c306a7-20231109", "redux": "^4.2.1", "rollup": "^4.2.0", "rollup-plugin-esbuild": "^6.1.0", "shx": "^0.3.4", "ts-expect": "^1.3.0", "tslib": "^2.6.2", "typescript": "^5.2.2", "vite": "^4.5.0", "vitest": "0.33.0" }, "peerDependencies": { "@types/react": ">=18.0", "react": ">=18.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, "react": { "optional": true } }}