rollup-plugin-dts
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -0,1 +1,5 @@ | ||
### 1.4.3 2020-05-13 | ||
- Fixes to work with newest rollup. | ||
### 1.4.2 2020-05-10 | ||
@@ -2,0 +6,0 @@ |
@@ -1065,2 +1065,3 @@ 'use strict'; | ||
if (!node.exportClause) { | ||
// export * from './other' | ||
this.pushStatement(withStartEnd({ | ||
@@ -1071,16 +1072,16 @@ type: "ExportAllDeclaration", | ||
} | ||
else if (ts.isNamespaceExport(node.exportClause)) { | ||
// export * as name from './other' | ||
this.pushStatement(withStartEnd({ | ||
type: "ExportAllDeclaration", | ||
source, | ||
exported: createIdentifier(node.exportClause.name), | ||
}, node)); | ||
} | ||
else { | ||
// export { name } from './other' | ||
const specifiers = []; | ||
if (ts.isNamespaceExport(node.exportClause)) { | ||
specifiers.push({ | ||
// @ts-ignore: ESTree doesn‘t have this yet | ||
type: "ExportNamespaceSpecifier", | ||
exported: createIdentifier(node.exportClause.name), | ||
}); | ||
for (const elem of node.exportClause.elements) { | ||
specifiers.push(this.convertExportSpecifier(elem)); | ||
} | ||
else { | ||
for (const elem of node.exportClause.elements) { | ||
specifiers.push(this.convertExportSpecifier(elem)); | ||
} | ||
} | ||
this.pushStatement(withStartEnd({ | ||
@@ -1087,0 +1088,0 @@ type: "ExportNamedDeclaration", |
{ | ||
"name": "rollup-plugin-dts", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "An experiment to generate .d.ts rollup files", | ||
@@ -65,16 +65,16 @@ "keywords": [ | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^13.13.4", | ||
"@types/react": "^16.9.34", | ||
"@types/node": "^14.0.1", | ||
"@types/react": "^16.9.35", | ||
"esm": "^3.2.25", | ||
"fs-extra": "^9.0.0", | ||
"jest": "^25.5.4", | ||
"jest": "^26.0.1", | ||
"prettier": "^2.0.5", | ||
"react": "^16.13.1", | ||
"rollup": "2.7.6", | ||
"ts-jest": "^25.4.0", | ||
"typescript": "3.8.3" | ||
"rollup": "2.10.0", | ||
"ts-jest": "^25.5.1", | ||
"typescript": "3.9.2" | ||
}, | ||
"peerDependencies": { | ||
"rollup": "^2.7.6", | ||
"typescript": "^3.8.3" | ||
"rollup": "^2.10.0", | ||
"typescript": "^3.9.2" | ||
}, | ||
@@ -81,0 +81,0 @@ "optionalDependencies": { |
Sorry, the diff of this file is not supported yet
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
108136
2693