declapract-typescript-ehmpathy 0.43.6 → 0.43.7
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.43.
|
|
5
|
+
"version": "0.43.7",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
# SKILL: use.npm.alias
|
|
4
|
-
#
|
|
5
|
-
# Installs shell aliases that redirect npm commands to pnpm for faster package management.
|
|
6
|
-
#
|
|
7
|
-
# What it does:
|
|
8
|
-
# 1. Creates an alias 'npm.slow' pointing to the original npm binary
|
|
9
|
-
# 2. Creates an alias 'npm' that redirects to pnpm
|
|
10
|
-
# 3. Sets up pnpm tab completion (works for both pnpm and npm alias)
|
|
11
|
-
# 4. Everything goes in ~/.bash_aliases (works in both bash and zsh)
|
|
12
|
-
#
|
|
13
|
-
# When to use:
|
|
14
|
-
# - After setting up a new development environment
|
|
15
|
-
# - When you want npm commands to use pnpm transparently
|
|
16
|
-
#
|
|
17
|
-
# Usage:
|
|
18
|
-
# ./.agent/repo=.this/skills/use.npm.alias.sh
|
|
19
|
-
#
|
|
20
|
-
set -euo pipefail
|
|
21
|
-
|
|
22
|
-
BASH_ALIASES="${HOME}/.bash_aliases"
|
|
23
|
-
touch "$BASH_ALIASES"
|
|
24
|
-
|
|
25
|
-
# findsert npm.slow (only add if not already defined)
|
|
26
|
-
if ! grep -q "^alias npm.slow=" "$BASH_ALIASES" 2>/dev/null; then
|
|
27
|
-
NPM_PATH=$(which npm)
|
|
28
|
-
echo "alias npm.slow=\"$NPM_PATH\"" >> "$BASH_ALIASES"
|
|
29
|
-
echo "👍 findsert: alias npm.slow=\"$NPM_PATH\""
|
|
30
|
-
else
|
|
31
|
-
echo "👍 findsert: npm.slow alias already exists"
|
|
32
|
-
fi
|
|
33
|
-
|
|
34
|
-
# upsert npm => pnpm
|
|
35
|
-
if grep -q "^alias npm=" "$BASH_ALIASES" 2>/dev/null; then
|
|
36
|
-
sed -i 's/^alias npm=.*/alias npm="pnpm"/' "$BASH_ALIASES"
|
|
37
|
-
else
|
|
38
|
-
echo 'alias npm="pnpm"' >> "$BASH_ALIASES"
|
|
39
|
-
fi
|
|
40
|
-
echo "👍 upsert: alias npm=\"pnpm\""
|
|
41
|
-
|
|
42
|
-
# report
|
|
43
|
-
echo ""
|
|
44
|
-
echo "Aliases installed to $BASH_ALIASES"
|
|
45
|
-
echo "Run 'source $BASH_ALIASES' or open a new terminal to activate."
|