[d565449] | 1 | {
|
---|
| 2 | "name": "rollup",
|
---|
| 3 | "version": "4.20.0",
|
---|
| 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 | "name": "rollup",
|
---|
| 13 | "package": {
|
---|
| 14 | "name": "@rollup/rollup"
|
---|
| 15 | },
|
---|
| 16 | "triples": {
|
---|
| 17 | "defaults": false,
|
---|
| 18 | "additional": [
|
---|
| 19 | "aarch64-apple-darwin",
|
---|
| 20 | "aarch64-linux-android",
|
---|
| 21 | "aarch64-pc-windows-msvc",
|
---|
| 22 | "aarch64-unknown-linux-gnu",
|
---|
| 23 | "aarch64-unknown-linux-musl",
|
---|
| 24 | "armv7-linux-androideabi",
|
---|
| 25 | "armv7-unknown-linux-gnueabihf",
|
---|
| 26 | "armv7-unknown-linux-musleabihf",
|
---|
| 27 | "i686-pc-windows-msvc",
|
---|
| 28 | "riscv64gc-unknown-linux-gnu",
|
---|
| 29 | "powerpc64le-unknown-linux-gnu",
|
---|
| 30 | "s390x-unknown-linux-gnu",
|
---|
| 31 | "x86_64-apple-darwin",
|
---|
| 32 | "x86_64-pc-windows-msvc",
|
---|
| 33 | "x86_64-unknown-linux-gnu",
|
---|
| 34 | "x86_64-unknown-linux-musl"
|
---|
| 35 | ]
|
---|
| 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 --platform --dts native.d.ts --js false --cargo-cwd rust -p bindings_napi --cargo-name bindings_napi",
|
---|
| 42 | "build:wasm": "cross-env RUSTFLAGS=\"-C opt-level=z\" 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 && 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 --skip-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 | "check-audit": "check-audit",
|
---|
| 78 | "resolve-audit": "resolve-audit",
|
---|
| 79 | "test": "npm run build && npm run test:all",
|
---|
| 80 | "test:update-snapshots": "node scripts/update-snapshots.js",
|
---|
| 81 | "test:cjs": "npm run build:cjs && npm run test:only",
|
---|
| 82 | "test:quick": "mocha -b test/test.js",
|
---|
| 83 | "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'",
|
---|
| 84 | "test:coverage": "npm run build:cjs && shx rm -rf coverage/* && nyc --reporter html mocha test/test.js",
|
---|
| 85 | "test:coverage:browser": "npm run build && shx rm -rf coverage/* && nyc mocha test/browser/index.js",
|
---|
| 86 | "test:leak": "npm install --no-save weak-napi && node --expose-gc test/leak/index.js",
|
---|
| 87 | "test:package": "node scripts/test-package.js",
|
---|
| 88 | "test:options": "node scripts/test-options.js",
|
---|
| 89 | "test:only": "mocha test/test.js",
|
---|
| 90 | "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",
|
---|
| 91 | "test:browser": "mocha test/browser/index.js",
|
---|
| 92 | "watch": "rollup --config rollup.config.ts --configPlugin typescript --watch"
|
---|
| 93 | },
|
---|
| 94 | "repository": "rollup/rollup",
|
---|
| 95 | "keywords": [
|
---|
| 96 | "modules",
|
---|
| 97 | "bundler",
|
---|
| 98 | "bundling",
|
---|
| 99 | "es6",
|
---|
| 100 | "optimizer"
|
---|
| 101 | ],
|
---|
| 102 | "author": "Rich Harris",
|
---|
| 103 | "license": "MIT",
|
---|
| 104 | "bugs": {
|
---|
| 105 | "url": "https://github.com/rollup/rollup/issues"
|
---|
| 106 | },
|
---|
| 107 | "homepage": "https://rollupjs.org/",
|
---|
| 108 | "optionalDependencies": {
|
---|
| 109 | "fsevents": "~2.3.2",
|
---|
| 110 | "@rollup/rollup-darwin-arm64": "4.20.0",
|
---|
| 111 | "@rollup/rollup-android-arm64": "4.20.0",
|
---|
| 112 | "@rollup/rollup-win32-arm64-msvc": "4.20.0",
|
---|
| 113 | "@rollup/rollup-linux-arm64-gnu": "4.20.0",
|
---|
| 114 | "@rollup/rollup-linux-arm64-musl": "4.20.0",
|
---|
| 115 | "@rollup/rollup-android-arm-eabi": "4.20.0",
|
---|
| 116 | "@rollup/rollup-linux-arm-gnueabihf": "4.20.0",
|
---|
| 117 | "@rollup/rollup-linux-arm-musleabihf": "4.20.0",
|
---|
| 118 | "@rollup/rollup-win32-ia32-msvc": "4.20.0",
|
---|
| 119 | "@rollup/rollup-linux-riscv64-gnu": "4.20.0",
|
---|
| 120 | "@rollup/rollup-linux-powerpc64le-gnu": "4.20.0",
|
---|
| 121 | "@rollup/rollup-linux-s390x-gnu": "4.20.0",
|
---|
| 122 | "@rollup/rollup-darwin-x64": "4.20.0",
|
---|
| 123 | "@rollup/rollup-win32-x64-msvc": "4.20.0",
|
---|
| 124 | "@rollup/rollup-linux-x64-gnu": "4.20.0",
|
---|
| 125 | "@rollup/rollup-linux-x64-musl": "4.20.0"
|
---|
| 126 | },
|
---|
| 127 | "dependencies": {
|
---|
| 128 | "@types/estree": "1.0.5"
|
---|
| 129 | },
|
---|
| 130 | "devDependenciesComments": {
|
---|
| 131 | "@types/node": "Version 18.19.0 breaks chokidar and vite types",
|
---|
| 132 | "core-js": "We only update manually as every update requires a snapshot update"
|
---|
| 133 | },
|
---|
| 134 | "devDependencies": {
|
---|
| 135 | "@codemirror/commands": "^6.6.0",
|
---|
| 136 | "@codemirror/lang-javascript": "^6.2.2",
|
---|
| 137 | "@codemirror/language": "^6.10.2",
|
---|
| 138 | "@codemirror/search": "^6.5.6",
|
---|
| 139 | "@codemirror/state": "^6.4.1",
|
---|
| 140 | "@codemirror/view": "^6.29.1",
|
---|
| 141 | "@jridgewell/sourcemap-codec": "^1.5.0",
|
---|
| 142 | "@mermaid-js/mermaid-cli": "^10.9.1",
|
---|
| 143 | "@napi-rs/cli": "^2.18.4",
|
---|
| 144 | "@rollup/plugin-alias": "^5.1.0",
|
---|
| 145 | "@rollup/plugin-buble": "^1.0.3",
|
---|
| 146 | "@rollup/plugin-commonjs": "^26.0.1",
|
---|
| 147 | "@rollup/plugin-json": "^6.1.0",
|
---|
| 148 | "@rollup/plugin-node-resolve": "^15.2.3",
|
---|
| 149 | "@rollup/plugin-replace": "^5.0.7",
|
---|
| 150 | "@rollup/plugin-terser": "^0.4.4",
|
---|
| 151 | "@rollup/plugin-typescript": "^11.1.6",
|
---|
| 152 | "@rollup/pluginutils": "^5.1.0",
|
---|
| 153 | "@shikijs/vitepress-twoslash": "^1.12.0",
|
---|
| 154 | "@types/eslint": "^8.56.11",
|
---|
| 155 | "@types/inquirer": "^9.0.7",
|
---|
| 156 | "@types/mocha": "^10.0.7",
|
---|
| 157 | "@types/node": "~18.18.14",
|
---|
| 158 | "@types/semver": "^7.5.8",
|
---|
| 159 | "@types/yargs-parser": "^21.0.3",
|
---|
| 160 | "@typescript-eslint/eslint-plugin": "^7.18.0",
|
---|
| 161 | "@typescript-eslint/parser": "^7.18.0",
|
---|
| 162 | "@vue/eslint-config-prettier": "^9.0.0",
|
---|
| 163 | "@vue/eslint-config-typescript": "^13.0.0",
|
---|
| 164 | "acorn": "^8.12.1",
|
---|
| 165 | "acorn-import-assertions": "^1.9.0",
|
---|
| 166 | "buble": "^0.20.0",
|
---|
| 167 | "builtin-modules": "^4.0.0",
|
---|
| 168 | "chokidar": "^3.6.0",
|
---|
| 169 | "colorette": "^2.0.20",
|
---|
| 170 | "concurrently": "^8.2.2",
|
---|
| 171 | "core-js": "3.36.0",
|
---|
| 172 | "cross-env": "^7.0.3",
|
---|
| 173 | "date-time": "^4.0.0",
|
---|
| 174 | "es5-shim": "^4.6.7",
|
---|
| 175 | "es6-shim": "^0.35.8",
|
---|
| 176 | "eslint": "^8.57.0",
|
---|
| 177 | "eslint-config-prettier": "^9.1.0",
|
---|
| 178 | "eslint-plugin-import": "^2.29.1",
|
---|
| 179 | "eslint-plugin-prettier": "^5.2.1",
|
---|
| 180 | "eslint-plugin-unicorn": "^55.0.0",
|
---|
| 181 | "eslint-plugin-vue": "^9.27.0",
|
---|
| 182 | "fixturify": "^3.0.0",
|
---|
| 183 | "flru": "^1.0.2",
|
---|
| 184 | "fs-extra": "^11.2.0",
|
---|
| 185 | "github-api": "^3.4.0",
|
---|
| 186 | "husky": "^9.1.4",
|
---|
| 187 | "inquirer": "^10.1.5",
|
---|
| 188 | "is-reference": "^3.0.2",
|
---|
| 189 | "lint-staged": "^15.2.7",
|
---|
| 190 | "locate-character": "^3.0.0",
|
---|
| 191 | "magic-string": "^0.30.11",
|
---|
| 192 | "mocha": "^10.7.0",
|
---|
| 193 | "nodemon": "^3.1.4",
|
---|
| 194 | "npm-audit-resolver": "^3.0.0-RC.0",
|
---|
| 195 | "nyc": "^17.0.0",
|
---|
| 196 | "pinia": "^2.2.0",
|
---|
| 197 | "prettier": "^3.3.3",
|
---|
| 198 | "pretty-bytes": "^6.1.1",
|
---|
| 199 | "pretty-ms": "^9.1.0",
|
---|
| 200 | "requirejs": "^2.3.7",
|
---|
| 201 | "rollup": "^4.19.1",
|
---|
| 202 | "rollup-plugin-license": "^3.5.2",
|
---|
| 203 | "rollup-plugin-string": "^3.0.0",
|
---|
| 204 | "semver": "^7.6.3",
|
---|
| 205 | "shx": "^0.3.4",
|
---|
| 206 | "signal-exit": "^4.1.0",
|
---|
| 207 | "source-map": "^0.7.4",
|
---|
| 208 | "source-map-support": "^0.5.21",
|
---|
| 209 | "systemjs": "^6.15.1",
|
---|
| 210 | "terser": "^5.31.3",
|
---|
| 211 | "tslib": "^2.6.3",
|
---|
| 212 | "typescript": "^5.5.4",
|
---|
| 213 | "vite": "^5.3.5",
|
---|
| 214 | "vitepress": "^1.3.1",
|
---|
| 215 | "vue": "^3.4.34",
|
---|
| 216 | "wasm-pack": "^0.13.0",
|
---|
| 217 | "yargs-parser": "^21.1.1"
|
---|
| 218 | },
|
---|
| 219 | "overrides": {
|
---|
| 220 | "axios": "^1.7.2",
|
---|
| 221 | "semver": "^7.6.3",
|
---|
| 222 | "ws": "^8.18.0"
|
---|
| 223 | },
|
---|
| 224 | "overrides_comments": {
|
---|
| 225 | "ws": "mermaid requires an older 8.13.0 version via puppeteer with vulnerabilities"
|
---|
| 226 | },
|
---|
| 227 | "files": [
|
---|
| 228 | "dist/*.node",
|
---|
| 229 | "dist/**/*.js",
|
---|
| 230 | "dist/*.d.ts",
|
---|
| 231 | "dist/bin/rollup",
|
---|
| 232 | "dist/es/package.json"
|
---|
| 233 | ],
|
---|
| 234 | "engines": {
|
---|
| 235 | "node": ">=18.0.0",
|
---|
| 236 | "npm": ">=8.0.0"
|
---|
| 237 | },
|
---|
| 238 | "exports": {
|
---|
| 239 | ".": {
|
---|
| 240 | "types": "./dist/rollup.d.ts",
|
---|
| 241 | "require": "./dist/rollup.js",
|
---|
| 242 | "import": "./dist/es/rollup.js"
|
---|
| 243 | },
|
---|
| 244 | "./loadConfigFile": {
|
---|
| 245 | "types": "./dist/loadConfigFile.d.ts",
|
---|
| 246 | "require": "./dist/loadConfigFile.js",
|
---|
| 247 | "default": "./dist/loadConfigFile.js"
|
---|
| 248 | },
|
---|
| 249 | "./getLogFilter": {
|
---|
| 250 | "types": "./dist/getLogFilter.d.ts",
|
---|
| 251 | "require": "./dist/getLogFilter.js",
|
---|
| 252 | "import": "./dist/es/getLogFilter.js"
|
---|
| 253 | },
|
---|
| 254 | "./parseAst": {
|
---|
| 255 | "types": "./dist/parseAst.d.ts",
|
---|
| 256 | "require": "./dist/parseAst.js",
|
---|
| 257 | "import": "./dist/es/parseAst.js"
|
---|
| 258 | },
|
---|
| 259 | "./dist/*": "./dist/*"
|
---|
| 260 | }
|
---|
| 261 | } |
---|