@cleartrip/frontguard 0.3.0 → 0.3.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/cli.js CHANGED
@@ -5130,11 +5130,12 @@ function tokenizeCommand(cmd) {
5130
5130
  }
5131
5131
  function npmScriptFromBuildCommand(cmd) {
5132
5132
  const t3 = cmd.trim();
5133
- if (/^yarn\s+build\b/i.test(t3)) return "build";
5134
5133
  const np = /^(?:npm|pnpm)\s+run\s+(\S+)/i.exec(t3);
5135
5134
  if (np?.[1]) return np[1];
5136
5135
  const yr = /^yarn\s+run\s+(\S+)/i.exec(t3);
5137
5136
  if (yr?.[1]) return yr[1];
5137
+ const yPlain = /^yarn\s+(?!run\b)(\S+)/i.exec(t3);
5138
+ if (yPlain?.[1]) return yPlain[1];
5138
5139
  return null;
5139
5140
  }
5140
5141
  async function bundleBuildPrecheck(cwd, buildCommand) {