package.json 2.5 KB

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