package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "tsbuffer-validator",
  3. "version": "2.1.2",
  4. "description": "Validator for TSBuffer values",
  5. "main": "index.js",
  6. "exports": {
  7. "require": "./index.js",
  8. "import": "./index.mjs"
  9. },
  10. "typings": "./index.d.ts",
  11. "scripts": {
  12. "test": "npx mocha",
  13. "coverage": "nyc mocha test/**/*.test.ts && start coverage\\index.html",
  14. "build": "npm run build:js && npm run build:dts && npm run build:doc && cp package.json LICENSE README.md dist/",
  15. "build:js": "rm -rf dist && npx rollup -c",
  16. "build:dts": "rm -rf lib && npx tsc && npx api-extractor run --local --verbose && node scripts/removePrivate.js && rm -rf lib",
  17. "build:doc": "rm -rf docs/api && npx api-documenter markdown --input temp --output docs/api",
  18. "bp": "npm version patch && npm run build && cd dist && npm publish & cd.."
  19. },
  20. "repository": {
  21. "type": "git",
  22. "url": "git+https://github.com/k8w/tsbuffer-validator.git"
  23. },
  24. "keywords": [
  25. "k8w",
  26. "tsbuffer",
  27. "typescript",
  28. "validator",
  29. "interface",
  30. "protobuf",
  31. "buffer",
  32. "json",
  33. "schema",
  34. "validate"
  35. ],
  36. "author": "k8w",
  37. "license": "MIT",
  38. "bugs": {
  39. "url": "https://github.com/k8w/tsbuffer-validator/issues"
  40. },
  41. "homepage": "https://github.com/k8w/tsbuffer-validator#readme",
  42. "dependencies": {
  43. "k8w-extend-native": "^1.4.6",
  44. "tsbuffer-schema": "^2.2.0",
  45. "tslib": "*"
  46. },
  47. "nyc": {
  48. "extension": [
  49. ".ts"
  50. ],
  51. "exclude": [
  52. "**/*.d.ts",
  53. "coverage",
  54. "test",
  55. "dist"
  56. ],
  57. "reporter": [
  58. "html"
  59. ],
  60. "all": true
  61. },
  62. "devDependencies": {
  63. "@microsoft/api-documenter": "^7.23.15",
  64. "@microsoft/api-extractor": "^7.39.0",
  65. "@types/mocha": "^8.2.3",
  66. "@types/node": "^20.10.5",
  67. "mocha": "^9.2.2",
  68. "nyc": "^15.1.0",
  69. "rollup": "^2.79.1",
  70. "rollup-plugin-typescript2": "^0.36.0",
  71. "ts-node": "^10.9.2",
  72. "typescript": "^4.9.5"
  73. }
  74. }