package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "name": "cac",
  3. "version": "6.7.9",
  4. "description": "Simple yet powerful framework for building command-line apps.",
  5. "repository": {
  6. "url": "egoist/cac",
  7. "type": "git"
  8. },
  9. "main": "dist/index.js",
  10. "module": "dist/index.mjs",
  11. "types": "dist/index.d.ts",
  12. "exports": {
  13. ".": {
  14. "import": "./dist/index.mjs",
  15. "require": "./dist/index.js"
  16. },
  17. "./package.json": "./package.json",
  18. "./": "./"
  19. },
  20. "files": [
  21. "dist",
  22. "!**/__test__/**",
  23. "/mod.js",
  24. "/mod.ts",
  25. "/deno"
  26. ],
  27. "scripts": {
  28. "test": "jest",
  29. "test:cov": "jest --coverage",
  30. "build:deno": "node -r sucrase/register scripts/build-deno.ts",
  31. "build:node": "rollup -c",
  32. "build": "yarn build:deno && yarn build:node",
  33. "toc": "markdown-toc -i README.md",
  34. "prepublishOnly": "npm run build && cp mod.js mod.mjs",
  35. "docs:api": "typedoc --out api-doc --readme none --exclude \"**/__test__/**\" --theme minimal"
  36. },
  37. "author": "egoist <0x142857@gmail.com>",
  38. "license": "MIT",
  39. "devDependencies": {
  40. "@babel/core": "^7.12.10",
  41. "@babel/plugin-syntax-typescript": "^7.12.1",
  42. "@rollup/plugin-commonjs": "^17.0.0",
  43. "@rollup/plugin-node-resolve": "^11.0.0",
  44. "@types/fs-extra": "^9.0.5",
  45. "@types/jest": "^26.0.19",
  46. "@types/mri": "^1.1.0",
  47. "cz-conventional-changelog": "^2.1.0",
  48. "esbuild": "^0.8.21",
  49. "eslint-config-rem": "^3.0.0",
  50. "execa": "^5.0.0",
  51. "fs-extra": "^9.0.1",
  52. "globby": "^11.0.1",
  53. "husky": "^1.2.0",
  54. "jest": "^24.9.0",
  55. "lint-staged": "^8.1.0",
  56. "markdown-toc": "^1.2.0",
  57. "mri": "^1.1.6",
  58. "prettier": "^2.2.1",
  59. "rollup": "^2.34.2",
  60. "rollup-plugin-dts": "^2.0.1",
  61. "rollup-plugin-esbuild": "^2.6.1",
  62. "semantic-release": "^17.3.0",
  63. "sucrase": "^3.16.0",
  64. "ts-jest": "^26.4.4",
  65. "ts-node": "^9.1.1",
  66. "typedoc": "^0.19.2",
  67. "typescript": "^4.1.2"
  68. },
  69. "engines": {
  70. "node": ">=8"
  71. },
  72. "release": {
  73. "branch": "master"
  74. },
  75. "config": {
  76. "commitizen": {
  77. "path": "./node_modules/cz-conventional-changelog"
  78. }
  79. },
  80. "lint-staged": {
  81. "linters": {
  82. "*.{js,json,ts}": [
  83. "prettier --write",
  84. "git add"
  85. ],
  86. "*.md": [
  87. "markdown-toc -i",
  88. "prettier --write",
  89. "git add"
  90. ]
  91. },
  92. "ignore": [
  93. "dist/**",
  94. "mod.js"
  95. ]
  96. },
  97. "husky": {
  98. "hooks": {
  99. "pre-commit": "npm t && lint-staged"
  100. }
  101. }
  102. }