package.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "name": "hcny",
  3. "type": "module",
  4. "version": "0.2.3",
  5. "packageManager": "pnpm@8.6.0",
  6. "description": "npm、yarn的 私有npm仓库的镜像源切换工具",
  7. "license": "MIT",
  8. "keywords": [
  9. "npm",
  10. "registry",
  11. "toggle",
  12. "yarn"
  13. ],
  14. "main": "./dist/index.js",
  15. "module": "./dist/index.js",
  16. "bin": {
  17. "hcny": "dist/index.js",
  18. "hnrm": "dist/index.js",
  19. "hyrm": "dist/yrm.js",
  20. "hprm": "dist/prm.js"
  21. },
  22. "files": [
  23. "dist",
  24. "LICENSE",
  25. "README.md",
  26. "registries.json"
  27. ],
  28. "engines": {
  29. "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
  30. },
  31. "scripts": {
  32. "build": "tsup",
  33. "coverage": "vitest run --coverage",
  34. "dev": "tsup --watch",
  35. "lint": "eslint .",
  36. "ls": "node dist/index.js ls",
  37. "play": "node dist/index.js",
  38. "prepublishOnly": "npm run build"
  39. },
  40. "devDependencies": {
  41. "@antfu/eslint-config": "^0.39.4",
  42. "@vitest/coverage-c8": "^0.31.3",
  43. "bumpp": "^9.1.0",
  44. "cac": "^6.7.14",
  45. "eslint": "^8.41.0",
  46. "execa": "^7.1.1",
  47. "lint-staged": "^13.2.2",
  48. "node-fetch": "^3.3.1",
  49. "picocolors": "^1.0.0",
  50. "simple-git-hooks": "^2.8.1",
  51. "tsup": "^6.7.0",
  52. "typescript": "^5.0.4",
  53. "vitest": "^0.31.3"
  54. },
  55. "simple-git-hooks": {
  56. "pre-commit": "pnpm lint-staged"
  57. },
  58. "lint-staged": {
  59. "*": "eslint --fix"
  60. }
  61. }