matex-cli 1.2.27 â 1.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fix-npm-permissions.sh +23 -0
- package/package.json +1 -1
- package/publish-local.sh +16 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# đĄī¸ MATEX - Non-Sudo Global Config Fix
|
|
3
|
+
# This script configures npm to never need 'sudo' for global installs.
|
|
4
|
+
|
|
5
|
+
echo "đ Creating local global directory..."
|
|
6
|
+
mkdir -p ~/.npm-global
|
|
7
|
+
|
|
8
|
+
echo "âī¸ Configuring npm to use local prefix..."
|
|
9
|
+
npm config set prefix '~/.npm-global'
|
|
10
|
+
|
|
11
|
+
echo "đ Adding to PATH (in .zshrc)..."
|
|
12
|
+
if ! grep -q ".npm-global/bin" ~/.zshrc; then
|
|
13
|
+
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
|
|
14
|
+
echo "â
PATH update added to ~/.zshrc"
|
|
15
|
+
else
|
|
16
|
+
echo "âšī¸ PATH already configured in ~/.zshrc"
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
echo "đ Refreshing current session PATH..."
|
|
20
|
+
export PATH=~/.npm-global/bin:$PATH
|
|
21
|
+
|
|
22
|
+
echo "â
Done! You can now run 'npm install -g matex-cli@latest' WITHOUT sudo."
|
|
23
|
+
echo "đ Please run this command to refresh your terminal: source ~/.zshrc"
|
package/package.json
CHANGED
package/publish-local.sh
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# đ MATEX CLI - Local Global Publisher
|
|
3
|
+
# This script builds and links the CLI globally on your machine without sudo.
|
|
4
|
+
|
|
5
|
+
echo "đ¨ Building MATEX CLI..."
|
|
6
|
+
npm run build
|
|
7
|
+
|
|
8
|
+
echo "đĄī¸ Setting permissions..."
|
|
9
|
+
chmod +x bin/matex
|
|
10
|
+
|
|
11
|
+
echo "đ Linking globally..."
|
|
12
|
+
# Using --force to overwrite existing links
|
|
13
|
+
npm link --force
|
|
14
|
+
|
|
15
|
+
echo "â
Success! You can now use the 'matex' command from anywhere."
|
|
16
|
+
echo "đ Try running: matex --version"
|