Skip to content

Commit 63a1832

Browse files
committed
chore(openapi): chain typescript generation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent b1a9e12 commit 63a1832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l",
3333
"cs:check": "php-cs-fixer fix --dry-run --diff",
3434
"cs:fix": "php-cs-fixer fix",
35-
"openapi": "generate-spec --verbose",
35+
"openapi": "generate-spec --verbose && (npm run typescript:generate || echo 'Please manually regenerate the typescript OpenAPI models')",
3636
"psalm": "psalm --no-cache --threads=$(nproc)",
3737
"psalm:update-baseline": "psalm --threads=$(nproc) --update-baseline --set-baseline=tests/psalm-baseline.xml",
3838
"post-install-cmd": [

0 commit comments

Comments
 (0)