simple-photo-gallery 2.2.0 → 2.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/index.js CHANGED
@@ -1304,7 +1304,9 @@ function isLocalThemePath(theme) {
1304
1304
  return theme.startsWith("./") || theme.startsWith("../") || theme.startsWith("/");
1305
1305
  }
1306
1306
  function resolvePackageJsonPath(packageName) {
1307
- const candidates = [path7.join(process8.cwd(), "package.json"), process8.argv[1]].filter(Boolean);
1307
+ const cliPath = process8.argv[1];
1308
+ const installedCliPath = cliPath && fs10.existsSync(cliPath) ? fs10.realpathSync(cliPath) : void 0;
1309
+ const candidates = [path7.join(process8.cwd(), "package.json"), cliPath, installedCliPath].filter(Boolean);
1308
1310
  for (const candidate of candidates) {
1309
1311
  try {
1310
1312
  return createRequire(candidate).resolve(`${packageName}/package.json`);
@@ -1893,7 +1895,7 @@ async function waitForUpdateCheck(checkPromise) {
1893
1895
  // package.json
1894
1896
  var package_default = {
1895
1897
  name: "simple-photo-gallery",
1896
- version: "2.2.0"};
1898
+ version: "2.2.1"};
1897
1899
 
1898
1900
  // src/index.ts
1899
1901
  var program = new Command();