Skip to content

Commit 993d63e

Browse files
author
elvis kahoro
committed
Merge branch 'timscodebase-main'
2 parents 5e9a425 + 8f11069 commit 993d63e

10 files changed

Lines changed: 83 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Find version of an installed pnpm package
3+
command: "pnpm list {{package_name}}"
4+
tags:
5+
- pnpm
6+
description: "Lists the version name of an installed package. To see the versions of all installed packages, run `pnpm list` without passing a package name."
7+
arguments:
8+
- name: package_name
9+
description: The name of the package
10+
default_value: ~
11+
source_url: "https://pnpm.io/6.x/cli/list"
12+
author: Tim Smith
13+
author_url: "https://timsmith.tech"
14+
shells: []
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: List all globally installed PNPM packages
3+
command: pnpm ls --depth 0
4+
tags:
5+
- pnpm
6+
description: "Lists all globally installed PNPM packages, avoiding including any package's dependencies in the view."
7+
arguments: []
8+
source_url: "https://pnpm.io/6.x/cli/list#--depth-number"
9+
author: Tim Smith
10+
author_url: "https://timsmith.tech"
11+
shells: []
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Reinstall all PNPM dependencies
3+
command: rm -rf node_modules && pnpm install
4+
tags:
5+
- pnpm
6+
description: Reinstalls all dependencies by removing the node_modules folder and then reinstalling.
7+
arguments: []
8+
source_url: "https://pnpm.io/cli/install"
9+
author: Tim Smith
10+
author_url: "https://timsmith.tech"
11+
shells: []
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Remove all global pnpm modules
3+
command: "rm -rf ~/.pnpm-store"
4+
tags:
5+
- pnpm
6+
description: "Removes all global pnpm modules by removing the `~/.pnpm-store` folder."
7+
arguments: []
8+
source_url: "https://pnpm.io/6.x/uninstall"
9+
author: Tim Smith
10+
author_url: "https://timsmith.tech"
11+
shells: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Uninstall a local PNPM package
3+
command: "pnpm uninstall {{name}}"
4+
tags:
5+
- pnpm
6+
description: "Removes a module from `node_modules` and from `package.json`."
7+
arguments:
8+
- name: name
9+
description: The name of the package to uninstall
10+
default_value: ~
11+
source_url: "https://pnpm.io/cli/remove"
12+
author: Tim Smith
13+
author_url: "https://timsmith.tech"
14+
shells: []
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Update each dependency in package.json to the latest version (PNPM)
3+
command: "npm config --global set strict-peer-dependencies=false && pnpm update --latest"
4+
tags:
5+
- pnpm
6+
description: "Sets strict-peer-dependencies to false globally and updates each dependency in package.json to the latest version."
7+
arguments: []
8+
source_url: "https://github.com/pnpm/pnpm/issues/4651"
9+
author: Tim Smith
10+
author_url: "https://timsmith.tech"
11+
shells: []
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Update PNPM to the latest version
3+
command: pnpm update -g pnpm
4+
tags:
5+
- pnpm
6+
description: Updates pnpm to the latest version.
7+
arguments: []
8+
source_url: "https://pnpm.io/cli/update"
9+
author: Tim Smith
10+
author_url: "https://timsmith.tech"
11+
shells: []

0 commit comments

Comments
 (0)