rollup-plugin-ts
Version:
A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc
200 lines (199 loc) • 5.83 kB
JSON
{
"name": "rollup-plugin-ts",
"version": "3.4.5",
"description": "A TypeScript Rollup plugin that bundles declarations, respects Browserslists, and enables seamless integration with transpilers such as babel and swc",
"scripts": {
"generate:sandhog": "sandhog all --yes",
"generate:changelog": "standard-changelog --first-release",
"generate:all": "pnpm run generate:sandhog && pnpm run generate:changelog",
"clean": "rimraf dist",
"lint": "tsc --noEmit && eslint \"src/**/*.ts\" --color",
"prettier": "prettier --write \"{src,test,documentation}/**/*.{js,ts,json,html,xml,css,md}\"",
"test": "cross-env NODE_NO_WARNINGS=1 FORCE_COLOR=3 NODE_OPTIONS=\"--loader=tsx --max_old_space_size=6144\" ava",
"prebuild": "pnpm run clean",
"build": "pnpm run prebuild && pnpm run rollup",
"rollup": "tsx rollup.config.ts",
"preversion": "npm run lint && pnpm run build",
"version": "pnpm run preversion && pnpm run generate:all && git add .",
"release": "np --no-cleanup --no-yarn --no-tests",
"update:check": "pnpx npm-check-updates -x typescript-* --dep dev,prod",
"update:commit": "pnpx npm-check-updates -u -x typescript-* --dep dev,prod && pnpm update && pnpm install"
},
"keywords": [
"rollup",
"typescript",
"declaration",
"declarations",
"bundling",
"merging",
"treeshaking",
"plugin",
"babel",
"browserslist"
],
"files": [
"dist/**/*.*"
],
"contributors": [
{
"name": "Frederik Wessberg",
"email": "frederikwessberg@hotmail.com",
"url": "https://github.com/wessberg",
"imageUrl": "https://avatars2.githubusercontent.com/u/20454213?s=460&v=4",
"github": "wessberg",
"role": "Lead Developer",
"twitter": "FredWessberg"
}
],
"license": "MIT",
"devDependencies": {
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@types/babel__core": "^7.20.1",
"@types/node": "^20.4.6",
"@types/prettier": "^2.7.3",
"@types/semver": "^7.5.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"eslint-plugin-deprecation": "^1.5.0",
"@prettier/sync": "^0.3.0",
"@wessberg/ts-config": "^4.0.0",
"@wessberg/prettier-config": "^1.0.0",
"@babel/core": "^7.22.9",
"@babel/runtime": "^7.22.6",
"@babel/preset-env": "^7.22.9",
"@babel/preset-typescript": "^7.22.5",
"@babel/plugin-transform-runtime": "^7.22.9",
"@swc/core": "^1.3.74",
"@swc/helpers": "^0.5.1",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"babel-preset-minify": "^0.5.2",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsdoc": "^46.4.5",
"helpertypes": "^0.0.19",
"husky": "^8.0.3",
"memfs": "^4.2.0",
"np": "^8.0.4",
"npm-check-updates": "^16.10.17",
"pnpm": "^8.6.11",
"prettier": "^3.0.1",
"lint-staged": "^13.2.3",
"rimraf": "^5.0.1",
"sandhog": "^2.0.2",
"semver": "^7.5.4",
"standard-changelog": "^3.0.0",
"tsx": "^3.12.7",
"typescript": "^5.1.6",
"typescript-3-4-1": "npm:typescript@3.4.1",
"typescript-3-5-1": "npm:typescript@3.5.1",
"typescript-3-6-2": "npm:typescript@3.6.2",
"typescript-3-7-2": "npm:typescript@3.7.2",
"typescript-3-8-3": "npm:typescript@3.8.3",
"typescript-3-9-2": "npm:typescript@3.9.2",
"typescript-4-0-3": "npm:typescript@4.0.3",
"typescript-4-1-2": "npm:typescript@4.1.2",
"typescript-4-2-4": "npm:typescript@4.2.4",
"typescript-4-3-5": "npm:typescript@4.3.5",
"typescript-4-4-2": "npm:typescript@4.4.2",
"typescript-4-5-4": "npm:typescript@4.5.4",
"typescript-4-6-4": "npm:typescript@4.6.4",
"typescript-4-7-2": "npm:typescript@4.7.2",
"typescript-4-8-2": "npm:typescript@4.8.2",
"typescript-4-9-4": "npm:typescript@4.9.4",
"typescript-5-0-4": "npm:typescript@5.0.4",
"rollup": "^3.27.0",
"rollup_3_15_0": "npm:rollup@3.15.0"
},
"dependencies": {
"@rollup/pluginutils": "^5.0.2",
"@wessberg/stringutil": "^1.0.19",
"browserslist": "^4.21.10",
"browserslist-generator": "^2.1.0",
"ansi-colors": "^4.1.3",
"compatfactory": "^3.0.0",
"crosspath": "^2.0.0",
"magic-string": "^0.30.2",
"ts-clone-node": "^3.0.0",
"tslib": "^2.6.1"
},
"peerDependencies": {
"@babel/core": ">=7.x",
"@babel/runtime": ">=7.x",
"@babel/preset-env": ">=7.x",
"@babel/preset-typescript": ">=7.x",
"@babel/plugin-transform-runtime": ">=7.x",
"@swc/core": ">=1.x",
"@swc/helpers": ">=0.2",
"rollup": ">=1.x || >=2.x || >=3.x",
"typescript": ">=3.2.x || >= 4.x || >= 5.x"
},
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"@babel/runtime": {
"optional": true
},
"@babel/preset-env": {
"optional": true
},
"@babel/preset-typescript": {
"optional": true
},
"@babel/plugin-transform-runtime": {
"optional": true
},
"@swc/core": {
"optional": true
},
"@swc/helpers": {
"optional": true
}
},
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs",
"types": "./dist/esm/index.d.ts"
},
"type": "module",
"types": "./dist/esm/index.d.ts",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"funding": {
"type": "github",
"url": "https://github.com/wessberg/rollup-plugin-ts?sponsor=1"
},
"repository": {
"type": "git",
"url": "https://github.com/wessberg/rollup-plugin-ts.git"
},
"bugs": {
"url": "https://github.com/wessberg/rollup-plugin-ts/issues"
},
"engines": {
"node": ">=16.15.1",
"npm": ">=7.0.0",
"yarn": ">=1.13",
"pnpm": ">=3.2.0"
},
"lint-staged": {
"*": "prettier --ignore-unknown --write"
},
"prettier": "@wessberg/prettier-config",
"ava": {
"files": [
"test/**/*.test.ts"
],
"concurrency": 1,
"verbose": true,
"timeout": "400s",
"extensions": {
"ts": "module"
}
}
}