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

Normalize path separators #3182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juanrgm
Copy link

@juanrgm juanrgm commented Mar 17, 2025

📝 Description

The default cwd option is process.cwd() and it uses Windows path separators, but there is code that uses the unix path separator for string matching.

⛳️ Current behavior (updates)

Some import declarations are not detected if you use tsconfig path aliases.

🚀 New behavior

The import declarations are detected and the result of parser is not empty.

💣 Is this a breaking change (Yes/No):

No.

📝 Additional Information

A temporary workaround could be:

// panda.config.ts
export default defineConfig({
  cwd: process.cwd().toString().replaceAll("\\", "/")
});

Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: dedf5a7

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

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

Copy link

vercel bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
panda-docs ✅ Ready (Inspect) Visit Preview Mar 17, 2025 10:01am
panda-playground ✅ Ready (Inspect) Visit Preview Mar 17, 2025 10:01am
panda-studio ✅ Ready (Inspect) Visit Preview Mar 17, 2025 10:01am

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.

1 participant