Skip to content
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

feat: provide a API for users to process log message in pnpm-sync-lib #15

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

g-chao
Copy link
Collaborator

@g-chao g-chao commented Feb 28, 2024

Summary

This PR is to address #14

Currently, the pnpm-sync-lib will console.log messages directly.

This brings inconvenience for users who want to customize the log message when integrating to their own Monorepo management tools.

Details

  1. Refactor API interfaces for pnpmSyncCopyAsync and pnpmSyncPrepareAsync in pnpm-sync-lib, adds a logMessageCallback for users to customize the log behavior
  2. Refactor pnpm-sync to use new API interfaces

@g-chao g-chao requested a review from octogonz February 28, 2024 00:02
@g-chao g-chao merged commit 89c55ba into main Feb 28, 2024
1 check passed
@g-chao g-chao deleted the chao/refactor-logging branch February 28, 2024 22:52
@g-chao g-chao restored the chao/refactor-logging branch March 1, 2024 00:08
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