Skip to content

Commit 7d2ed5f

Browse files
committed
refactor: Consider npm-shrinkwrap.json
1 parent 9972e3e commit 7d2ed5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/project/lib/build/helpers/calculateBuildSignature.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ async function getVersion(pkg) {
4040
async function getLockfileHash(project) {
4141
const rootReader = project.getRootReader({useGitIgnore: false});
4242
const lockfiles = await Promise.all([
43+
// npm
4344
await rootReader.byPath("/package-lock.json"),
45+
await rootReader.byPath("/npm-shrinkwrap.json"),
46+
// Yarn
4447
await rootReader.byPath("/yarn.lock"),
48+
// pnpm
4549
await rootReader.byPath("/pnpm-lock.yaml"),
4650
]);
4751
let hash = "";

0 commit comments

Comments
 (0)