Files
ECC/scripts
Nguyen Thanh Dat 9826c934ff fix(dev-command): resolve the script by the manager's own grammar
Two gaps left by the held-candidate approach:

  pnpm dev run build          allow  -- runs `dev`, passing it `run build`
  pnpm --loglevel debug dev   allow  -- `debug` read as the script name

npm has no implicit script form (`npm dev` is not a command), so for npm a
bare token before `run` is always an option value — which is what keeps
`npm --userconfig /tmp/npmrc run dev` blocked without enumerating npm's config
surface. pnpm/yarn/bun do accept `pnpm dev`, so for them the FIRST bare token
is the script and everything after it, `run` included, is its argument.

Their option sets are finite, so the value-taking list is extended with the
ones that can precede an implicit script (--loglevel, --reporter, --store-dir,
--registry, --network-timeout, --env-file, ...).
2026-08-24 14:21:11 +07:00
..