skillsets 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/checksum.js +7 -1
- package/package.json +1 -1
package/dist/lib/checksum.js
CHANGED
|
@@ -31,7 +31,13 @@ export async function verifyChecksums(skillsetId, dir) {
|
|
|
31
31
|
}
|
|
32
32
|
const mismatches = [];
|
|
33
33
|
for (const [file, expectedChecksum] of Object.entries(metadata.files)) {
|
|
34
|
-
|
|
34
|
+
// Only verify files from content/ folder (those are the ones installed)
|
|
35
|
+
if (!file.startsWith('content/')) {
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
// Strip 'content/' prefix since degit extracts content folder's contents directly
|
|
39
|
+
const relativePath = file.slice(8);
|
|
40
|
+
const filePath = path.join(dir, relativePath);
|
|
35
41
|
try {
|
|
36
42
|
const actualChecksum = await computeFileChecksum(filePath);
|
|
37
43
|
// Strip sha256: prefix from expected checksum for comparison
|