@mcesystems/apple-kit 1.0.47 → 1.0.48

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
@@ -33665,7 +33665,22 @@ var import_promises = require("node:fs/promises");
33665
33665
  var import_node_path5 = require("node:path");
33666
33666
  var import_node_url = require("node:url");
33667
33667
  var import_meta2 = {};
33668
+ function resolveEnvPlistDir() {
33669
+ const envPath = process.env.RESOURCES_PLIST_DIR || process.env.resourcesPlistDir;
33670
+ if (!envPath) {
33671
+ return null;
33672
+ }
33673
+ const absolutePath = (0, import_node_path5.isAbsolute)(envPath) ? envPath : (0, import_node_path5.join)(process.cwd(), envPath);
33674
+ if ((0, import_node_fs3.existsSync)(absolutePath)) {
33675
+ return absolutePath;
33676
+ }
33677
+ return null;
33678
+ }
33668
33679
  function getPlistDir() {
33680
+ const envPlistDir = resolveEnvPlistDir();
33681
+ if (envPlistDir) {
33682
+ return envPlistDir;
33683
+ }
33669
33684
  let baseDir;
33670
33685
  try {
33671
33686
  if (typeof import_meta2 !== "undefined" && import_meta2.url) {