package.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "terser-webpack-plugin",
  3. "version": "5.2.5",
  4. "description": "Terser plugin for webpack",
  5. "license": "MIT",
  6. "repository": "webpack-contrib/terser-webpack-plugin",
  7. "author": "webpack Contrib Team",
  8. "homepage": "https://github.com/webpack-contrib/terser-webpack-plugin",
  9. "bugs": "https://github.com/webpack-contrib/terser-webpack-plugin/issues",
  10. "funding": {
  11. "type": "opencollective",
  12. "url": "https://opencollective.com/webpack"
  13. },
  14. "main": "dist/cjs.js",
  15. "types": "types/cjs.d.ts",
  16. "engines": {
  17. "node": ">= 10.13.0"
  18. },
  19. "scripts": {
  20. "clean": "del-cli dist types",
  21. "prebuild": "npm run clean",
  22. "build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write && node scripts/fix-types.js && prettier types --write",
  23. "build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files",
  24. "build": "npm-run-all -p \"build:**\"",
  25. "commitlint": "commitlint --from=master",
  26. "security": "npm audit --production",
  27. "lint:prettier": "prettier --list-different .",
  28. "lint:js": "eslint --cache .",
  29. "lint:types": "tsc --pretty --noEmit",
  30. "lint": "npm-run-all -l -p \"lint:**\"",
  31. "test:only": "cross-env NODE_ENV=test jest",
  32. "test:watch": "npm run test:only -- --watch",
  33. "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
  34. "pretest": "npm run lint",
  35. "test": "npm run test:coverage",
  36. "prepare": "husky install && npm run build",
  37. "release": "standard-version"
  38. },
  39. "files": [
  40. "dist",
  41. "types"
  42. ],
  43. "peerDependencies": {
  44. "webpack": "^5.1.0"
  45. },
  46. "peerDependenciesMeta": {
  47. "@swc/core": {
  48. "optional": true
  49. },
  50. "uglify-js": {
  51. "optional": true
  52. },
  53. "esbuild": {
  54. "optional": true
  55. }
  56. },
  57. "dependencies": {
  58. "jest-worker": "^27.0.6",
  59. "schema-utils": "^3.1.1",
  60. "serialize-javascript": "^6.0.0",
  61. "source-map": "^0.6.1",
  62. "terser": "^5.7.2"
  63. },
  64. "devDependencies": {
  65. "@babel/cli": "^7.14.8",
  66. "@babel/core": "^7.14.8",
  67. "@babel/preset-env": "^7.14.9",
  68. "@commitlint/cli": "^14.1.0",
  69. "@commitlint/config-conventional": "^14.1.0",
  70. "@swc/core": "^1.2.82",
  71. "@types/serialize-javascript": "^5.0.1",
  72. "@types/uglify-js": "^3.13.1",
  73. "@webpack-contrib/eslint-config-webpack": "^3.0.0",
  74. "babel-jest": "^27.0.6",
  75. "copy-webpack-plugin": "^9.0.1",
  76. "cross-env": "^7.0.3",
  77. "del": "^6.0.0",
  78. "del-cli": "^3.0.1",
  79. "esbuild": "^0.13.3",
  80. "eslint": "^7.32.0",
  81. "eslint-config-prettier": "^8.3.0",
  82. "eslint-plugin-import": "^2.24.2",
  83. "file-loader": "^6.2.0",
  84. "husky": "^7.0.2",
  85. "jest": "^27.0.6",
  86. "lint-staged": "^11.0.1",
  87. "memfs": "^3.2.2",
  88. "npm-run-all": "^4.1.5",
  89. "prettier": "^2.3.2",
  90. "standard-version": "^9.3.1",
  91. "typescript": "^4.3.5",
  92. "uglify-js": "^3.14.1",
  93. "webpack": "^5.48.0",
  94. "worker-loader": "^3.0.8"
  95. },
  96. "keywords": [
  97. "uglify",
  98. "uglify-js",
  99. "uglify-es",
  100. "terser",
  101. "webpack",
  102. "webpack-plugin",
  103. "minification",
  104. "compress",
  105. "compressor",
  106. "min",
  107. "minification",
  108. "minifier",
  109. "minify",
  110. "optimize",
  111. "optimizer"
  112. ]
  113. }