@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.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. 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 entryPath = path9.resolve(process.argv[1]);
6525
- const currentPath = path9.resolve(fileURLToPath(import.meta.url));
6526
- return entryPath === currentPath;
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 true;
6530
+ return false;
6529
6531
  }
6530
6532
  }
6531
6533
  if (shouldAutoRun()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stagware/nocodb-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Command-line interface for NocoDB — manage bases, tables, rows, views, and more from the terminal",
5
5
  "type": "module",
6
6
  "license": "MIT",