package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. {
  2. "name": "rollup",
  3. "version": "4.50.1",
  4. "description": "Next-generation ES module bundler",
  5. "main": "dist/rollup.js",
  6. "module": "dist/es/rollup.js",
  7. "types": "dist/rollup.d.ts",
  8. "bin": {
  9. "rollup": "dist/bin/rollup"
  10. },
  11. "napi": {
  12. "binaryName": "rollup",
  13. "packageName": "@rollup/rollup",
  14. "targets": [
  15. "aarch64-apple-darwin",
  16. "aarch64-linux-android",
  17. "aarch64-pc-windows-msvc",
  18. "aarch64-unknown-freebsd",
  19. "aarch64-unknown-linux-gnu",
  20. "aarch64-unknown-linux-musl",
  21. "armv7-linux-androideabi",
  22. "armv7-unknown-linux-gnueabihf",
  23. "armv7-unknown-linux-musleabihf",
  24. "i686-pc-windows-msvc",
  25. "loongarch64-unknown-linux-gnu",
  26. "riscv64gc-unknown-linux-gnu",
  27. "riscv64gc-unknown-linux-musl",
  28. "powerpc64le-unknown-linux-gnu",
  29. "s390x-unknown-linux-gnu",
  30. "x86_64-apple-darwin",
  31. "x86_64-pc-windows-msvc",
  32. "x86_64-unknown-freebsd",
  33. "x86_64-unknown-linux-gnu",
  34. "x86_64-unknown-linux-musl",
  35. "aarch64-unknown-linux-ohos"
  36. ]
  37. },
  38. "scripts": {
  39. "build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
  40. "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
  41. "build:napi": "napi build --cwd rust/bindings_napi --platform --dts ../../native.d.ts --no-js --output-dir ../.. --package-json-path ../../package.json",
  42. "build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
  43. "build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
  44. "update:napi": "npm run build:napi && npm run build:copy-native",
  45. "build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
  46. "build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
  47. "build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
  48. "update:js": "npm run build:js && npm run build:copy-native",
  49. "build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
  50. "dev": "concurrently -kc green,blue 'nodemon --watch rust -e rs --exec \"npm run build:wasm\"' 'vitepress dev docs'",
  51. "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
  52. "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
  53. "build:bootstrap:cjs": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit && shx rm -rf dist-build",
  54. "build:docs": "vitepress build docs",
  55. "build:ast-converters": "node scripts/generate-ast-converters.js",
  56. "preview:docs": "vitepress preview docs",
  57. "ci:artifacts": "napi artifacts",
  58. "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
  59. "ci:test:only": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && npm run test:only",
  60. "ci:test:all": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && concurrently --kill-others-on-fail -c green,blue,magenta,cyan 'npm:test:only' 'npm:test:typescript' 'npm:test:leak' 'npm:test:browser'",
  61. "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && NODE_OPTIONS=--no-experimental-require-module nyc --reporter lcovonly mocha",
  62. "lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
  63. "lint:js": "eslint . --fix --cache",
  64. "lint:js:nofix": "eslint . --cache",
  65. "lint:native-js": "node scripts/lint-native-js.js",
  66. "lint:markdown": "prettier --write \"**/*.md\"",
  67. "lint:markdown:nofix": "prettier --check \"**/*.md\"",
  68. "lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
  69. "lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
  70. "perf": "npm run build:bootstrap:cjs && node --expose-gc scripts/perf-report/index.js",
  71. "prepare": "husky && node scripts/check-release.js || npm run build:prepare",
  72. "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
  73. "postpublish": "node scripts/postpublish.js",
  74. "prepublish:napi": "napi prepublish --no-gh-release",
  75. "release": "node scripts/prepare-release.js",
  76. "release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
  77. "test": "npm run build && npm run test:all",
  78. "test:update-snapshots": "node scripts/update-snapshots.js",
  79. "test:cjs": "npm run build:cjs && npm run test:only",
  80. "test:quick": "mocha -b test/test.js",
  81. "test:all": "concurrently --kill-others-on-fail -c green,blue,magenta,cyan,red 'npm:test:only' 'npm:test:browser' 'npm:test:typescript' 'npm:test:package' 'npm:test:options'",
  82. "test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
  83. "test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
  84. "test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
  85. "test:package": "node scripts/test-package.js",
  86. "test:options": "node scripts/test-options.js",
  87. "test:only": "mocha test/test.js",
  88. "test:typescript": "shx rm -rf test/typescript/dist && shx cp -r dist test/typescript/ && tsc --noEmit -p test/typescript && tsc --noEmit && tsc --noEmit -p scripts",
  89. "test:browser": "mocha test/browser/index.js",
  90. "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
  91. },
  92. "repository": "rollup/rollup",
  93. "keywords": [
  94. "modules",
  95. "bundler",
  96. "bundling",
  97. "es6",
  98. "optimizer"
  99. ],
  100. "author": "Rich Harris",
  101. "license": "MIT",
  102. "bugs": {
  103. "url": "https://github.com/rollup/rollup/issues"
  104. },
  105. "homepage": "https://rollupjs.org/",
  106. "optionalDependencies": {
  107. "fsevents": "~2.3.2",
  108. "@rollup/rollup-darwin-arm64": "4.50.1",
  109. "@rollup/rollup-android-arm64": "4.50.1",
  110. "@rollup/rollup-win32-arm64-msvc": "4.50.1",
  111. "@rollup/rollup-freebsd-arm64": "4.50.1",
  112. "@rollup/rollup-linux-arm64-gnu": "4.50.1",
  113. "@rollup/rollup-linux-arm64-musl": "4.50.1",
  114. "@rollup/rollup-android-arm-eabi": "4.50.1",
  115. "@rollup/rollup-linux-arm-gnueabihf": "4.50.1",
  116. "@rollup/rollup-linux-arm-musleabihf": "4.50.1",
  117. "@rollup/rollup-win32-ia32-msvc": "4.50.1",
  118. "@rollup/rollup-linux-loongarch64-gnu": "4.50.1",
  119. "@rollup/rollup-linux-riscv64-gnu": "4.50.1",
  120. "@rollup/rollup-linux-riscv64-musl": "4.50.1",
  121. "@rollup/rollup-linux-ppc64-gnu": "4.50.1",
  122. "@rollup/rollup-linux-s390x-gnu": "4.50.1",
  123. "@rollup/rollup-darwin-x64": "4.50.1",
  124. "@rollup/rollup-win32-x64-msvc": "4.50.1",
  125. "@rollup/rollup-freebsd-x64": "4.50.1",
  126. "@rollup/rollup-linux-x64-gnu": "4.50.1",
  127. "@rollup/rollup-linux-x64-musl": "4.50.1",
  128. "@rollup/rollup-openharmony-arm64": "4.50.1"
  129. },
  130. "dependencies": {
  131. "@types/estree": "1.0.8"
  132. },
  133. "devDependenciesComments": {
  134. "core-js": "We only update manually as every update requires a snapshot update"
  135. },
  136. "devDependencies": {
  137. "@codemirror/commands": "^6.8.1",
  138. "@codemirror/lang-javascript": "^6.2.4",
  139. "@codemirror/language": "^6.11.3",
  140. "@codemirror/search": "^6.5.11",
  141. "@codemirror/state": "^6.5.2",
  142. "@codemirror/view": "^6.38.2",
  143. "@eslint/js": "^9.34.0",
  144. "@inquirer/prompts": "^7.8.4",
  145. "@jridgewell/sourcemap-codec": "^1.5.5",
  146. "@mermaid-js/mermaid-cli": "^11.9.0",
  147. "@napi-rs/cli": "^3.1.5",
  148. "@rollup/plugin-alias": "^5.1.1",
  149. "@rollup/plugin-buble": "^1.0.3",
  150. "@rollup/plugin-commonjs": "^28.0.6",
  151. "@rollup/plugin-json": "^6.1.0",
  152. "@rollup/plugin-node-resolve": "^16.0.1",
  153. "@rollup/plugin-replace": "^6.0.2",
  154. "@rollup/plugin-terser": "^0.4.4",
  155. "@rollup/plugin-typescript": "^12.1.4",
  156. "@rollup/pluginutils": "^5.2.0",
  157. "@shikijs/vitepress-twoslash": "^3.12.1",
  158. "@types/mocha": "^10.0.10",
  159. "@types/node": "^20.19.11",
  160. "@types/picomatch": "^4.0.2",
  161. "@types/semver": "^7.7.0",
  162. "@types/yargs-parser": "^21.0.3",
  163. "@vue/language-server": "^3.0.6",
  164. "acorn": "^8.15.0",
  165. "acorn-import-assertions": "^1.9.0",
  166. "acorn-jsx": "^5.3.2",
  167. "buble": "^0.20.0",
  168. "builtin-modules": "^5.0.0",
  169. "chokidar": "^3.6.0",
  170. "concurrently": "^9.2.1",
  171. "core-js": "3.38.1",
  172. "cross-env": "^10.0.0",
  173. "date-time": "^4.0.0",
  174. "es5-shim": "^4.6.7",
  175. "es6-shim": "^0.35.8",
  176. "eslint": "^9.34.0",
  177. "eslint-config-prettier": "^10.1.8",
  178. "eslint-plugin-prettier": "^5.5.4",
  179. "eslint-plugin-unicorn": "^60.0.0",
  180. "eslint-plugin-vue": "^10.4.0",
  181. "fixturify": "^3.0.0",
  182. "flru": "^1.0.2",
  183. "fs-extra": "^11.3.1",
  184. "github-api": "^3.4.0",
  185. "globals": "^16.3.0",
  186. "husky": "^9.1.7",
  187. "is-reference": "^3.0.3",
  188. "lint-staged": "^16.1.6",
  189. "locate-character": "^3.0.0",
  190. "magic-string": "^0.30.18",
  191. "memfs": "^4.38.2",
  192. "mocha": "^11.7.2",
  193. "nodemon": "^3.1.10",
  194. "nyc": "^17.1.0",
  195. "picocolors": "^1.1.1",
  196. "picomatch": "^4.0.3",
  197. "pinia": "^3.0.3",
  198. "prettier": "^3.6.2",
  199. "prettier-plugin-organize-imports": "^4.2.0",
  200. "pretty-bytes": "^7.0.1",
  201. "pretty-ms": "^9.2.0",
  202. "requirejs": "^2.3.7",
  203. "rollup": "^4.50.0",
  204. "rollup-plugin-license": "^3.6.0",
  205. "rollup-plugin-string": "^3.0.0",
  206. "semver": "^7.7.2",
  207. "shx": "^0.4.0",
  208. "signal-exit": "^4.1.0",
  209. "source-map": "^0.7.6",
  210. "source-map-support": "^0.5.21",
  211. "systemjs": "^6.15.1",
  212. "terser": "^5.43.1",
  213. "tslib": "^2.8.1",
  214. "typescript": "^5.9.2",
  215. "typescript-eslint": "^8.41.0",
  216. "vite": "^7.1.4",
  217. "vitepress": "^1.6.4",
  218. "vue": "^3.5.20",
  219. "vue-eslint-parser": "^10.2.0",
  220. "vue-tsc": "^2.2.12",
  221. "wasm-pack": "^0.13.1",
  222. "yargs-parser": "^21.1.1"
  223. },
  224. "overrides": {
  225. "axios": "^1.11.0",
  226. "semver": "^7.7.2",
  227. "readable-stream": "npm:@built-in/readable-stream@1",
  228. "esbuild": ">0.24.2"
  229. },
  230. "comments": {
  231. "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
  232. },
  233. "files": [
  234. "dist/*.node",
  235. "dist/**/*.js",
  236. "dist/*.d.ts",
  237. "dist/bin/rollup",
  238. "dist/es/package.json"
  239. ],
  240. "engines": {
  241. "node": ">=18.0.0",
  242. "npm": ">=8.0.0"
  243. },
  244. "exports": {
  245. ".": {
  246. "types": "./dist/rollup.d.ts",
  247. "import": "./dist/es/rollup.js",
  248. "require": "./dist/rollup.js"
  249. },
  250. "./loadConfigFile": {
  251. "types": "./dist/loadConfigFile.d.ts",
  252. "require": "./dist/loadConfigFile.js",
  253. "default": "./dist/loadConfigFile.js"
  254. },
  255. "./getLogFilter": {
  256. "types": "./dist/getLogFilter.d.ts",
  257. "import": "./dist/es/getLogFilter.js",
  258. "require": "./dist/getLogFilter.js"
  259. },
  260. "./parseAst": {
  261. "types": "./dist/parseAst.d.ts",
  262. "import": "./dist/es/parseAst.js",
  263. "require": "./dist/parseAst.js"
  264. },
  265. "./dist/*": "./dist/*",
  266. "./package.json": "./package.json"
  267. }
  268. }