package.json 2.2 KB

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