intlify / intlify/cli

annotate: not process SFC parse and annotate at the same time

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Status: PR Welcome Status: Proposal Type: Improvement
Dominant language
TypeScript
Stars
9
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Clear and concise description of the problem

In the current implementation, SFC parse and annotate will be processed for each file.
Therefore, if an SFC parse error occurs in the middle of the process, the files processed up to that point will still be modified by annotating.

If you are using git, you can use `git checkout` to undo the changes, but the recovery process is tedious annotating

### Suggested solution

Instead of doing SFC parse and annoate at the same time, you should do all SFC parse and then annoate.

### Alternative

We can provide `—verify` options.
it checks SFC files whether that is syntax correctly.

### Additional context

_No response_

### Validations

- [X] Read the [Contributing Guidelines](https://github.com/intlify/cli/blob/main/.github/CONTRIBUTING.md)
- [X] Read the [Documentation](https://github.com/intlify/cli/blob/main/README.md)
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.