()
| 346 | } |
| 347 | |
| 348 | function main() { |
| 349 | const args = new Set(process.argv.slice(2)) |
| 350 | |
| 351 | if (args.has('--help') || args.has('-h')) { |
| 352 | printHelp() |
| 353 | return |
| 354 | } |
| 355 | |
| 356 | if (args.has('--print-config')) { |
| 357 | loadEnvFileIntoEnv() |
| 358 | printConfig(createDevConfig()) |
| 359 | return |
| 360 | } |
| 361 | |
| 362 | startDev() |
| 363 | } |
| 364 | |
| 365 | const entryPath = process.argv[1] ? path.resolve(process.argv[1]) : '' |
| 366 | if (entryPath === fileURLToPath(import.meta.url)) { |
no test coverage detected