Skip to content

Conversation

fi3ework
Copy link
Member

@fi3ework fi3ework commented Sep 30, 2025

Summary

prefer buit-in functions.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@Copilot Copilot AI review requested due to automatic review settings September 30, 2025 06:12
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the external dependency on strip-ansi package and replaces it with Node.js built-in stripVTControlCharacters function from the node:util module. This change eliminates an external dependency by leveraging native Node.js functionality.

  • Replace strip-ansi import with stripVTControlCharacters from node:util
  • Remove strip-ansi package dependency from test package.json
  • Maintain same functionality through aliasing stripVTControlCharacters as stripAnsi

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/package.json Remove strip-ansi dependency
tests/integration/externals/index.test.ts Replace strip-ansi import with Node.js built-in
tests/integration/external-helpers/index.test.ts Replace strip-ansi import with Node.js built-in
tests/integration/entry/index.test.ts Replace strip-ansi import with Node.js built-in
tests/integration/dts/index.test.ts Replace strip-ansi import with Node.js built-in
tests/integration/dts-tsgo/bundleFalse.test.ts Replace strip-ansi import with Node.js built-in
tests/integration/config-check/index.test.ts Replace strip-ansi import with Node.js built-in
tests/integration/auto-external/index.test.ts Replace strip-ansi import with Node.js built-in
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

netlify bot commented Sep 30, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 1dac82b
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/68db74b5fa0ab000080565c4
😎 Deploy Preview https://deploy-preview-1261--rslib.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.

@fi3ework fi3ework merged commit 4a57c22 into main Sep 30, 2025
16 checks passed
@fi3ework fi3ework deleted the st branch September 30, 2025 06:49
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.

2 participants