File size: 455 Bytes
af1bee9 | 1 2 3 4 5 6 7 8 9 | #!/usr/bin/env node
// Cross-platform `VAR=x node scripts/run.js` for npm scripts (POSIX inline env fails on Windows cmd/PowerShell).
// Usage: node scripts/with-env.js RUN_TIERS=P1 [MORE=x ...] [playwright args...]. Leading KEY=VALUE args set env, the rest go to run.js.
while (/^[A-Z_][A-Z0-9_]*=/.test(process.argv[2] || '')) {
const [k, ...v] = process.argv.splice(2, 1)[0].split('=');
process.env[k] = v.join('=');
}
require('./run.js');
|