From e95535a168361c95aa0a02f7a3bd52a46d85a270 Mon Sep 17 00:00:00 2001 From: ntsd Date: Sun, 1 Sep 2024 12:03:20 +0700 Subject: [PATCH] fix: separate default npm for each node version and global npm for system node verion - separate default npm for each node version and global npm for system node verion --- Makefile | 2 +- install/npmfile | 10 +--------- runcom/.default-npm-packages | 5 +++++ 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 runcom/.default-npm-packages diff --git a/Makefile b/Makefile index 7995c05..8f21f6c 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ asdf-packages: asdf asdf install node-packages: asdf - . $(ASDF_PATH)/asdf.sh && $(ASDF_PATH)/shims/npm install -g $(shell cat install/npmfile) + . $(ASDF_PATH)/asdf.sh && $(ASDF_PATH)/shims/npm install -g $(shell cat install/npmfile) && $(ASDF_PATH)/shims/npm install -g $(shell cat runcom/.default-npm-packages) test: bats test diff --git a/install/npmfile b/install/npmfile index 6089fc5..32a76df 100644 --- a/install/npmfile +++ b/install/npmfile @@ -1,10 +1,2 @@ -yarn -pnpm -prettier -release-it -http-server fkill-cli -get-port-cli -npm-check-updates -tldr -@microsoft/inshellisense +http-server diff --git a/runcom/.default-npm-packages b/runcom/.default-npm-packages new file mode 100644 index 0000000..feb3b6d --- /dev/null +++ b/runcom/.default-npm-packages @@ -0,0 +1,5 @@ +yarn +pnpm +release-it +npm-check-updates +@microsoft/inshellisense