@rollup/plugin-typescript
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -12,6 +12,3 @@ 'use strict'; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
function _interopNamespaceDefault(e) { | ||
var n = Object.create(null); | ||
@@ -29,11 +26,7 @@ if (e) { | ||
} | ||
n["default"] = e; | ||
n.default = e; | ||
return Object.freeze(n); | ||
} | ||
var path__namespace = /*#__PURE__*/_interopNamespace(path); | ||
var path__default = /*#__PURE__*/_interopDefaultLegacy(path); | ||
var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript$1); | ||
var resolve__default = /*#__PURE__*/_interopDefaultLegacy(resolve); | ||
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs); | ||
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path); | ||
@@ -90,3 +83,3 @@ /** | ||
// ); | ||
const resolveId = (file, opts) => resolve__default["default"].sync(file, opts); | ||
const resolveId = (file, opts) => resolve.sync(file, opts); | ||
/** | ||
@@ -133,3 +126,3 @@ * Returns code asynchronously for the tslib helper library. | ||
compilerOptions: { ...extra, ...compilerOptions }, | ||
typescript: typescript || typescript__default["default"], | ||
typescript: typescript || typescript$1, | ||
tslib: tslib || getTsLibPath(), | ||
@@ -252,3 +245,3 @@ transformers, | ||
const { ModuleKind: ModuleKind$1, ModuleResolutionKind } = typescript__default["default"]; | ||
const { ModuleKind: ModuleKind$1, ModuleResolutionKind } = typescript$1; | ||
function makeForcedCompilerOptions(noForceEmit) { | ||
@@ -508,3 +501,3 @@ return { ...FORCED_COMPILER_OPTIONS, ...(noForceEmit ? {} : OVERRIDABLE_EMIT_COMPILER_OPTIONS) }; | ||
// import { resolveIdAsync } from './tslib'; | ||
const { ModuleKind } = typescript__default["default"]; | ||
const { ModuleKind } = typescript$1; | ||
const pluginName = '@rollup/plugin-typescript'; | ||
@@ -618,3 +611,3 @@ const moduleErrorMessage = ` | ||
const { DiagnosticCategory } = typescript__default["default"]; | ||
const { DiagnosticCategory } = typescript$1; | ||
// @see https://github.com/microsoft/TypeScript/blob/master/src/compiler/diagnosticMessages.json | ||
@@ -734,4 +727,4 @@ // eslint-disable-next-line no-shadow | ||
const createFileFolder = (filePath) => { | ||
const folderPath = path__default["default"].dirname(filePath); | ||
fs__default["default"].mkdirSync(folderPath, { recursive: true }); | ||
const folderPath = path.dirname(filePath); | ||
fs.mkdirSync(folderPath, { recursive: true }); | ||
}; | ||
@@ -744,3 +737,3 @@ class TSCache { | ||
cachedFilename(fileName) { | ||
return path__default["default"].join(this._cacheFolder, fileName.replace(/^([a-zA-Z]+):/, '$1')); | ||
return path.join(this._cacheFolder, fileName.replace(/^([a-zA-Z]+):/, '$1')); | ||
} | ||
@@ -751,7 +744,7 @@ /** Emits a file in the cache folder */ | ||
createFileFolder(cachedPath); | ||
fs__default["default"].writeFileSync(cachedPath, code); | ||
fs.writeFileSync(cachedPath, code); | ||
} | ||
/** Checks if a file is in the cache */ | ||
isCached(fileName) { | ||
return fs__default["default"].existsSync(this.cachedFilename(fileName)); | ||
return fs.existsSync(this.cachedFilename(fileName)); | ||
} | ||
@@ -762,3 +755,3 @@ /** Read a file from the cache given the output name*/ | ||
if (this.isCached(fileName)) { | ||
code = fs__default["default"].readFileSync(this.cachedFilename(fileName), { encoding: 'utf-8' }); | ||
code = fs.readFileSync(this.cachedFilename(fileName), { encoding: 'utf-8' }); | ||
} | ||
@@ -896,4 +889,4 @@ return code; | ||
exports["default"] = typescript; | ||
exports.default = typescript; | ||
module.exports = Object.assign(exports.default, exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@rollup/plugin-typescript", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"publishConfig": { | ||
@@ -67,11 +67,11 @@ "access": "public" | ||
"dependencies": { | ||
"@rollup/pluginutils": "^4.2.1", | ||
"@rollup/pluginutils": "^5.0.1", | ||
"resolve": "^1.22.1" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-buble": "^0.21.3", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-buble": "^1.0.0", | ||
"@rollup/plugin-commonjs": "^23.0.0", | ||
"@types/node": "^14.18.30", | ||
"buble": "^0.20.0", | ||
"rollup": "^2.67.3", | ||
"rollup": "^3.2.3", | ||
"typescript": "^4.8.3" | ||
@@ -78,0 +78,0 @@ }, |
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
91547
1798
+ Added@rollup/pluginutils@5.1.0(transitive)
+ Added@types/estree@1.0.5(transitive)
- Removed@rollup/pluginutils@4.2.1(transitive)
Updated@rollup/pluginutils@^5.0.1