@se-studio/site-check 2.8.0 → 2.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix `revalidation-matrix-test` CLI entry detection under pnpm bin wrappers and symlinked installs by comparing realpaths when deciding whether to run `main()`.
8
+
3
9
  ## 2.8.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/site-check",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Validate SE marketing sites (sitemap, llms.txt) and download markdown files preserving structure",
5
5
  "repository": {
6
6
  "type": "git",
@@ -447,7 +447,17 @@ async function main() {
447
447
  }
448
448
  }
449
449
 
450
- const isMain = process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url);
450
+ function resolveRealPath(filePath) {
451
+ try {
452
+ return fs.realpathSync(path.resolve(filePath));
453
+ } catch {
454
+ return path.resolve(filePath);
455
+ }
456
+ }
457
+
458
+ const invokedPath = process.argv[1] ? resolveRealPath(process.argv[1]) : '';
459
+ const modulePath = resolveRealPath(fileURLToPath(import.meta.url));
460
+ const isMain = invokedPath !== '' && invokedPath === modulePath;
451
461
 
452
462
  if (isMain) {
453
463
  main().catch((error) => {