Skip to content

Fix/window path#330

Open
jong-kyung wants to merge 2 commits intoTanStack:mainfrom
jong-kyung:fix/window-path
Open

Fix/window path#330
jong-kyung wants to merge 2 commits intoTanStack:mainfrom
jong-kyung:fix/window-path

Conversation

@jong-kyung
Copy link
Contributor

fixes #329

This PR addresses an issue where the toCleanPath utility function in the create package did not correctly handle all Windows path formats, particularly those missing a drive letter.

Changes

  • packages/create/src/file-helpers.ts & packages/create/src/utils.ts: The toCleanPath function has been enhanced to more robustly parse and clean Windows paths, ensuring correct behavior even when a drive letter is not present.
  • packages/create/tests/file-helper.test.ts: A new test case has been added to specifically validate the toCleanPath function's handling of Windows paths with missing drive letters.

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.

tanstack add path resolve error on windows

1 participant