@stagware/nocodb-cli 0.1.0 → 0.1.2
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/index.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6521,11 +6521,13 @@ function shouldAutoRun() {
|
|
|
6521
6521
|
return false;
|
|
6522
6522
|
}
|
|
6523
6523
|
try {
|
|
6524
|
-
const
|
|
6525
|
-
const
|
|
6526
|
-
|
|
6524
|
+
const entryReal = fs9.realpathSync(path9.resolve(process.argv[1]));
|
|
6525
|
+
const selfReal = fs9.realpathSync(path9.resolve(fileURLToPath(import.meta.url)));
|
|
6526
|
+
if (entryReal === selfReal) return true;
|
|
6527
|
+
if (!/\.[cm]?[jt]s$/.test(entryReal)) return true;
|
|
6528
|
+
return false;
|
|
6527
6529
|
} catch {
|
|
6528
|
-
return
|
|
6530
|
+
return false;
|
|
6529
6531
|
}
|
|
6530
6532
|
}
|
|
6531
6533
|
if (shouldAutoRun()) {
|