Socket
Socket
Sign inDemoInstall

@rollup/plugin-typescript

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-typescript - npm Package Compare versions

Comparing version 8.0.0 to 8.1.0

14

CHANGELOG.md
# @rollup/plugin-typescript ChangeLog
## v8.1.0
_2020-12-14_
### Features
- feat: support multiple output targets with declarations (#687)
### Updates
- chore: fix TypeScript warnings (#673)
- test: code in src sub-directory (#682)
- chore: use TypeScript 4 (#674)
## v8.0.0

@@ -4,0 +18,0 @@

17

dist/index.es.js

@@ -79,3 +79,3 @@ import path, { resolve, dirname, relative, win32, posix, normalize } from 'path';

const resolveIdAsync = (file, opts) => new Promise((fulfil, reject) => resolveId(file, opts, (err, contents) => (err ? reject(err) : fulfil(contents))));
const resolveIdAsync = (file, opts) => new Promise((fulfil, reject) => resolveId(file, opts, (err, contents) => (err || typeof contents === 'undefined' ? reject(err) : fulfil(contents))));
/**

@@ -343,6 +343,3 @@ * Returns code asynchronously for the tslib helper library.

for (const dirProperty of DIRECTORY_PROPS) {
if (compilerOptions[dirProperty]) {
if (!outputOptions.dir) {
context.error(`@rollup/plugin-typescript: Rollup 'dir' option must be used when Typescript compiler option '${dirProperty}' is specified.`);
}
if (compilerOptions[dirProperty] && outputOptions.dir) {
// Checks if the given path lies within Rollup output dir

@@ -561,3 +558,3 @@ const fromRollupDirToTs = relative(outputOptions.dir, compilerOptions[dirProperty]);

if (this._finishDeferred) {
this._finishDeferred.resolve();
this._finishDeferred.resolve(false);
this._finishDeferred = null;

@@ -727,7 +724,11 @@ }

const code = getEmittedFile(id, emittedFiles, tsCache);
if (!code)
let baseDir = outputOptions.dir;
if (!baseDir && tsconfig) {
baseDir = tsconfig.substring(0, tsconfig.lastIndexOf('/'));
}
if (!code || !baseDir)
return;
this.emitFile({
type: 'asset',
fileName: normalizePath(relative(outputOptions.dir, id)),
fileName: normalizePath(relative(baseDir, id)),
source: code

@@ -734,0 +735,0 @@ });

@@ -107,3 +107,3 @@ 'use strict';

const resolveIdAsync = (file, opts) => new Promise((fulfil, reject) => resolveId__default['default'](file, opts, (err, contents) => (err ? reject(err) : fulfil(contents))));
const resolveIdAsync = (file, opts) => new Promise((fulfil, reject) => resolveId__default['default'](file, opts, (err, contents) => (err || typeof contents === 'undefined' ? reject(err) : fulfil(contents))));
/**

@@ -371,6 +371,3 @@ * Returns code asynchronously for the tslib helper library.

for (const dirProperty of DIRECTORY_PROPS) {
if (compilerOptions[dirProperty]) {
if (!outputOptions.dir) {
context.error(`@rollup/plugin-typescript: Rollup 'dir' option must be used when Typescript compiler option '${dirProperty}' is specified.`);
}
if (compilerOptions[dirProperty] && outputOptions.dir) {
// Checks if the given path lies within Rollup output dir

@@ -589,3 +586,3 @@ const fromRollupDirToTs = path.relative(outputOptions.dir, compilerOptions[dirProperty]);

if (this._finishDeferred) {
this._finishDeferred.resolve();
this._finishDeferred.resolve(false);
this._finishDeferred = null;

@@ -755,7 +752,11 @@ }

const code = getEmittedFile(id, emittedFiles, tsCache);
if (!code)
let baseDir = outputOptions.dir;
if (!baseDir && tsconfig) {
baseDir = tsconfig.substring(0, tsconfig.lastIndexOf('/'));
}
if (!code || !baseDir)
return;
this.emitFile({
type: 'asset',
fileName: normalizePath(path.relative(outputOptions.dir, id)),
fileName: normalizePath(path.relative(baseDir, id)),
source: code

@@ -762,0 +763,0 @@ });

{
"name": "@rollup/plugin-typescript",
"version": "8.0.0",
"version": "8.1.0",
"publishConfig": {

@@ -60,4 +60,6 @@ "access": "public"

"@rollup/plugin-typescript": "^5.0.2",
"@types/node": "^10.0.0",
"buble": "^0.20.0",
"rollup": "^2.14.0"
"rollup": "^2.14.0",
"typescript": "^4.1.2"
},

@@ -64,0 +66,0 @@ "types": "types/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc