4 ms·
FFS we don't have local dependencies. Which means we don't have any local node_modules and have never ran npm install (there are no dependencies to install!). T
by mythz 2y ago
FFS we don't have local dependencies. Which means we don't have any local node_modules and have never ran npm install (there are no dependencies to install!). There is no lock file or dependencies.
Our Apps don't have any npm dependencies nor needs to run npm install by design, we're not going to start now, as already stated we're switching to `tailwindcss@v3` instead.
The point is this was a documented supported use-case which all our non node.js Apps used, which have now broken as a result of this release.
- Aeolun 2y agoI find it really hard to not immediately be reminded of this: https://xkcd.com/1172/ https://xkcd.com/1172/
- mythz 2y agoWe only use npm dependencies and bloated node_modules folders [1] if we absolutely have to and for our non node.js Apps we explicitly don't. [1] https://www.reddit.com/r/ProgrammerHumor/comments/6s0wov/heaviest_objects_in_the_universe/ https://www.reddit.com/r/ProgrammerHumor/comments/6s0wov/hea...
- preisschild 2y agoBut why not though I also use tailwindcss in a non-node project, but use npm package / lock files to easily lock javascript / css dependencies and make renovate able to update them for me.
- mythz 2y agoI've linked to why. We prefer #NoBuild solutions where we'd only use local npm deps/node_modules if we absolutely have to, and for non JS Apps we don't.
- jitl 2y agoThe node_modules folder is still somewhere on your system (~/.npm/_npx probably?) containing the same tailwindcss dependency files, but if it helps you sleep easier at night it’s okay to pretend it doesn’t exist.
- mythz 2y agoNo kidding, I thought global tools worked with fairy cloud dust, now I wont be able to sleep! But knowing there's not a going to be a bloated node_modules folder and local dependencies running different versions unnecessarily maintained in every project will definitely help.
- thiht 2y agoYOU DO have a local dependency. Just add a mostly empty package.json like this: { "devDependencies": { "tailwindcss": "^3.4.17" } } Run npm install once, and be done with it. You could even commit your node_modules if it helps.
- mythz 2y agoWe don't, we use npx to avoid needing any local dependencies. `npx tailwind@v3` is the solution, definitely wont be committing node_modules to git, ever.