Skip to content

Commit b6720f4

Browse files
committed
add cache directories for package manager in build cache, fixed workers builds build caching list
1 parent 9e30cb0 commit b6720f4

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/content/docs/pages/configuration/build-caching.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ When enabled, the build cache will automatically detect and cache data from each
3636

3737
### Package managers
3838

39-
Package manager caches are automatically saved to the build cache to speed up dependency installation. Pages will cache the global cache directories of the following package managers:
40-
41-
- [yarn 1](https://yarnpkg.com/)
42-
- [npm](https://www.npmjs.com/)
43-
- [pnpm](https://pnpm.io/)
44-
- [bun](https://bun.sh/)
39+
Pages will cache the global cache directories of the following package managers:
40+
41+
| Package Manager | Directories cached |
42+
| ----------------------------- | -------------------- |
43+
| [npm](https://www.npmjs.com/) | `.npm` |
44+
| [yarn](https://yarnpkg.com/) | `.cache/yarn` |
45+
| [pnpm](https://pnpm.io/) | `.pnpm-store` |
46+
| [bun](https://bun.sh/) | `.bun/install/cache` |
4547

4648
### Frameworks
4749

src/content/docs/workers/ci-cd/builds/build-caching.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ The following shows which package managers and frameworks are supported for depe
3939

4040
Workers build cache will cache the global cache directories of the following package managers:
4141

42-
- [yarn](https://yarnpkg.com/)
43-
- [npm](https://www.npmjs.com/)
44-
- [pnpm](https://pnpm.io/)
45-
- [node.js](https://nodejs.org/)
42+
| Package Manager | Directories cached |
43+
| ----------------------------- | -------------------- |
44+
| [npm](https://www.npmjs.com/) | `.npm` |
45+
| [yarn](https://yarnpkg.com/) | `.cache/yarn` |
46+
| [pnpm](https://pnpm.io/) | `.pnpm-store` |
47+
| [bun](https://bun.sh/) | `.bun/install/cache` |
4648

4749
### Frameworks
4850

0 commit comments

Comments
 (0)