Giter Site home page Giter Site logo

Paths support in tsconfig about create-t3-app HOT 7 CLOSED

t3-oss avatar t3-oss commented on August 27, 2024
Paths support in tsconfig

from create-t3-app.

Comments (7)

ochicf avatar ochicf commented on August 27, 2024 1

Sorry to necromance this but it's semi-related: what are your thoughts on having path aliases in the create-t3-app code? I'm asking because with the issue #116 I'm having to import files that are quite far away and that causes tons of ../../.. in imports.

from create-t3-app.

t3dotgg avatar t3dotgg commented on August 27, 2024

I would dig a "src/" or "app/" path alias of some form. Had back luck w/ path aliasing and monorepos tho so not sure if I'd want it to be the default 🤔

from create-t3-app.

nexxeln avatar nexxeln commented on August 27, 2024

We won't implement this, a person brought it up on the discord server and we had decided that if someone is unfamiliar with paths, they will be really confused.

If you want to, you can make the path alias on your own.

We could also make this a prompt but is this really required?

from create-t3-app.

OlegGulevskyy avatar OlegGulevskyy commented on August 27, 2024

Appreciate your response guys!
I can see how this can be annoying in monorepos.
I would not call it a strong requirement, to me it was a small but improvement as I dislike these forests of empty slashes, so I don't think it deserves a CLI prompt just for this.
One can do a small refactor or fork it and make personal changes then :)

Thanks!

from create-t3-app.

nexxeln avatar nexxeln commented on August 27, 2024

Yeah agreed, I'm closing this now

from create-t3-app.

ochicf avatar ochicf commented on August 27, 2024

@juliusmarminge sorry to ping you, not sure if you saw the above comment.

Since I think those aliases affect only the contributors and not the consumers maybe it's a different topic and the decision taken here does not apply? If you see fit I'll create a new issue to discuss how the aliases should be.

from create-t3-app.

juliusmarminge avatar juliusmarminge commented on August 27, 2024

@juliusmarminge sorry to ping you, not sure if you saw the above comment.

Sorry didn't get notified of that.

Since I think those aliases affect only the contributors and not the consumers maybe it's a different topic and the decision taken here does not apply? If you see fit I'll create a new issue to discuss how the aliases should be.

Yeah do that and we can take it from there 👍

from create-t3-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.