diff options
author | 2023-10-14 12:58:30 -0700 | |
---|---|---|
committer | 2023-10-14 12:58:30 -0700 | |
commit | f9add8b6bea4df3cdbd56a21f17e4cab1a854e4e (patch) | |
tree | 8e5306104d81c67b771181337bba02cd9ec39453 /docs/install/utilities.md | |
parent | 81a1a58d66c598ea35c42453d0ba4c6341a940fc (diff) | |
parent | 9b5e66453b0879ed77b71dcdbe50e4efa184261e (diff) | |
download | bun-sdl.tar.gz bun-sdl.tar.zst bun-sdl.zip |
Merge branch 'main' into sdlsdl
Diffstat (limited to 'docs/install/utilities.md')
-rw-r--r-- | docs/install/utilities.md | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/docs/install/utilities.md b/docs/install/utilities.md deleted file mode 100644 index 689f177d8..000000000 --- a/docs/install/utilities.md +++ /dev/null @@ -1,58 +0,0 @@ -The `bun pm` command group provides a set of utilities for working with Bun's package manager. - -To print the path to the `bin` directory for the local project: - -```bash -$ bun pm bin -/path/to/current/project/node_modules/.bin -``` - -To print the path to the global `bin` directory: - -```bash -$ bun pm bin -g -<$HOME>/.bun/bin -``` - -To print a list of installed dependencies in the current project and their resolved versions, excluding their dependencies. - -```bash -$ bun pm ls -/path/to/project node_modules (135) -├── eslint@8.38.0 -├── react@18.2.0 -├── react-dom@18.2.0 -├── typescript@5.0.4 -└── zod@3.21.4 -``` - -To print all installed dependencies, including nth-order dependencies. - -```bash -$ bun pm ls --all -/path/to/project node_modules (135) -├── @eslint-community/eslint-utils@4.4.0 -├── @eslint-community/regexpp@4.5.0 -├── @eslint/eslintrc@2.0.2 -├── @eslint/js@8.38.0 -├── @nodelib/fs.scandir@2.1.5 -├── @nodelib/fs.stat@2.0.5 -├── @nodelib/fs.walk@1.2.8 -├── acorn@8.8.2 -├── acorn-jsx@5.3.2 -├── ajv@6.12.6 -├── ansi-regex@5.0.1 -├── ... -``` - -To print the path to Bun's global module cache: - -```bash -$ bun pm cache -``` - -To clear Bun's global module cache: - -```bash -$ bun pm cache rm -``` |