UNPKG

rollup-plugin-node-externals

Version:

Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup/Vite config

110 lines (109 loc) 2.73 kB
{ "name": "rollup-plugin-node-externals", "version": "9.0.1", "description": "Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup/Vite config", "author": "Stephan Schreiber <septh@sfr.fr>", "contributors": [ "Tomer Aberbach <tomeraberbach@gmail.com>", "Elad Ossadon <eossadon@lyft.com>", "Segev Finer <segev208@gmail.com>", "Jefferson Rylee <rylee.jeff385@gmail.com>" ], "keywords": [ "rollup", "vite", "plugin", "rollup-plugin", "vite-plugin", "external", "externals", "node", "builtin", "builtins", "dependencies", "devDependencies", "peerDependencies", "optionalDependencies", "modules", "monorepo" ], "homepage": "https://github.com/Septh/rollup-plugin-node-externals#readme", "repository": { "type": "git", "url": "https://github.com/Septh/rollup-plugin-node-externals" }, "funding": [ { "type": "patreon", "url": "https://patreon.com/Septh" }, { "type": "paypal", "url": "https://paypal.me/septh07" } ], "license": "MIT", "type": "module", "engines": { "node": ">= 24" }, "files": [ "dist", "!*.map" ], "types": "./dist/index.d.ts", "exports": "./dist/index.js", "imports": { "#package.json": "./package.json" }, "scripts": { "clean": "rimraf dist", "prebuild": "npm run clean", "build": "npm run buildOnly", "buildOnly": "npm run build:js && npm run build:dts", "build:js": "tsc -p tsconfig.build.json --removeComments", "build:dts": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly", "pretest": "npm run buildOnly", "test": "npm run testOnly", "testOnly": "ava", "lint": "eslint source/index.ts", "prepublishOnly": "npm run lint && npm run buildOnly" }, "devDependencies": { "@eslint/js": "^10.0.1", "@fast-check/ava": "^3.0.0", "@septh/ts-run": "^2.0.0", "@types/node": "^24.12.0", "ava": "^7.0.0", "eslint": "^10.1.0", "fast-check": "^4.2.0", "globals": "^17.4.0", "rimraf": "^6.1.3", "rollup": "^4.28.1", "tslib": "^2.8.1", "type-fest": "^5.5.0", "typescript": "^6.0.0", "typescript-eslint": "^8.57.1" }, "peerDependencies": { "rollup": "^4.0.0", "vite": ">=5.0.0" }, "peerDependenciesMeta": { "rollup": { "optional": true }, "vite": { "optional": true } }, "ava": { "workerThreads": false, "extensions": { "ts": "module" }, "nodeArguments": [ "--import=@septh/ts-run" ] } }