package.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "name": "yargs-parser",
  3. "version": "21.0.1",
  4. "description": "the mighty option parser used by yargs",
  5. "main": "build/index.cjs",
  6. "exports": {
  7. ".": [
  8. {
  9. "import": "./build/lib/index.js",
  10. "require": "./build/index.cjs"
  11. },
  12. "./build/index.cjs"
  13. ]
  14. },
  15. "type": "module",
  16. "module": "./build/lib/index.js",
  17. "scripts": {
  18. "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
  19. "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
  20. "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
  21. "test": "c8 --reporter=text --reporter=html mocha test/*.cjs",
  22. "test:esm": "c8 --reporter=text --reporter=html mocha test/*.mjs",
  23. "test:browser": "start-server-and-test 'serve ./ -p 8080' http://127.0.0.1:8080/package.json 'node ./test/browser/yargs-test.cjs'",
  24. "pretest:typescript": "npm run pretest",
  25. "test:typescript": "c8 mocha ./build/test/typescript/*.js",
  26. "coverage": "c8 report --check-coverage",
  27. "precompile": "rimraf build",
  28. "compile": "tsc",
  29. "postcompile": "npm run build:cjs",
  30. "build:cjs": "rollup -c",
  31. "prepare": "npm run compile"
  32. },
  33. "repository": {
  34. "type": "git",
  35. "url": "https://github.com/yargs/yargs-parser.git"
  36. },
  37. "keywords": [
  38. "argument",
  39. "parser",
  40. "yargs",
  41. "command",
  42. "cli",
  43. "parsing",
  44. "option",
  45. "args",
  46. "argument"
  47. ],
  48. "author": "Ben Coe <ben@npmjs.com>",
  49. "license": "ISC",
  50. "devDependencies": {
  51. "@types/chai": "^4.2.11",
  52. "@types/mocha": "^9.0.0",
  53. "@types/node": "^16.11.4",
  54. "@typescript-eslint/eslint-plugin": "^3.10.1",
  55. "@typescript-eslint/parser": "^3.10.1",
  56. "c8": "^7.3.0",
  57. "chai": "^4.2.0",
  58. "cross-env": "^7.0.2",
  59. "eslint": "^7.0.0",
  60. "eslint-plugin-import": "^2.20.1",
  61. "eslint-plugin-node": "^11.0.0",
  62. "gts": "^3.0.0",
  63. "mocha": "^9.0.0",
  64. "puppeteer": "^13.4.0",
  65. "rimraf": "^3.0.2",
  66. "rollup": "^2.22.1",
  67. "rollup-plugin-cleanup": "^3.1.1",
  68. "rollup-plugin-ts": "^2.0.5",
  69. "serve": "^13.0.0",
  70. "standardx": "^7.0.0",
  71. "start-server-and-test": "^1.11.2",
  72. "ts-transform-default-export": "^1.0.2",
  73. "typescript": "^4.0.0"
  74. },
  75. "files": [
  76. "browser.js",
  77. "build",
  78. "!*.d.ts"
  79. ],
  80. "engines": {
  81. "node": ">=12"
  82. },
  83. "standardx": {
  84. "ignore": [
  85. "build"
  86. ]
  87. },
  88. "__npminstall_done": true,
  89. "_from": "yargs-parser@21.0.1",
  90. "_resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-21.0.1.tgz"
  91. }