-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deploy): create dedicated lockfile (#8828)
* feat(deploy): create dedicated lockfile Closes #8778 * chore: remove a leftover `console.log` * fix: hoisted should also use dedicated lockfile * feat: inherit more keys * docs(changeset): more details * refactor: remove a variable * refactor: use `selectedProject.rootDir` * fix: manifest files * fix: update lockfile * fix: accidentally skipped normal dependencies * test: update * fix: meta * fix: remove links to nowhere * docs: remove the false todo * fix: transitive workspace dependencies * fix: package snapshot names * fix: dependencies that depend on deployed package * perf: do not repeat computation * fix: compile error * refactor: base on allProjects * fix: add missing `link:` prefix * test: add some tests * fix: revert stupid refactor This reverts commit 0007881. * test: more assertions * test: more assertions * test: #8778 * test: exact paths * refactor: use `toBe` * refactor: divide section * fix: eslint * test: fix assertions * fix: dependencies that depend on deploy package * perf: cheap operation first * test: remove `.only` * test: add assertions * test: remove unnecessary assertions * test: remove unnecessary details * fix: deployed package depends on itself * docs: remove the other todo * fix: self-referential dependencies * test: fix * test: more assertions * feat: convert fallbacks to programmer errors * fix: `file:` protocol * refactor: more types * refactor: remove unused variables * refactor: fix regex * feat: force-legacy-deploy * feat: suggest reporting bug and using workaround * feat: overrides, patchedDependencies, packageExtensions (wip) * test: fix * feat: handle `packageExtensions` in a smarter way * fix: pnpmfile * docs: change wording * fix: `packageExtensions` with internal dependencies * fix: directory resolution location * refactor: use `rootProjectManifestDir` * feat: set `overrides` to `undefined` instead * refactor: remove `as ProjectRootDirRealPath` * test: packageExtensions * test: use regex string matchers * refactor: move new tests to its own file * fix: patchedDependencies * fix: eslint * test: patchedDependencies * test: fix windows * fix: pnpmfile checksum * docs: change wording * fix: peer dependencies * docs: omission of peers * docs: more detailed explanation * fix: preserve unique peer dependencies suffix * refactor: code rearrange * refactor: shorten lines of code * feat: add `dedupeInjectedDeps` to `InstallCommandOptions` * test: peer dependencies suffix * docs(changeset): config -> force-legacy-deploy * docs(changeset): merge * docs(changeset): add missing period
- Loading branch information
Showing
15 changed files
with
1,503 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@pnpm/config": minor | ||
"@pnpm/plugin-commands-deploy": minor | ||
"pnpm": minor | ||
--- | ||
|
||
`pnpm deploy` now tries creating a dedicated lockfile from a shared lockfile for deployment. It will fallback to deployment without a lockfile if there is no shared lockfile or `force-legacy-deploy` is set to `true`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@pnpm/plugin-commands-deploy": patch | ||
"pnpm": patch | ||
--- | ||
|
||
Fix an issue in which `pnpm deploy --prod` fails due to missing `devDependencies` [#8778](https://github.com/pnpm/pnpm/issues/8778). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pnpm/plugin-commands-installation": minor | ||
--- | ||
|
||
Add `dedupeInjectedDeps` to `InstallCommandOptions`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.