You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/src/why.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ But applications and libraries need different things.
12
12
13
13
Libraries such as [Vue core](https://github.com/vuejs/core), [Vue Router](https://github.com/vuejs/router) and [Pinia](https://github.com/vuejs/pinia/) have also heavily influenced the project structure used by this tool, especially the use of a `packages` directory and pnpm workspaces. Various other tools, such as `simple-git-hooks`, `lint-staged` and VitePress, have been chosen to align with those projects.
14
14
15
-
Those projects use [rollup](https://rollupjs.org/) directly for their builds, rather than Vite. Vite already uses rollup behind the scenes, but using it directly is more flexible. Using Vite as a wrapper has a few advantages:
15
+
Those projects use [rolldown](https://rolldown.rs/) directly for their builds, rather than Vite. Vite already uses rolldown behind the scenes, but using it directly is more flexible. Using Vite as a wrapper has a few advantages:
16
16
17
17
- Vite is familiar to most members of the Vue community.
18
18
- Using Vite keeps us closer to `create-vue`.
19
19
- Vite has its own ecosystem of useful plugins.
20
20
21
-
In particular, the libraries mentioned above don't use `.vue` files in their source code. Compiling `.vue` files with rollup is certainly possible, but it's more convenient to reuse the same toolchain used to build Vue applications.
21
+
In particular, the libraries mentioned above don't use `.vue` files in their source code. Compiling `.vue` files with rolldown is certainly possible, but it's more convenient to reuse the same toolchain used to build Vue applications.
22
22
23
23
## Multiple packages
24
24
@@ -60,7 +60,9 @@ We use a `postinstall` target in `scripts` to update the git hooks, ensuring the
60
60
61
61
## `pnpm-workspace.yaml`
62
62
63
-
Since version 10, pnpm no longer runs `postinstall` scripts in the packages it installs, instead showing a warning. To avoid the warning, these need to be explicitly enabled or disabled in `pnpm-workspace.yaml`, using `onlyBuiltDependencies` or `ignoredBuiltDependencies` respectively.
63
+
### `allowBuilds`
64
+
65
+
Since version 10, pnpm no longer runs `postinstall` scripts in the packages it installs, instead showing a warning. To avoid the warning, these need to be explicitly enabled or disabled via the [`allowBuilds`](https://pnpm.io/settings#allowbuilds) setting in `pnpm-workspace.yaml`.
64
66
65
67
There are 3 packages where this is currently relevant:
66
68
@@ -72,6 +74,10 @@ Both `esbuild` and `@tailwindcss/oxide` have platform-specific binaries that are
72
74
73
75
It should be safe to disable all of these `postinstall` scripts in `pnpm-workspace.yaml` if you prefer.
74
76
77
+
### `minimumReleaseAge`
78
+
79
+
Setting [`minimumReleaseAge`](https://pnpm.io/settings#minimumreleaseage) to `1440` prevents pnpm from installing any packages published in the last 24 hours. This helps to protect against supply chain attacks, as malicious versions of popular packages are typically removed from the npm registry within a few hours.
0 commit comments