next-gpa (Generate Path Aliases) #40324
Unanswered
williamlmao
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please go easy on me, this is my first NPM package!
NPM
Repo
It's a pretty simple one, but it's a start! Now I can call myself an open source developer haha.
Anyways, I really love using path aliases in Next. I know it's pretty easy to add them yourself, but I figured it would be an easy thing to automate so I did.
You just run
npx next-gpa
and it will update your tsconfig or jsconfig with path aliases for every folder in your project! You can specify folders to ignore as well.Would love any feedback!
Beta Was this translation helpful? Give feedback.
All reactions