1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 23:27:45 +00:00
Commit graph

5 commits

Author SHA1 Message Date
gin-lsl
156a0110c7
fix(npm): update incompatible npm scripts (#1137)
I use Nushell and npm, and noticed that the npm section hasn't been
updated for a long time, to the point where it no longer works with
current npm versions. In fact, the current script produces the following
result:

![image](https://github.com/user-attachments/assets/272a6a37-c623-452a-94ab-2f3c0ee54beb)

So I've updated the npm-related scripts to fix this issue. Now it works
correctly:

![image](https://github.com/user-attachments/assets/fcf8b590-0ede-4571-bd52-611cf4c9fdd3)


Additionally, since npm -l | lines generates over 900 lines of output,
this causes each run to take a long time (at least on my machine).
Therefore, I've implemented caching using stor to store the results,
which significantly reduces the execution time for subsequent calls.
With caching enabled, the delay is now barely noticeable.
2025-06-24 17:09:03 -05:00
Hilmar Gústafsson
09647b77ee
fix(npm-completions): move extern down (#475)
Looks like nu has gotten stricter about the order in which things
must be declared.
2023-05-02 06:42:33 -05:00
chtenb
bc71f8d1e9
Make commands optional (#398) 2023-03-05 14:45:19 -06:00
Darren Schroeder
e6d8d2704e
update scripts to support str replace (#200) 2022-04-07 08:45:04 -05:00
Yethal
fd7c123ed1
Added completions for npm (#187)
* added npm

* added npm

Co-authored-by: Yethal <nosuchemail@email.com>
2022-03-23 16:30:35 -05:00