Skip to content

refactor(ansis): replace ansis dep with node api#923

Closed
SoftAndoWeto wants to merge 11 commits intorolldown:mainfrom
SoftAndoWeto:fix/530-ansis
Closed

refactor(ansis): replace ansis dep with node api#923
SoftAndoWeto wants to merge 11 commits intorolldown:mainfrom
SoftAndoWeto:fix/530-ansis

Conversation

@SoftAndoWeto
Copy link
Copy Markdown

Hi, this PR replacing the direct ansis dependency with Node.js API (styleText).

Description

This PR adds a util styleText. It also updates generated workspace label colors to use styleText formats instead of ansis color functions.
The tsdown-migrate package now uses styleText directly, and ansis has been removed from the package manifests, workspace catalog, and lockfile importers.

Linked Issues

Closes #530

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for tsdown-main ready!

Name Link
🔨 Latest commit 52393fd
🔍 Latest deploy log https://app.netlify.com/projects/tsdown-main/deploys/69e4fc9ca9455500085db690
😎 Deploy Preview https://deploy-preview-923--tsdown-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 19, 2026

Open in StackBlitz

tsdown

pnpm add https://pkg.pr.new/tsdown@923 -D
npm i https://pkg.pr.new/tsdown@923 -D
yarn add https://pkg.pr.new/tsdown@923.tgz -D

create-tsdown

pnpm add https://pkg.pr.new/create-tsdown@923 -D
npm i https://pkg.pr.new/create-tsdown@923 -D
yarn add https://pkg.pr.new/create-tsdown@923.tgz -D

@tsdown/css

pnpm add https://pkg.pr.new/@tsdown/css@923 -D
npm i https://pkg.pr.new/@tsdown/css@923 -D
yarn add https://pkg.pr.new/@tsdown/css@923.tgz -D

@tsdown/exe

pnpm add https://pkg.pr.new/@tsdown/exe@923 -D
npm i https://pkg.pr.new/@tsdown/exe@923 -D
yarn add https://pkg.pr.new/@tsdown/exe@923.tgz -D

tsdown-migrate

pnpm add https://pkg.pr.new/tsdown-migrate@923 -D
npm i https://pkg.pr.new/tsdown-migrate@923 -D
yarn add https://pkg.pr.new/tsdown-migrate@923.tgz -D

commit: 52393fd

@SoftAndoWeto SoftAndoWeto changed the title Fix/530 ansis refactor(ansis): replace ansis dep with node api Apr 19, 2026
@sxzz
Copy link
Copy Markdown
Member

sxzz commented Apr 19, 2026

#530 (comment)

@sxzz sxzz closed this Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace ansis dependency with util.styleText

2 participants