-
-
Notifications
You must be signed in to change notification settings - Fork 50.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency chalk to v5 (#52109)
* chore(deps): update dependency chalk to v5 * migrate chalk * Update .github/workflows/test.yml Signed-off-by: afc163 <[email protected]> --------- Signed-off-by: afc163 <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: afc163 <[email protected]>
- Loading branch information
1 parent
4985db9
commit ff52bbc
Showing
12 changed files
with
70 additions
and
64 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
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import './dist.test'; | ||
import './lib-es.test'; | ||
import './use-client.test'; |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import $ from 'dekko'; | ||
import chalk from 'chalk'; | ||
|
||
$('lib').isDirectory().hasFile('index.js').hasFile('index.d.ts'); | ||
|
||
$('lib/*') | ||
.filter( | ||
(filename: string) => !['index.js', 'index.d.ts', '.map'].some((ext) => filename.endsWith(ext)), | ||
) | ||
.isDirectory() | ||
.filter((filename: string) => !['style', '_util', 'locale'].some((ext) => filename.endsWith(ext))) | ||
.hasFile('index.js') | ||
.hasFile('index.d.ts'); | ||
|
||
console.log(chalk.green('✨ `lib` directory is valid.')); | ||
|
||
$('es').isDirectory().hasFile('index.js').hasFile('index.d.ts'); | ||
|
||
$('es/*') | ||
.filter( | ||
(filename: string) => !['index.js', 'index.d.ts', '.map'].some((ext) => filename.endsWith(ext)), | ||
) | ||
.isDirectory() | ||
.filter((filename: string) => !['style', '_util', 'locale'].some((ext) => filename.endsWith(ext))) | ||
.hasFile('index.js') | ||
.hasFile('index.d.ts'); | ||
|
||
console.log(chalk.green('✨ `es` directory is valid.')); |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import $ from 'dekko'; | ||
import chalk from 'chalk'; | ||
import fs from 'node:fs'; | ||
|
||
const includeUseClient = (filename: string) => | ||
fs.readFileSync(filename).toString().includes('"use client"'); | ||
|
||
$('dist/*') | ||
.isFile() | ||
.assert("doesn't contain use client", (filename: string) => !includeUseClient(filename)); | ||
$('{es,lib}/index.js') | ||
.isFile() | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
$('{es,lib}/*/index.js') | ||
.isFile() | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
|
||
// check tsx files | ||
$('{es,lib}/typography/*.js') | ||
.isFile() | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
|
||
$('{es,lib}/typography/Base/*.js') | ||
.isFile() | ||
.filter((filename: string) => !filename.endsWith('/util.js')) | ||
.assert('contain use client', (filename: string) => includeUseClient(filename)); | ||
|
||
console.log(chalk.green('✨ use client passed!')); |
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 |
---|---|---|
|
@@ -27,3 +27,5 @@ declare module '@npmcli/run-script' { | |
} | ||
|
||
declare module '@microflash/rehype-figure'; | ||
|
||
declare module 'dekko'; |