-
Notifications
You must be signed in to change notification settings - Fork 0
chore: drop chalk from dependencies #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| import chalk from 'chalk'; | ||
| import { styleText } from 'node:util'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Because Useful? React with 👍 / 👎. |
||
| import open from "open"; | ||
| import { randomUUIDBase62 } from './_internalUtils.js'; | ||
| import { StaticServer } from './staticServer.js'; | ||
|
|
@@ -38,7 +38,7 @@ export async function showReport(reportFolder: string, options?: { | |
| url.searchParams.set('port', String(server.port())); | ||
| url.searchParams.set('token', token); | ||
|
|
||
| console.log(chalk.cyan(` | ||
| console.log(styleText('cyan', ` | ||
| Serving Flakiness report at ${(url.toString())} | ||
| Press Ctrl+C to quit.`)) | ||
| await open(url.toString()); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes the entire package un-installable on older build runtimes via
engines, even thoughpackage.jsonstill exposes./browserand that path (src/browser.ts/src/reportUtilsBrowser.ts) never touchesstyleText. In projects that only consume@flakiness/sdk/browserfrom Node 18/20-based toolchains, package managers with engine enforcement will now reject the install for a change that only affectedshowReport().Useful? React with 👍 / 👎.