mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
* hotfix: `this.load` was added in Rollup `2.60.0`; don't run on older versions - this is my bad, I didn't realize `this.load` came out _much_ later than `this.resolve` - c.f. https://github.com/rollup/rollup/blob/master/CHANGELOG.md#2600 - since we're backward-compatible w/ Rollup `1.26.3`, add in a version check for the type-only fix - the type-only fix will error out in Rollup versions less than `2.60.0`, so instead of erroring out, just skip this functionality - TODO: should move back to using `semver` that was removed in 08d2f5bcad7cb9a9a0974f3707a27d29dd89da7c * deps: add back `semver` and use for version checking - reverts the `semver` removal in 08d2f5bcad7cb9a9a0974f3707a27d29dd89da7c - add back the TS version range check - add a Rollup version range check, fixing an old issue - check `this.load` Rollup version with `semver` instead of string comparison - add `semver` to `external`s list - also remove `resolve` as it's no longer used as of 74f6761ff63863cdb3e92ca1f33640fe6f4fc7db - and re-organize the list so that Node built-ins are in one section while deps are in another - makes it clearer what we're marking as external * dx: add a nice warning when `this.load` is not supported - so it doesn't just silently skip the type-only fix on Rollup versions <2.60.0 * fix(test): add globals for strings that are replaced during build - `TS_VERSION_RANGE`, `ROLLUP_VERSION_RANGE`, `RPT2_VERSION` were previously only defined during builds, so would cause tests to fail - add these vars as (namespaced) globals in the Jest config so that they can be used in tests too - if they don't exist on `global` (or if `global` doesn't exist), then use the built strings instead - see in-line comments for more details - also reorder `re` placement to match the usage order in the code - and fix lint issues (`no-string-literal`) Co-authored-by: Eugene Zolenko <zolenkoe@gmail.com>
78 lines
2.2 KiB
JSON
78 lines
2.2 KiB
JSON
{
|
|
"name": "rollup-plugin-typescript2",
|
|
"version": "0.34.0",
|
|
"description": "Seamless integration between Rollup and TypeScript. Now with errors.",
|
|
"main": "dist/rollup-plugin-typescript2.cjs.js",
|
|
"module": "dist/rollup-plugin-typescript2.es.js",
|
|
"jsnext:main": "dist/rollup-plugin-typescript2.es.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"keywords": [
|
|
"rollup-plugin-typescript2",
|
|
"rollup-plugin-typescript",
|
|
"rollup-plugin",
|
|
"typescript",
|
|
"es2015",
|
|
"rollup",
|
|
"npm"
|
|
],
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/ezolenko/rollup-plugin-typescript2",
|
|
"author": "@ezolenko",
|
|
"scripts": {
|
|
"prebuild": "rimraf dist/*",
|
|
"build": "rimraf dist/* && rollup -c",
|
|
"watch": "rollup -c rollup.config.self.js -w ",
|
|
"build-self": "rimraf dist/* && rollup -c rollup.config.self.js",
|
|
"lint": "tslint -c ./tslint.json src/*.ts __tests__/*.ts ./*.js",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@rollup/pluginutils": "^4.1.2",
|
|
"find-cache-dir": "^3.3.2",
|
|
"fs-extra": "^10.0.0",
|
|
"semver": "^7.3.7",
|
|
"tslib": "^2.4.0"
|
|
},
|
|
"peerDependencies": {
|
|
"rollup": ">=1.26.3",
|
|
"typescript": ">=2.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@jest/globals": "^28.0.3",
|
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
"@rollup/plugin-node-resolve": "13.2.1",
|
|
"@types/find-cache-dir": "^2.0.0",
|
|
"@types/fs-extra": "8.0.1",
|
|
"@types/graphlib": "2.1.7",
|
|
"@types/jest": "^27.5.0",
|
|
"@types/lodash": "4.14.161",
|
|
"@types/node": "8.0.47",
|
|
"@types/object-hash": "1.3.3",
|
|
"@types/semver": "7.3.12",
|
|
"colors": "1.4.0",
|
|
"graphlib": "2.1.8",
|
|
"jest": "^28.0.0",
|
|
"lodash": "4.17.21",
|
|
"object-hash": "3.0.0",
|
|
"rimraf": "3.0.2",
|
|
"rollup": "^2.70.2",
|
|
"rollup-plugin-re": "1.0.7",
|
|
"rollup-plugin-typescript2": "0.33.0",
|
|
"ts-jest": "^28.0.0",
|
|
"tslint": "6.1.3",
|
|
"typescript": "^4.6.3"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ezolenko/rollup-plugin-typescript2.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/ezolenko/rollup-plugin-typescript2/issues"
|
|
}
|
|
}
|