package.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. {
  2. "_from": "rollup@4.16.4",
  3. "_id": "rollup@4.16.4",
  4. "_inBundle": false,
  5. "_integrity": "sha512-kuaTJSUbz+Wsb2ATGvEknkI12XV40vIiHmLuFlejoo7HtDok/O5eDDD0UpCVY5bBX5U5RYo8wWP83H7ZsqVEnA==",
  6. "_location": "/rollup",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "version",
  10. "registry": true,
  11. "raw": "rollup@4.16.4",
  12. "name": "rollup",
  13. "escapedName": "rollup",
  14. "rawSpec": "4.16.4",
  15. "saveSpec": null,
  16. "fetchSpec": "4.16.4"
  17. },
  18. "_requiredBy": [
  19. "/vite"
  20. ],
  21. "_resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.16.4.tgz",
  22. "_shasum": "fe328eb41293f20c9593a095ec23bdc4b5d93317",
  23. "_spec": "rollup@4.16.4",
  24. "_where": "/Users/mac/Documents/file/盛磊/发票/ocr-invoice/node_modules/vite",
  25. "author": {
  26. "name": "Rich Harris"
  27. },
  28. "bin": {
  29. "rollup": "dist/bin/rollup"
  30. },
  31. "bugs": {
  32. "url": "https://github.com/rollup/rollup/issues"
  33. },
  34. "bundleDependencies": false,
  35. "dependencies": {
  36. "@rollup/rollup-android-arm-eabi": "4.16.4",
  37. "@rollup/rollup-android-arm64": "4.16.4",
  38. "@rollup/rollup-darwin-arm64": "4.16.4",
  39. "@rollup/rollup-darwin-x64": "4.16.4",
  40. "@rollup/rollup-linux-arm-gnueabihf": "4.16.4",
  41. "@rollup/rollup-linux-arm-musleabihf": "4.16.4",
  42. "@rollup/rollup-linux-arm64-gnu": "4.16.4",
  43. "@rollup/rollup-linux-arm64-musl": "4.16.4",
  44. "@rollup/rollup-linux-powerpc64le-gnu": "4.16.4",
  45. "@rollup/rollup-linux-riscv64-gnu": "4.16.4",
  46. "@rollup/rollup-linux-s390x-gnu": "4.16.4",
  47. "@rollup/rollup-linux-x64-gnu": "4.16.4",
  48. "@rollup/rollup-linux-x64-musl": "4.16.4",
  49. "@rollup/rollup-win32-arm64-msvc": "4.16.4",
  50. "@rollup/rollup-win32-ia32-msvc": "4.16.4",
  51. "@rollup/rollup-win32-x64-msvc": "4.16.4",
  52. "@types/estree": "1.0.5",
  53. "fsevents": "~2.3.2"
  54. },
  55. "deprecated": false,
  56. "description": "Next-generation ES module bundler",
  57. "devDependencies": {
  58. "@codemirror/commands": "^6.3.3",
  59. "@codemirror/lang-javascript": "^6.2.2",
  60. "@codemirror/language": "^6.10.1",
  61. "@codemirror/search": "^6.5.6",
  62. "@codemirror/state": "^6.4.1",
  63. "@codemirror/view": "^6.26.3",
  64. "@jridgewell/sourcemap-codec": "^1.4.15",
  65. "@mermaid-js/mermaid-cli": "^10.8.0",
  66. "@napi-rs/cli": "^2.18.1",
  67. "@rollup/plugin-alias": "^5.1.0",
  68. "@rollup/plugin-buble": "^1.0.3",
  69. "@rollup/plugin-commonjs": "^25.0.7",
  70. "@rollup/plugin-json": "^6.1.0",
  71. "@rollup/plugin-node-resolve": "^15.2.3",
  72. "@rollup/plugin-replace": "^5.0.5",
  73. "@rollup/plugin-terser": "^0.4.4",
  74. "@rollup/plugin-typescript": "^11.1.6",
  75. "@rollup/pluginutils": "^5.1.0",
  76. "@shikijs/vitepress-twoslash": "^1.3.0",
  77. "@types/eslint": "^8.56.9",
  78. "@types/inquirer": "^9.0.7",
  79. "@types/mocha": "^10.0.6",
  80. "@types/node": "~18.18.14",
  81. "@types/yargs-parser": "^21.0.3",
  82. "@typescript-eslint/eslint-plugin": "^7.7.0",
  83. "@typescript-eslint/parser": "^7.7.0",
  84. "@vue/eslint-config-prettier": "^9.0.0",
  85. "@vue/eslint-config-typescript": "^13.0.0",
  86. "acorn": "^8.11.3",
  87. "acorn-import-assertions": "^1.9.0",
  88. "buble": "^0.20.0",
  89. "builtin-modules": "^3.3.0",
  90. "chokidar": "^3.6.0",
  91. "colorette": "^2.0.20",
  92. "concurrently": "^8.2.2",
  93. "core-js": "3.36.0",
  94. "date-time": "^4.0.0",
  95. "es5-shim": "^4.6.7",
  96. "es6-shim": "^0.35.8",
  97. "eslint": "^8.57.0",
  98. "eslint-config-prettier": "^9.1.0",
  99. "eslint-plugin-import": "^2.29.1",
  100. "eslint-plugin-prettier": "^5.1.3",
  101. "eslint-plugin-unicorn": "^52.0.0",
  102. "eslint-plugin-vue": "^9.25.0",
  103. "fixturify": "^3.0.0",
  104. "flru": "^1.0.2",
  105. "fs-extra": "^11.2.0",
  106. "github-api": "^3.4.0",
  107. "husky": "^9.0.11",
  108. "inquirer": "^9.2.18",
  109. "is-reference": "^3.0.2",
  110. "lint-staged": "^15.2.2",
  111. "locate-character": "^3.0.0",
  112. "magic-string": "^0.30.9",
  113. "mocha": "^10.4.0",
  114. "nyc": "^15.1.0",
  115. "pinia": "^2.1.7",
  116. "prettier": "^3.2.5",
  117. "pretty-bytes": "^6.1.1",
  118. "pretty-ms": "^9.0.0",
  119. "requirejs": "^2.3.6",
  120. "rollup": "^4.14.3",
  121. "rollup-plugin-license": "^3.3.1",
  122. "rollup-plugin-string": "^3.0.0",
  123. "semver": "^7.6.0",
  124. "shx": "^0.3.4",
  125. "signal-exit": "^4.1.0",
  126. "source-map": "^0.7.4",
  127. "source-map-support": "^0.5.21",
  128. "systemjs": "^6.14.3",
  129. "terser": "^5.30.3",
  130. "tslib": "^2.6.2",
  131. "typescript": "^5.4.5",
  132. "vite": "^5.2.9",
  133. "vitepress": "^1.1.0",
  134. "vue": "^3.4.22",
  135. "wasm-pack": "^0.12.1",
  136. "weak-napi": "^2.0.2",
  137. "yargs-parser": "^21.1.1"
  138. },
  139. "devDependenciesComments": {
  140. "@types/node": "Version 18.19.0 breaks chokidar and vite types",
  141. "core-js": "We only update manually as every update requires a snapshot update"
  142. },
  143. "engines": {
  144. "node": ">=18.0.0",
  145. "npm": ">=8.0.0"
  146. },
  147. "exports": {
  148. ".": {
  149. "types": "./dist/rollup.d.ts",
  150. "require": "./dist/rollup.js",
  151. "import": "./dist/es/rollup.js"
  152. },
  153. "./loadConfigFile": {
  154. "types": "./dist/loadConfigFile.d.ts",
  155. "require": "./dist/loadConfigFile.js",
  156. "default": "./dist/loadConfigFile.js"
  157. },
  158. "./getLogFilter": {
  159. "types": "./dist/getLogFilter.d.ts",
  160. "require": "./dist/getLogFilter.js",
  161. "import": "./dist/es/getLogFilter.js"
  162. },
  163. "./parseAst": {
  164. "types": "./dist/parseAst.d.ts",
  165. "require": "./dist/parseAst.js",
  166. "import": "./dist/es/parseAst.js"
  167. },
  168. "./dist/*": "./dist/*"
  169. },
  170. "files": [
  171. "dist/*.node",
  172. "dist/**/*.js",
  173. "dist/*.d.ts",
  174. "dist/bin/rollup",
  175. "dist/es/package.json"
  176. ],
  177. "homepage": "https://rollupjs.org/",
  178. "keywords": [
  179. "modules",
  180. "bundler",
  181. "bundling",
  182. "es6",
  183. "optimizer"
  184. ],
  185. "license": "MIT",
  186. "main": "dist/rollup.js",
  187. "module": "dist/es/rollup.js",
  188. "name": "rollup",
  189. "napi": {
  190. "name": "rollup",
  191. "package": {
  192. "name": "@rollup/rollup"
  193. },
  194. "triples": {
  195. "defaults": false,
  196. "additional": [
  197. "aarch64-apple-darwin",
  198. "aarch64-linux-android",
  199. "aarch64-pc-windows-msvc",
  200. "aarch64-unknown-linux-gnu",
  201. "aarch64-unknown-linux-musl",
  202. "armv7-linux-androideabi",
  203. "armv7-unknown-linux-gnueabihf",
  204. "armv7-unknown-linux-musleabihf",
  205. "i686-pc-windows-msvc",
  206. "riscv64gc-unknown-linux-gnu",
  207. "powerpc64le-unknown-linux-gnu",
  208. "s390x-unknown-linux-gnu",
  209. "x86_64-apple-darwin",
  210. "x86_64-pc-windows-msvc",
  211. "x86_64-unknown-linux-gnu",
  212. "x86_64-unknown-linux-musl"
  213. ]
  214. }
  215. },
  216. "optionalDependencies": {
  217. "@rollup/rollup-android-arm-eabi": "4.16.4",
  218. "@rollup/rollup-android-arm64": "4.16.4",
  219. "@rollup/rollup-darwin-arm64": "4.16.4",
  220. "@rollup/rollup-darwin-x64": "4.16.4",
  221. "@rollup/rollup-linux-arm-gnueabihf": "4.16.4",
  222. "@rollup/rollup-linux-arm-musleabihf": "4.16.4",
  223. "@rollup/rollup-linux-arm64-gnu": "4.16.4",
  224. "@rollup/rollup-linux-arm64-musl": "4.16.4",
  225. "@rollup/rollup-linux-powerpc64le-gnu": "4.16.4",
  226. "@rollup/rollup-linux-riscv64-gnu": "4.16.4",
  227. "@rollup/rollup-linux-s390x-gnu": "4.16.4",
  228. "@rollup/rollup-linux-x64-gnu": "4.16.4",
  229. "@rollup/rollup-linux-x64-musl": "4.16.4",
  230. "@rollup/rollup-win32-arm64-msvc": "4.16.4",
  231. "@rollup/rollup-win32-ia32-msvc": "4.16.4",
  232. "@rollup/rollup-win32-x64-msvc": "4.16.4",
  233. "fsevents": "~2.3.2"
  234. },
  235. "overrides": {
  236. "axios": "^1.6.8",
  237. "semver": "^7.6.0"
  238. },
  239. "repository": {
  240. "type": "git",
  241. "url": "git+https://github.com/rollup/rollup.git"
  242. },
  243. "scripts": {
  244. "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",
  245. "build:ast-converters": "node scripts/generate-ast-converters.js",
  246. "build:bootstrap": "shx mv dist dist-build && node dist-build/bin/rollup --config rollup.config.ts --configPlugin typescript --forceExit && shx rm -rf dist-build",
  247. "build:cjs": "rollup --config rollup.config.ts --configPlugin typescript --configTest --forceExit",
  248. "build:copy-native": "shx mkdir -p dist && shx cp rollup.*.node dist/",
  249. "build:docs": "vitepress build docs",
  250. "build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
  251. "build:js:node": "rollup --config rollup.config.ts --configPlugin typescript --configIsBuildNode --forceExit",
  252. "build:napi": "napi build --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
  253. "build:prepare": "concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js:node\" && npm run build:copy-native",
  254. "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
  255. "build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
  256. "build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
  257. "ci:artifacts": "napi artifacts",
  258. "ci:coverage": "npm run build:cjs && npm run build:copy-native && npm run build:bootstrap && npm run build:copy-native && nyc --reporter lcovonly mocha",
  259. "ci:lint": "concurrently -c red,yellow,green,blue 'npm:lint:js:nofix' 'npm:lint:native-js' 'npm:lint:markdown:nofix' 'npm:lint:rust:nofix'",
  260. "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'",
  261. "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",
  262. "dev": "vitepress dev docs",
  263. "lint": "concurrently -c red,yellow,green,blue 'npm:lint:js' 'npm:lint:native-js' 'npm:lint:markdown' 'npm:lint:rust'",
  264. "lint:js": "eslint . --fix --cache",
  265. "lint:js:nofix": "eslint . --cache",
  266. "lint:markdown": "prettier --write \"**/*.md\"",
  267. "lint:markdown:nofix": "prettier --check \"**/*.md\"",
  268. "lint:native-js": "node scripts/lint-native-js.js",
  269. "lint:rust": "cd rust && cargo fmt && cargo clippy --fix --allow-dirty",
  270. "lint:rust:nofix": "cd rust && cargo fmt --check && cargo clippy",
  271. "perf": "npm run build && node --expose-gc scripts/perf.js",
  272. "postpublish": "node scripts/postpublish.js",
  273. "prepare": "husky && node scripts/check-release.js || npm run build:prepare",
  274. "prepublish:napi": "napi prepublish --skip-gh-release",
  275. "prepublishOnly": "node scripts/check-release.js && node scripts/prepublish.js",
  276. "preview:docs": "vitepress preview docs",
  277. "release": "node scripts/prepare-release.js",
  278. "release:docs": "git fetch --update-head-ok origin master:master && git branch --force documentation-published master && git push origin documentation-published",
  279. "test": "npm run build && npm run test:all",
  280. "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'",
  281. "test:browser": "mocha test/browser/index.js",
  282. "test:cjs": "npm run build:cjs && npm run test:only",
  283. "test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
  284. "test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
  285. "test:leak": "node --expose-gc test/leak/index.js",
  286. "test:only": "mocha test/test.js",
  287. "test:options": "node scripts/test-options.js",
  288. "test:package": "node scripts/test-package.js",
  289. "test:quick": "mocha -b test/test.js",
  290. "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",
  291. "test:update-snapshots": "node scripts/update-snapshots.js",
  292. "update:js": "npm run build:js && npm run build:copy-native",
  293. "update:napi": "npm run build:napi && npm run build:copy-native",
  294. "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
  295. },
  296. "types": "dist/rollup.d.ts",
  297. "version": "4.16.4",
  298. "warnings": [
  299. {
  300. "code": "ENOTSUP",
  301. "required": {
  302. "node": ">=18.0.0",
  303. "npm": ">=8.0.0"
  304. },
  305. "pkgid": "rollup@4.16.4"
  306. }
  307. ]
  308. }