UNPKG

mini-state-machine

Version:
64 lines (63 loc) 1.68 kB
{ "name": "mini-state-machine", "version": "2.1.1", "description": "A miniature state machine", "exports": "./dist/index.js", "type": "module", "types": "dist/index.d.ts", "scripts": { "build": "npm run clean && tsc", "clean": "rimraf dist", "format": "prettier --write '{source,test}/**/*.{ts,js}'", "precommit": "lint-staged", "prepublishOnly": "npm run build", "test": "run-s test:unit test:format", "test:format": "prettier --check '{source,test}/**/*.{ts,js}'", "test:unit": "npm run build && c8 --check-coverage --lines 90 --functions 69 --branches 85 --statements 90 mocha -r test/index.js 'test/unit/**/*.spec.js'" }, "lint-staged": { "{source,test}/**/*.{ts,js}": [ "prettier --write" ] }, "files": [ "dist/**/*", "*.md" ], "repository": { "type": "git", "url": "git+https://github.com/perry-mitchell/mini-state-machine.git" }, "keywords": [ "fsm", "stm", "state", "machine", "finite", "mini", "transition" ], "author": "Perry Mitchell <perry@perrymitchell.net>", "license": "MIT", "bugs": { "url": "https://github.com/perry-mitchell/mini-state-machine/issues" }, "homepage": "https://github.com/perry-mitchell/mini-state-machine#readme", "devDependencies": { "@types/node": "^18.15.11", "c8": "^7.13.0", "chai": "^4.3.7", "chai-as-promised": "^7.1.1", "husky": "^4.3.8", "lint-staged": "^13.2.0", "mocha": "^10.2.0", "npm-run-all": "^4.1.5", "prettier": "^2.8.7", "rimraf": "^4.4.1", "sinon": "^15.0.3", "typescript": "^5.0.3" }, "dependencies": { "layerr": "^2.0.0" } }