@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 +6 -0
- package/package.json +1 -1
- package/revalidation-matrix-test.mjs +11 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -447,7 +447,17 @@ async function main() {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
|
|
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) => {
|