Closed unisys12 closed 1 year ago
Hi @unisys12 ! Thank you for opening this discussion, and for taking the time to investigate. I was confused at first but then I realized the package name changed from tailwind
to tailwindcss
- then THIS is WHY all those warnings! Thanks so much for flagging this. I just updated it and all the warnings are gone, I will release a new version today with the change.
Merged and done! Sorry I didn't give you time to send the PR, it's because I need to make a release today :D
Merged and done! Sorry I didn't give you time to send the PR, it's because I need to make a release today :D
Perfectly fine.
I just learned about Librarian this morning and since I have a soft spot for SSG's and PHP, I naturally wanted to check it out. Upon install though, I noticed a few red flags after running
npm install
.I do not look at NPM Warnings like they are a meaning to the
end of the world
, but I will at least investigate them. If for no other reason then to learn. And that's primarily my goal with the dev projects I have. Any who!Upon looking into the above warning and resulting audit report, this all stems from a dependency found in
package.json
on line 14 https://github.com/librarianphp/librarian/blob/54bfb9bdf6057b4abfce074ee346a765191b42d4/package.json#L14Looking through the Blame history, it seems as though this was added back in 2021 when the initial config for TailwindCSS was setup. It seems that the only JS that is used in the project is PrismJS, so to make double sure I did a search in VSCode for uses of Tailwind related methods, such as
tailwind.createApp(
&api.use
. I will admit that it's not an exhaustive search or anything, but it was enough for me to think that Librarian is not using Websockets or any fancy streaming of I/O. At least on the surface.Running a simple
npm remove tailwind
results in the removal of 191 packages and everything, as far as I can tell, seems to work normally. And with all due respect to your time and this project, I wanted to at least open up a discussion before submitting any code changes. Thank you for all you do and the time that you have devoted to it!