package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "name": "terser-webpack-plugin",
  3. "version": "5.3.16",
  4. "description": "Terser plugin for webpack",
  5. "keywords": [
  6. "uglify",
  7. "uglify-js",
  8. "uglify-es",
  9. "terser",
  10. "webpack",
  11. "webpack-plugin",
  12. "minification",
  13. "compress",
  14. "compressor",
  15. "min",
  16. "minification",
  17. "minifier",
  18. "minify",
  19. "optimize",
  20. "optimizer"
  21. ],
  22. "homepage": "https://github.com/webpack/terser-webpack-plugin",
  23. "bugs": "https://github.com/webpack/terser-webpack-plugin/issues",
  24. "repository": "webpack/terser-webpack-plugin",
  25. "funding": {
  26. "type": "opencollective",
  27. "url": "https://opencollective.com/webpack"
  28. },
  29. "license": "MIT",
  30. "author": "webpack Contrib Team",
  31. "main": "dist/index.js",
  32. "types": "types/index.d.ts",
  33. "files": [
  34. "dist",
  35. "types"
  36. ],
  37. "scripts": {
  38. "clean": "del-cli dist types",
  39. "prebuild": "npm run clean",
  40. "build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
  41. "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files",
  42. "build": "npm-run-all -p \"build:**\"",
  43. "commitlint": "commitlint --from=main",
  44. "security": "npm audit --production",
  45. "lint:prettier": "prettier --list-different .",
  46. "lint:code": "eslint --cache .",
  47. "lint:spelling": "cspell \"**/*.*\"",
  48. "lint:types": "tsc --pretty --noEmit",
  49. "lint": "npm-run-all -l -p \"lint:**\"",
  50. "fix:code": "npm run lint:code -- --fix",
  51. "fix:prettier": "npm run lint:prettier -- --write",
  52. "fix": "npm-run-all -l fix:code fix:prettier",
  53. "test:only": "cross-env NODE_ENV=test jest",
  54. "test:watch": "npm run test:only -- --watch",
  55. "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
  56. "pretest": "npm run lint",
  57. "test": "npm run test:coverage",
  58. "prepare": "husky install && npm run build",
  59. "release": "standard-version"
  60. },
  61. "dependencies": {
  62. "@jridgewell/trace-mapping": "^0.3.25",
  63. "jest-worker": "^27.4.5",
  64. "schema-utils": "^4.3.0",
  65. "serialize-javascript": "^6.0.2",
  66. "terser": "^5.31.1"
  67. },
  68. "devDependencies": {
  69. "@babel/cli": "^7.24.7",
  70. "@babel/core": "^7.24.7",
  71. "@babel/preset-env": "^7.24.7",
  72. "@commitlint/cli": "^17.7.1",
  73. "@commitlint/config-conventional": "^17.7.0",
  74. "@eslint/js": "^9.29.0",
  75. "@eslint/markdown": "^7.1.0",
  76. "@stylistic/eslint-plugin": "^5.2.2",
  77. "@swc/core": "^1.3.102",
  78. "@types/node": "^24.2.1",
  79. "@types/serialize-javascript": "^5.0.2",
  80. "@types/uglify-js": "^3.17.5",
  81. "copy-webpack-plugin": "^9.0.1",
  82. "cross-env": "^7.0.3",
  83. "cspell": "^6.31.2",
  84. "del": "^6.0.0",
  85. "del-cli": "^3.0.1",
  86. "esbuild": "^0.25.0",
  87. "eslint": "^9.29.0",
  88. "eslint-config-prettier": "^10.1.1",
  89. "eslint-config-webpack": "^4.5.1",
  90. "eslint-plugin-import": "^2.32.0",
  91. "eslint-plugin-jest": "^29.0.1",
  92. "eslint-plugin-jsdoc": "^54.0.0",
  93. "eslint-plugin-n": "^17.21.0",
  94. "eslint-plugin-prettier": "^5.5.0",
  95. "eslint-plugin-unicorn": "^60.0.0",
  96. "file-loader": "^6.2.0",
  97. "husky": "^7.0.2",
  98. "jest": "^27.5.1",
  99. "lint-staged": "^13.2.3",
  100. "memfs": "^3.4.13",
  101. "npm-run-all": "^4.1.5",
  102. "prettier": "^3.6.0",
  103. "prettier-2": "npm:prettier@^2",
  104. "standard-version": "^9.3.1",
  105. "typescript": "^5.9.2",
  106. "typescript-eslint": "^8.39.1",
  107. "uglify-js": "^3.19.3",
  108. "webpack": "^5.101.0",
  109. "webpack-cli": "^4.10.0",
  110. "worker-loader": "^3.0.8"
  111. },
  112. "peerDependencies": {
  113. "webpack": "^5.1.0"
  114. },
  115. "peerDependenciesMeta": {
  116. "@swc/core": {
  117. "optional": true
  118. },
  119. "uglify-js": {
  120. "optional": true
  121. },
  122. "esbuild": {
  123. "optional": true
  124. }
  125. },
  126. "engines": {
  127. "node": ">= 10.13.0"
  128. }
  129. }