UNPKG

validx

Version:
108 lines (107 loc) 3.11 kB
{ "name": "validx", "version": "1.0.0-alpha.2", "description": "Validation library for MobX", "main": "lib/index.js", "typings": "lib/index.d.ts", "engines": {}, "scripts": { "build": "rimraf lib && tsc -p tsconfig.build.json", "check": "tsc -p tsconfig.json --noEmit --pretty", "lint": "npm run check && tslint --project tsconfig.json --fix \"{src,examples}/**/*.ts\" && prettier --write \"{src,examples}/**/*.{ts,js}\"", "precommit": "lint-staged && npm test", "test": "npm run check && jest", "test:watch": "nodemon -e js,ts --exec npm run test", "lint:watch": "nodemon -e ts --exec npm run lint", "cover": "npm run test -- --coverage", "coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "publish:pre": "npm run lint && npm run build && npm run cover", "publish:post": "npm publish && git push --follow-tags", "release:prerelease": "npm run publish:pre && npm version prerelease && npm run publish:post", "release:patch": "npm run publish:pre && npm version patch && npm run publish:post", "release:minor": "npm run publish:pre && npm version minor && npm run publish:post", "release:major": "npm run publish:pre && npm version major && npm run publish:post" }, "prettier": { "semi": false, "singleQuote": true }, "lint-staged": { "*.ts": [ "tslint --project tsconfig.json --fix", "prettier --write" ] }, "repository": { "type": "git", "url": "git+https://github.com/jeffijoe/validx.git" }, "files": [ "lib", "LICENSE.md", "README.md" ], "directories": { "lib": "lib" }, "keywords": [ "mobx", "validation", "state management", "react" ], "author": "Jeff Hansen <jeff@jeffijoe.com>", "license": "MIT", "bugs": { "url": "https://github.com/jeffijoe/validx/issues" }, "homepage": "https://github.com/jeffijoe/validx#readme", "devDependencies": { "@types/chai": "^4.3.1", "@types/email-validator": "^1.0.30", "@types/is-url": "^1.2.30", "@types/jest": "^28.1.1", "@types/mocha": "^9.1.1", "@types/node": "^18.0.0", "@types/sinon-chai": "^3.2.8", "chai": "^4.3.6", "coveralls": "^3.1.1", "husky": "^8.0.1", "jest": "^28.1.1", "lint-staged": "^13.0.1", "mobx": "^6.6.0", "mocha": "^10.0.0", "nodemon": "^2.0.16", "nyc": "^15.1.0", "prettier": "^2.7.1", "rimraf": "^3.0.2", "sinon": "^14.0.0", "sinon-chai": "^3.7.0", "ts-jest": "^28.0.5", "tslint": "^6.1.3", "tslint-config-prettier": "^1.18.0", "tslint-config-standard": "^9.0.0", "typescript": "^4.7.3" }, "dependencies": { "email-validator": "^2.0.4", "is-url": "^1.2.4" }, "jest": { "testRegex": "(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$", "testEnvironment": "node", "coveragePathIgnorePatterns": [ "/node_modules/", "__tests__", "lib" ], "moduleFileExtensions": [ "ts", "tsx", "js" ], "transform": { "^.+\\.tsx?$": "ts-jest" } } }