Skip to content

Commit 52357d0

Browse files
committed
fix: dangerfile was using yarn instead of npm
1 parent ccbb092 commit 52357d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dangerfile.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ const path = require("path");
44
const validateMessage = require("validate-commit-msg");
55

66
const packageChanged = danger.git.modified_files.includes("package.json");
7-
const lockfileChanged = danger.git.modified_files.includes("yarn.lock");
7+
const lockfileChanged = danger.git.modified_files.includes("package-lock.json");
88

99
if (packageChanged && !lockfileChanged) {
10-
warn(`Changes were made to \`package.json\`, but not to \`yarn.lock\`.
11-
If you’ve changed any dependencies (added, removed or updated any packages), please run \`yarn install\` and commit changes in yarn.lock file.`);
10+
warn(`Changes were made to \`package.json\`, but not to \`package-lock.json\`.
11+
If you’ve changed any dependencies (added, removed or updated any packages), please run \`yarn install\` and commit changes in package-lock.json file.`);
1212
}
1313

1414
if (!packageChanged && lockfileChanged) {
15-
warn(`Changes were made to \`yarn.lock\`, but not to \`package.json\`.
16-
Please remove \`yarn.lock\` changes from your pull request. Try to run \`git checkout master -- yarn.lock\` and commit changes.`);
15+
warn(`Changes were made to \`package-lock.json\`, but not to \`package.json\`.
16+
Please remove \`package-lock.json\` changes from your pull request. Try to run \`git checkout master -- package-lock.json\` and commit changes.`);
1717
}
1818

1919
// Check test exclusion (.only) is included

0 commit comments

Comments
 (0)