Skip to content

Commit 0851903

Browse files
committed
Fix newlines
1 parent 579b216 commit 0851903

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/check_changeset.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,15 @@ async function main() {
110110
changedPkg => !changesetPackages.includes(changedPkg)
111111
);
112112
if (missingPackages.length > 0) {
113-
missingPackagesError = `Warning: This PR modifies files in the following packages but they have not been included in the changeset file:%0A
114-
${missingPackages.map(pkg => `- ${pkg}`).join('%0A')}
115-
%0A
116-
Make sure this was intentional.%0A`;
113+
const missingPackagesLines = [
114+
'Warning: This PR modifies files in the following packages but they have not been included in the changeset file:'
115+
];
116+
for (const missingPackage of missingPackages) {
117+
missingPackagesLines.push(`- ${missingPackage}`);
118+
}
119+
missingPackagesLines.push('');
120+
missingPackagesLines.push('Make sure this was intentional.');
121+
missingPackagesError = missingPackagesLines.join('%0A');
117122
}
118123
}
119124
} catch (e) {

0 commit comments

Comments
 (0)