forked from babel/babel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f6b02b
commit f1718c7
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
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,7 @@ | ||
export * from "chalk-BABEL_8_BREAKING-true"; | ||
|
||
// TODO: Eventually remove the .default fallback when we fully migrate to chalk 5 | ||
declare const _default: | ||
| typeof import("chalk-BABEL_8_BREAKING-false").default | ||
| typeof import("chalk-BABEL_8_BREAKING-true").default; | ||
export { _default as default }; |
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,10 @@ | ||
/// <reference types="./chalk.d.ts" /> | ||
|
||
// Chalk provides its own type defintions, but yarn-plugin-conditions does not | ||
// play well with them. Additionally, we want to provide the same "default" | ||
// when using ESM and CJS (extracting default from CJS's module.exports). | ||
// TODO: Remote whis when we fully migrate to chalk 5 | ||
|
||
export * from "chalk"; | ||
import _chalk from "chalk"; | ||
export default _chalk.default ?? _chalk; |
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