-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[babel 8] Publish
.d.ts
files for every package (#16416)
- Loading branch information
1 parent
6e14020
commit 6e3539b
Showing
193 changed files
with
934 additions
and
381 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
.yarn/patches/rollup-plugin-dts-npm-6.1.0-6d41e665a7.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/dist/rollup-plugin-dts.mjs b/dist/rollup-plugin-dts.mjs | ||
index 4a9412285c48c37d03340a086c771f8e61fd82ac..9e7c42c4ca12ddbee7e1bdbfe19e30b1d5555bc0 100644 | ||
--- a/dist/rollup-plugin-dts.mjs | ||
+++ b/dist/rollup-plugin-dts.mjs | ||
@@ -309,6 +309,19 @@ class NamespaceFixer { | ||
} | ||
const exports = []; | ||
for (const prop of obj.properties) { | ||
+ // Rollup generates an object of getters for re-exports sometimes | ||
+ if ( | ||
+ ts.isGetAccessor(prop) && | ||
+ ts.isIdentifier(prop.name) && | ||
+ ts.isReturnStatement(prop.body.statements[0]) && | ||
+ ts.isIdentifier(prop.body.statements[0].expression) | ||
+ ) { | ||
+ exports.push({ | ||
+ exportedName: prop.name.text, | ||
+ localName: prop.body.statements[0].expression.getText() | ||
+ }); | ||
+ continue; | ||
+ } | ||
if (!ts.isPropertyAssignment(prop) || | ||
!(ts.isIdentifier(prop.name) || ts.isStringLiteral(prop.name)) || | ||
(prop.name.text !== "__proto__" && !ts.isIdentifier(prop.initializer))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Minimal version of lib.dom.d.ts. @babel/standalone needs these types | ||
// to be defined, but we don't want to load the full lib.dom.d.ts in | ||
// tscondif.dts-bundles.json because we don't want other .d.ts files to | ||
// accidenally rely on DOM features. | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
declare interface HTMLCollectionOf<T> {} | ||
declare interface HTMLScriptElement {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.