UNPKG

@2toad/reflex

Version:

A simple approach to state management

101 lines (100 loc) 2.97 kB
{ "name": "@2toad/reflex", "version": "1.0.0", "description": "A simple approach to state management", "homepage": "https://github.com/2Toad/reflex", "author": "2Toad", "license": "MIT", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", "exports": { ".": { "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js", "default": "./dist/esm/index.js" } }, "files": [ "dist", "README.md", "LICENSE" ], "sideEffects": false, "scripts": { "clean": "npx rimraf dist", "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types", "build:cjs": "tsc -p tsconfig.cjs.json", "build:esm": "tsc -p tsconfig.esm.json", "build:types": "tsc -p tsconfig.types.json", "local": "npm run clean && nodemon src/index.ts", "local:pack": "npm run build && npm pack", "test": "mocha -r ts-node/register tests/unit/*.spec.ts", "test:watch": "mocha -r ts-node/register --watch --watch-files tests --watch-extensions ts 'tests/unit/*.spec.ts'", "test:e2e": "npm run build && playwright test", "test:e2e:ui": "playwright test --ui", "test:e2e:debug": "playwright test --debug", "test:package": "./test-package.sh", "test:all": "npm run test && npm run test:e2e && npm run test:package", "lint": "eslint . --cache", "lint:fix": "eslint . --fix", "format": "prettier . --write", "prepublishOnly": "npm run lint && npm run test:all", "postinstall": "husky" }, "repository": { "type": "git", "url": "git+ssh://git@github.com/2Toad/reflex.git" }, "keywords": [ "reflex", "reactive", "computed", "deep-reactive", "state-management", "typescript", "framework-agnostic", "zero-dependencies", "reactivity", "observable", "proxy", "subscription", "batch-updates" ], "devDependencies": { "@eslint/js": "^9.9.1", "@playwright/test": "^1.50.1", "@types/chai": "^5.0.1", "@types/eslint__js": "^8.42.3", "@types/eslint-config-prettier": "^6.11.3", "@types/eslint-plugin-security": "^3.0.0", "@types/mocha": "^10.0.8", "@types/node": "^22.5.2", "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", "chai": "^5.2.0", "eslint": "^9.9.1", "eslint-config-prettier": "^10.0.1", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-security": "^3.0.1", "globals": "^16.0.0", "husky": "^9.1.5", "lint-staged": "^15.2.10", "mocha": "^11.1.0", "nodemon": "^3.1.4", "prettier": "^3.3.3", "rimraf": "^6.0.1", "ts-node": "^10.9.2", "typescript": "^5.5.4", "typescript-eslint": "^8.4.0" }, "overrides": { "inflight": "^2.0.0", "glob": "^9.0.0" }, "lint-staged": { "*.ts": "eslint --cache --fix", "*": "prettier --write" } }