@rollup/plugin-typescript
Advanced tools
Comparing version 8.2.0 to 8.2.1
# @rollup/plugin-typescript ChangeLog | ||
## v8.2.1 | ||
_2021-03-26_ | ||
### Bugfixes | ||
- fix: bump TypeScript version (#818) | ||
- fix: update readme and peerDeps version (#830) | ||
## v8.2.0 | ||
@@ -4,0 +13,0 @@ |
@@ -439,3 +439,2 @@ import path, { resolve as resolve$1, dirname, relative, win32, posix, normalize } from 'path'; | ||
in the target tsconfig.json file or plugin options.`.replace(/\n/g, ''); | ||
const rootDirErrorMessage = `${pluginName}: The "rootDir" or "rootDirs" option is required when the "tsconfig" option is not specified and "declaration" is "true".`; | ||
const tsLibErrorMessage = `${pluginName}: Could not find module 'tslib', which is required by this plugin. Is it installed?`; | ||
@@ -449,6 +448,2 @@ let undef; | ||
} | ||
const { options } = config; | ||
if (options.declaration && !options.configFilePath && !options.rootDir && !options.rootDirs) { | ||
context.error(rootDirErrorMessage); | ||
} | ||
if (!rollupOptions.preserveModules && tslib === null) { | ||
@@ -455,0 +450,0 @@ context.error(tsLibErrorMessage); |
@@ -467,3 +467,2 @@ 'use strict'; | ||
in the target tsconfig.json file or plugin options.`.replace(/\n/g, ''); | ||
const rootDirErrorMessage = `${pluginName}: The "rootDir" or "rootDirs" option is required when the "tsconfig" option is not specified and "declaration" is "true".`; | ||
const tsLibErrorMessage = `${pluginName}: Could not find module 'tslib', which is required by this plugin. Is it installed?`; | ||
@@ -477,6 +476,2 @@ let undef; | ||
} | ||
const { options } = config; | ||
if (options.declaration && !options.configFilePath && !options.rootDir && !options.rootDirs) { | ||
context.error(rootDirErrorMessage); | ||
} | ||
if (!rollupOptions.preserveModules && tslib === null) { | ||
@@ -483,0 +478,0 @@ context.error(tsLibErrorMessage); |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"publishConfig": { | ||
@@ -51,3 +51,3 @@ "access": "public" | ||
"tslib": "*", | ||
"typescript": ">=3.4.0" | ||
"typescript": ">=3.7.0" | ||
}, | ||
@@ -65,5 +65,5 @@ "dependencies": { | ||
"rollup": "^2.14.0", | ||
"typescript": "^4.1.2" | ||
"typescript": "^4.2.2" | ||
}, | ||
"types": "types/index.d.ts" | ||
} |
@@ -16,3 +16,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-typescript | ||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+. This plugin also requires at least [TypeScript 3.4](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html). | ||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+. This plugin also requires at least [TypeScript 3.7](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html). | ||
@@ -19,0 +19,0 @@ ## Install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91858
1638