Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle new packages in lockfile comparisons
- Loading branch information
Greg Soltis
authored and
Greg Soltis
committed
May 10, 2024
1 parent
cc565e8
commit 75c3f5b
Showing
7 changed files
with
62 additions
and
6 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
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
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
20 changes: 20 additions & 0 deletions
20
turborepo-tests/integration/tests/lockfile-aware-caching/new-package.t
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,20 @@ | ||
Setup | ||
$ . ${TESTDIR}/../../../helpers/setup.sh | ||
$ . ${TESTDIR}/setup.sh $(pwd) pnpm | ||
|
||
Add new package with an external dependency | ||
$ mkdir -p apps/c | ||
$ echo '{"name":"c", "dependencies": {"has-symbols": "^1.0.3"}}' > apps/c/package.json | ||
|
||
Update lockfile | ||
$ pnpm i > /dev/null | ||
|
||
Now build and verify that only the new package is in scope | ||
Note that we need --skip-infer because we've now installed a local | ||
turbo in this repo | ||
$ ${TURBO} --skip-infer build -F '[HEAD]' -F '!//' --dry=json | jq '.packages' | ||
[ | ||
"c" | ||
] | ||
[ | ||
] |