UNPKG

neverthrow

Version:

Stop throwing errors, and instead return Results!

65 lines (64 loc) • 1.92 kB
{ "name": "neverthrow", "version": "8.2.0", "description": "Stop throwing errors, and instead return Results!", "main": "dist/index.cjs.js", "module": "dist/index.es.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "local-ci": "npm run typecheck && npm run lint && npm run test && npm run format && npm run build", "test": "vitest run && npm run test-types", "test-types": "tsc --noEmit -p ./tests/tsconfig.tests.json", "lint": "eslint ./src --ext .ts", "format": "prettier --write 'src/**/*.ts?(x)' && npm run lint -- --fix", "typecheck": "tsc --noEmit", "clean": "rm -rf ./dist ./tmp", "build": "npm run clean && rollup --config && mv tmp/*.js dist", "prepack": "npm run build", "release": "changeset publish", "version": "changeset version && npm i --lockfile-only" }, "repository": { "type": "git", "url": "git+https://github.com/supermacro/neverthrow.git" }, "author": "Giorgio Delgado", "license": "MIT", "bugs": { "url": "https://github.com/supermacro/neverthrow/issues" }, "homepage": "https://github.com/supermacro/neverthrow#readme", "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.7", "@types/node": "^18.19.39", "@typescript-eslint/eslint-plugin": "4.28.1", "@typescript-eslint/parser": "4.28.1", "eslint": "7.30.0", "eslint-config-prettier": "7.1.0", "eslint-plugin-prettier": "3.4.0", "prettier": "2.2.1", "rollup": "^4.18.0", "rollup-plugin-dts": "^6.1.1", "rollup-plugin-typescript2": "^0.32.1", "testdouble": "3.20.2", "ts-toolbelt": "9.6.0", "typescript": "4.7.2", "vitest": "^2.1.3" }, "keywords": [ "typescript", "functional", "fp", "error" ], "engines": { "node": ">=18" }, "optionalDependencies": { "@rollup/rollup-linux-x64-gnu": "^4.24.0" } }