Change from pnpm to npm, add ./link.sh shortcut for npm style package linking
authorNick Downing <nick@ndcode.org>
Mon, 3 Jan 2022 03:59:05 +0000 (14:59 +1100)
committerNick Downing <nick@ndcode.org>
Mon, 3 Jan 2022 04:28:28 +0000 (15:28 +1100)
.gitignore
link.sh [new file with mode: 0755]

index 1cd35f5..f68383b 100644 (file)
@@ -4,4 +4,4 @@
 .*.min
 /jst_server-*.tgz
 /node_modules
-/pnpm-lock.yaml
+/package-lock.json
diff --git a/link.sh b/link.sh
new file mode 100755 (executable)
index 0000000..0971874
--- /dev/null
+++ b/link.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+rm -rf node_modules package-lock.json
+npm link @ndcode/json_cache @ndcode/json_cache_rw @ndcode/jst_cache @ndcode/less_css_cache @ndcode/menu_cache @ndcode/min_css_cache @ndcode/min_html_cache @ndcode/min_js_cache @ndcode/min_svg_cache @ndcode/text_cache @ndcode/zip_cache
+npm install
+npm link