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.10.5", "description": "πŸ’Š Valtio makes proxy-state simple for React and Vanilla", "main": "./index.js", "types": "./index.d.ts", "typesVersions": { "<4.5": { "esm/*": [ "ts3.4/*" ], "*": [ "ts3.4/*" ] } }, "exports": { "./package.json": "./package.json", ".": { "types": "./index.d.ts", "import": { "types": "./esm/index.d.mts", "default": "./esm/index.mjs" }, "module": "./esm/index.js", "default": "./index.js" }, "./*": { "types": "./*.d.ts", "import": { "types": "./esm/*.d.mts", "default": "./esm/*.mjs" }, "module": "./esm/*.js", "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", "build:macro": "rollup -c --config-macro", "build:macro_vite": "rollup -c --config-macro_vite", "postbuild": "yarn patch-d-ts && yarn copy && yarn patch-macro-vite && yarn patch-ts3.4 && 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 --fix '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'", "eslint:ci": "eslint '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'", "pretest": "tsc --noEmit", "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} && 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-macro-vite": "shx cp dist/esm/macro/vite.d.ts dist/macro/ && shx cp dist/ts3.4/esm/macro/vite.d.ts dist/ts3.4/macro/", "patch-ts3.4": "node -e \"require('shelljs').find('dist/ts3.4/**/*.d.ts').forEach(f=>{require('fs').appendFileSync(f,'declare type Awaited<T> = T extends Promise<infer V> ? V : T;');require('shelljs').sed('-i',/^declare type Snapshot<T> =/,'declare type Snapshot<T> = T extends SnapshotIgnore ? T : T extends Promise<unknown> ? Awaited<T> : T extends object ? { readonly [K in keyof T]: Snapshot2<T[K]> } : T; declare type Snapshot2<T> = T extends SnapshotIgnore ? T : T extends Promise<unknown> ? Awaited<T> : T extends object ? { readonly [K in keyof T]: T[K] } : T;;declare type _Snapshot<T> =',f)})\"", "patch-esm-ts": "node -e \"require('shelljs').find('dist/esm/**/*.d.ts').forEach(f=>{var f2=f.replace(/\\.ts$/,'.mts');require('fs').copyFileSync(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, "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", "dependencies": { "proxy-compare": "2.5.1", "use-sync-external-store": "1.2.0" }, "devDependencies": { "@babel/core": "^7.21.8", "@babel/helper-module-imports": "^7.21.4", "@babel/plugin-transform-react-jsx": "^7.21.5", "@babel/plugin-transform-typescript": "^7.21.3", "@babel/preset-env": "^7.21.5", "@babel/types": "^7.21.5", "@redux-devtools/extension": "^3.2.5", "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-node-resolve": "^15.0.2", "@rollup/plugin-replace": "^5.0.2", "@rollup/plugin-terser": "^0.4.1", "@rollup/plugin-typescript": "^11.1.0", "@testing-library/react": "^14.0.0", "@types/babel-plugin-macros": "^3.1.0", "@types/jsdom": "^21.1.1", "@types/react": "^18.2.5", "@types/react-dom": "^18.2.3", "@types/use-sync-external-store": "^0.0.3", "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "@vitest/coverage-c8": "^0.31.0", "@vitest/ui": "^0.31.0", "aslemammad-vite-plugin-macro": "^1.0.0", "babel-plugin-macros": "^3.1.0", "babel-plugin-tester": "10.1.0", "concurrently": "^8.0.1", "downlevel-dts": "^0.11.0", "esbuild": "^0.17.18", "eslint": "^8.39.0", "eslint-config-prettier": "^8.8.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-vitest": "^0.1.5", "jsdom": "^22.0.0", "json": "^11.0.0", "postinstall-postinstall": "^2.1.0", "prettier": "^2.8.8", "proxy-memoize": "^2.0.3", "react": "^18.2.0", "react-dom": "^18.2.0", "redux": "^4.2.1", "rollup": "^3.21.4", "rollup-plugin-esbuild": "^5.0.0", "shx": "^0.3.4", "ts-expect": "^1.3.0", "tslib": "^2.5.0", "typescript": "^5.0.4", "vite": "^4.3.4", "vitest": "^0.31.0" }, "peerDependencies": { "react": ">=16.8" }, "peerDependenciesMeta": { "react": { "optional": true } }}