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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # simple-photo-gallery
2
2
 
3
+ ## 2.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix bundled theme resolution when the CLI is invoked through a global npm binary symlink.
8
+ - Updated dependencies
9
+ - @simple-photo-gallery/common@2.2.1
10
+ - @simple-photo-gallery/theme-modern@2.2.1
11
+
3
12
  ## 2.2.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1318,7 +1318,9 @@ function isLocalThemePath(theme) {
1318
1318
  return theme.startsWith("./") || theme.startsWith("../") || theme.startsWith("/");
1319
1319
  }
1320
1320
  function resolvePackageJsonPath(packageName) {
1321
- const candidates = [path7__default.default.join(process8__default.default.cwd(), "package.json"), process8__default.default.argv[1]].filter(Boolean);
1321
+ const cliPath = process8__default.default.argv[1];
1322
+ const installedCliPath = cliPath && fs10__default.default.existsSync(cliPath) ? fs10__default.default.realpathSync(cliPath) : void 0;
1323
+ const candidates = [path7__default.default.join(process8__default.default.cwd(), "package.json"), cliPath, installedCliPath].filter(Boolean);
1322
1324
  for (const candidate of candidates) {
1323
1325
  try {
1324
1326
  return module$1.createRequire(candidate).resolve(`${packageName}/package.json`);
@@ -1907,7 +1909,7 @@ async function waitForUpdateCheck(checkPromise) {
1907
1909
  // package.json
1908
1910
  var package_default = {
1909
1911
  name: "simple-photo-gallery",
1910
- version: "2.2.0"};
1912
+ version: "2.2.1"};
1911
1913
 
1912
1914
  // src/index.ts
1913
1915
  var program = new commander.Command();