overleaf/libraries/o-error/package.json

48 lines
1.8 KiB
JSON
Raw Normal View History

2018-03-07 11:42:39 -05:00
{
2019-07-08 06:35:29 -04:00
"name": "@overleaf/o-error",
"version": "3.4.0",
2020-05-15 11:50:37 -04:00
"description": "Light-weight helpers for handling JavaScript Errors in node.js and the browser. Helps with long stack traces, Error subclasses, wrapping internal errors (causes), and attaching extra data to errors for logging.",
2020-05-15 12:18:01 -04:00
"keywords": [
"browser",
"node",
"error",
"long stack trace",
"stack trace",
"stack",
"cause",
"verror"
],
"main": "index.cjs",
"types": "types/index.cjs",
2020-05-15 12:18:01 -04:00
"files": [
"index.cjs",
"index.d.ts"
2020-05-15 12:18:01 -04:00
],
2018-03-07 11:42:39 -05:00
"scripts": {
"build": "npm run --silent typecheck && npm run --silent test && npm run --silent declaration:build && npm run --silent update-readme",
"declaration:build": "rm -f index.d.ts && tsc --allowJs --declaration --emitDeclarationOnly --moduleResolution node --target ES6 index.js",
"declaration:check": "git diff --exit-code -- index.d.ts",
"lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix --ext .js --ext .cjs .",
"prepublishOnly": "npm run --silent declaration:build && npm run --silent declaration:check",
"test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"typecheck": "tsc --noEmit",
"update-readme": "doc/update-readme.js",
"format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
2018-03-07 11:42:39 -05:00
},
2018-04-21 18:24:23 -04:00
"author": "Overleaf (https://www.overleaf.com)",
"license": "MIT",
2019-07-08 08:22:49 -04:00
"repository": "github:overleaf/o-error",
2018-03-07 11:42:39 -05:00
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/node": "^18.17.4",
"chai": "^4.3.6",
"mocha": "^10.2.0",
"typescript": "^5.0.4"
}
2018-03-07 11:42:39 -05:00
}