refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.92k stars 1.96k forks source link

fix(cli): type imports in swizzle command #6039

Closed aliemir closed 1 week ago

aliemir commented 2 weeks ago

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

Changes

When exporting elements with swizzle command, it will try to replace and combine imports from Refine packages. This process was broken if the target file was using import type syntax. This PR updates swizzle command to handle import type syntax separately.

Resolves #6035

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: 1227c96649617aefddfdae9373c5f531e460d9f9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------- | ----- | | @refinedev/cli | Patch | | @refinedev/devtools | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

cypress[bot] commented 2 weeks ago

Passing run #11195 ↗︎

0 379 37 0 Flakiness 0

Details:

Merge 1227c96649617aefddfdae9373c5f531e460d9f9 into a985034f088947c5ec4974706d6a...
Project: refine Commit: 0479045579 ℹ️
Status: Passed Duration: 20:44 💡
Started: Jun 12, 2024 11:55 AM Ended: Jun 12, 2024 12:16 PM

Review all test suite changes for PR #6039 ↗︎