fork of hey-api/openapi-ts because I need some additional things

Merge pull request #2751 from warrenseine/main

fix: update CLI to support watch mode with multiple input configurations

authored by

Lubos and committed by
GitHub
617f3a38 549ff587

+9 -7
+5
.changeset/witty-toes-rescue.md
··· 1 + --- 2 + "@hey-api/openapi-ts": patch 3 + --- 4 + 5 + fix(cli): detect watch mode with input array
+1 -5
.vscode/launch.json
··· 14 14 "name": "openapi-ts", 15 15 "skipFiles": ["<node_internals>/**"], 16 16 "runtimeExecutable": "node", 17 - "runtimeArgs": [ 18 - "--loader", 19 - "ts-node/esm", 20 - "--no-warnings=ExperimentalWarning" 21 - ], 17 + "runtimeArgs": [], 22 18 "program": "${workspaceFolder}/packages/openapi-ts/bin/index.cjs", 23 19 "args": [ 24 20 "-f",
+3 -2
packages/openapi-ts/bin/index.cjs
··· 134 134 !context[0] || 135 135 !context[0].config || 136 136 !context[0].config.input || 137 - !context[0].config.input.watch || 138 - !context[0].config.input.watch.enabled 137 + !context[0].config.input.some( 138 + (input) => input.watch && input.watch.enabled, 139 + ) 139 140 ) { 140 141 process.exit(0); 141 142 }