normalizePluginName = (name) => {
  const combineName = (n) => (n.startsWith(PLUGIN_PREFIX) ? n : PLUGIN_PREFIX + n);
  const isScoped = name.startsWith('@');

  if (isScoped) {
    const matches = scopeAndNameRegex.exec(name);
    if (matches) {
      const scope = matches[1];
      const realName = matches[2];
      return `@${scope}/${combineName(realName)}`;
    }
    return null;
  }
  return combineName(name);
}
combine pluginName to packageName
- foo -> svrx-plugin-foo
- foo-bar -> svrx-plugin-foo-bar
- @scope/foo -> @scope/svrx-plugin-foo
- @scope/foo-bar -> @scope/svrx-plugin-foo-bar
@param name
@returns {string|null|*}