package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "name": "@rollup/plugin-commonjs",
  3. "version": "24.0.0",
  4. "publishConfig": {
  5. "access": "public"
  6. },
  7. "description": "Convert CommonJS modules to ES2015",
  8. "license": "MIT",
  9. "repository": {
  10. "url": "rollup/plugins",
  11. "directory": "packages/commonjs"
  12. },
  13. "author": "Rich Harris <richard.a.harris@gmail.com>",
  14. "homepage": "https://github.com/rollup/plugins/tree/master/packages/commonjs/#readme",
  15. "bugs": "https://github.com/rollup/plugins/issues",
  16. "main": "./dist/cjs/index.js",
  17. "module": "./dist/es/index.js",
  18. "exports": {
  19. "import": "./dist/es/index.js",
  20. "types": "./types/index.d.ts",
  21. "default": "./dist/cjs/index.js"
  22. },
  23. "engines": {
  24. "node": ">=14.0.0"
  25. },
  26. "scripts": {
  27. "build": "rollup -c",
  28. "ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
  29. "ci:lint": "pnpm build && pnpm lint",
  30. "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
  31. "ci:test": "pnpm test -- --verbose && pnpm test:ts",
  32. "prebuild": "del-cli dist",
  33. "prepare": "if [ ! -d 'dist' ]; then pnpm build; fi",
  34. "prepublishOnly": "pnpm build",
  35. "prerelease": "pnpm build",
  36. "pretest": "pnpm build",
  37. "release": "pnpm --workspace-root plugin:release --pkg $npm_package_name",
  38. "test": "ava",
  39. "test:ts": "tsc types/index.d.ts test/types.ts --noEmit"
  40. },
  41. "files": [
  42. "dist",
  43. "!dist/**/*.map",
  44. "types",
  45. "README.md",
  46. "LICENSE"
  47. ],
  48. "keywords": [
  49. "rollup",
  50. "plugin",
  51. "npm",
  52. "modules",
  53. "commonjs",
  54. "require"
  55. ],
  56. "peerDependencies": {
  57. "rollup": "^2.68.0||^3.0.0"
  58. },
  59. "peerDependenciesMeta": {
  60. "rollup": {
  61. "optional": true
  62. }
  63. },
  64. "dependencies": {
  65. "@rollup/pluginutils": "^5.0.1",
  66. "commondir": "^1.0.1",
  67. "estree-walker": "^2.0.2",
  68. "glob": "^8.0.3",
  69. "is-reference": "1.2.1",
  70. "magic-string": "^0.27.0"
  71. },
  72. "devDependencies": {
  73. "@rollup/plugin-json": "^5.0.0",
  74. "@rollup/plugin-node-resolve": "^15.0.0",
  75. "locate-character": "^2.0.5",
  76. "require-relative": "^0.8.7",
  77. "rollup": "3.0.0-7",
  78. "shx": "^0.3.4",
  79. "source-map": "^0.7.4",
  80. "source-map-support": "^0.5.21",
  81. "typescript": "^4.8.3"
  82. },
  83. "types": "./types/index.d.ts",
  84. "ava": {
  85. "workerThreads": false,
  86. "files": [
  87. "!**/fixtures/**",
  88. "!**/helpers/**",
  89. "!**/recipes/**",
  90. "!**/types.ts"
  91. ]
  92. }
  93. }