@gzl10/nexus-backend 0.16.1 → 0.16.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/cli.js CHANGED
@@ -713,7 +713,9 @@ import { exec } from "child_process";
713
713
  import { promisify } from "util";
714
714
  function normalizePluginName(name) {
715
715
  if (name.startsWith("@gzl10/nexus-plugin-")) return name;
716
+ if (name.startsWith("@gzl10/nexus-")) return name.replace("@gzl10/nexus-", PLUGIN_PREFIX);
716
717
  if (name.startsWith("nexus-plugin-")) return `@gzl10/${name}`;
718
+ if (name.startsWith("nexus-")) return `${PLUGIN_PREFIX}${name.replace("nexus-", "")}`;
717
719
  return `${PLUGIN_PREFIX}${name}`;
718
720
  }
719
721
  function shortPluginName(name) {