package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "name": "jackspeak",
  3. "version": "2.2.1",
  4. "description": "A very strict and proper argument parser.",
  5. "main": "./dist/cjs/index.js",
  6. "module": "./dist/mjs/index.js",
  7. "types": "./dist/mjs/index.js",
  8. "exports": {
  9. ".": {
  10. "import": {
  11. "types": "./dist/mjs/index.d.ts",
  12. "default": "./dist/mjs/index.js"
  13. },
  14. "require": {
  15. "types": "./dist/cjs/index.d.ts",
  16. "default": "./dist/cjs/index.js"
  17. }
  18. }
  19. },
  20. "files": [
  21. "dist"
  22. ],
  23. "scripts": {
  24. "build-examples": "for i in examples/*.js ; do node $i -h > ${i/.js/.txt}; done",
  25. "preversion": "npm test",
  26. "postversion": "npm publish",
  27. "prepublishOnly": "git push origin --follow-tags",
  28. "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash ./scripts/fixup.sh",
  29. "pretest": "npm run prepare",
  30. "presnap": "npm run prepare",
  31. "test": "c8 tap",
  32. "snap": "c8 tap",
  33. "format": "prettier --write . --loglevel warn",
  34. "typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
  35. },
  36. "license": "BlueOak-1.0.0",
  37. "prettier": {
  38. "semi": false,
  39. "printWidth": 75,
  40. "tabWidth": 2,
  41. "useTabs": false,
  42. "singleQuote": true,
  43. "jsxSingleQuote": false,
  44. "bracketSameLine": true,
  45. "arrowParens": "avoid",
  46. "endOfLine": "lf"
  47. },
  48. "tap": {
  49. "coverage": false,
  50. "node-arg": [
  51. "--no-warnings",
  52. "--loader",
  53. "ts-node/esm"
  54. ],
  55. "ts": false
  56. },
  57. "devDependencies": {
  58. "@types/node": "^18.15.11",
  59. "@types/pkgjs__parseargs": "^0.10.0",
  60. "@types/tap": "^15.0.8",
  61. "c8": "^7.13.0",
  62. "eslint-config-prettier": "^8.8.0",
  63. "prettier": "^2.8.6",
  64. "tap": "^16.3.4",
  65. "ts-node": "^10.9.1",
  66. "typedoc": "^0.23.28",
  67. "typescript": "^5.0.2"
  68. },
  69. "dependencies": {
  70. "@isaacs/cliui": "^8.0.2"
  71. },
  72. "engines": {
  73. "node": ">=14"
  74. },
  75. "funding": {
  76. "url": "https://github.com/sponsors/isaacs"
  77. },
  78. "repository": {
  79. "type": "git",
  80. "url": "git+https://github.com/isaacs/jackspeak.git"
  81. },
  82. "keywords": [
  83. "argument",
  84. "parser",
  85. "args",
  86. "option",
  87. "flag",
  88. "cli",
  89. "command",
  90. "line",
  91. "parse",
  92. "parsing"
  93. ],
  94. "author": "Isaac Z. Schlueter <i@izs.me>",
  95. "optionalDependencies": {
  96. "@pkgjs/parseargs": "^0.11.0"
  97. }
  98. }