1 parent 0318a54 commit edec4ebCopy full SHA for edec4eb
1 file changed
src/package-smoke.test.ts
@@ -31,7 +31,7 @@ for (const path of requiredAssets) {
31
}
32
33
for (const path of requiredAssets.filter((asset) => asset.endsWith("/SKILL.md"))) {
34
- const contents = readFileSync(resolve(projectRoot, path), "utf8");
+ const contents = normalizeNewlines(readFileSync(resolve(projectRoot, path), "utf8"));
35
assert.match(
36
contents,
37
new RegExp(`\\n version: ${escapeRegExp(packageVersion)}\\n`),
@@ -53,3 +53,7 @@ for (const removedPath of [
53
function escapeRegExp(value: string): string {
54
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
55
56
+
57
+function normalizeNewlines(value: string): string {
58
+ return value.replace(/\r\n/g, "\n");
59
+}
0 commit comments