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

Resolve paths from tsconfig as webpack aliases #200

Merged
merged 4 commits into from
Oct 4, 2024
Merged

Conversation

cezaraugusto
Copy link
Member

@cezaraugusto cezaraugusto commented Sep 30, 2024

fix #202

I was trying to create a new extension with shadcn/ui but couldn't. Wiith this PR I can :P

Mostly, this resolves the tsconfig.json "paths" property and makes it a webpack resolver alias.

{
  "compilerOptions": {
    "paths": {
      "@/*": ["./*"]
    }
  }
}
Screenshot 2024-10-04 at 12 42 54 Screenshot 2024-10-04 at 13 14 30

Copy link

pkg-pr-new bot commented Sep 30, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/extension-js/extension.js/extension@200
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-create@200
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-develop@200

commit: df61c66

@cezaraugusto cezaraugusto self-assigned this Oct 4, 2024
@cezaraugusto cezaraugusto marked this pull request as ready for review October 4, 2024 16:18
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

see 7 files with indirect coverage changes

@cezaraugusto cezaraugusto merged commit c746dae into main Oct 4, 2024
13 of 15 checks passed
@cezaraugusto cezaraugusto deleted the resolve-alias branch October 4, 2024 17:19
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.

Needs shadcn/ui template
1 participant