File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 " @customize-schemas" ,
5454 " @generate"
5555 ],
56- "version-update" : " @generate --category=mp --country=us --api-code=auth " ,
56+ "version-update" : " @generate --supporting-files-only " ,
5757 "clean" : " rm -rf docs src/Models/*/* src/Apis/*/*/*" ,
5858 "lint" : " php vendor/bin/php-cs-fixer fix --allow-risky=yes -vvv"
5959 },
Original file line number Diff line number Diff line change 5555 "@customize-schemas",
5656 "@generate"
5757 ],
58- "version-update": "@generate --category=mp --country=us --api-code=auth ",
58+ "version-update": "@generate --supporting-files-only ",
5959 "clean": "rm -rf docs src/Models/*/* src/Apis/*/*/*",
6060 "lint": "php vendor/bin/php-cs-fixer fix --allow-risky=yes -vvv"
6161 },
Original file line number Diff line number Diff line change @@ -162,5 +162,11 @@ function setPrettifyEnv(): void
162162 putenv ('PHP_POST_PROCESS_FILE= ' . __DIR__ . '/../vendor/bin/php-cs-fixer fix --allow-risky=yes --config ' . __DIR__ . '/../.php-cs-fixer.dist.php ' );
163163}
164164
165- $ opts = handleSchemaOpts ();
166- generateApis (...$ opts );
165+ // Only regenerate supporting files if the --supporting-files-only flag is passed, regardless of any other flags
166+ $ opts = getopt ('' , ['supporting-files-only ' ]);
167+ if (array_key_exists ('supporting-files-only ' , $ opts )) {
168+ generateSupportingFiles ();
169+ } else {
170+ $ opts = handleSchemaOpts ();
171+ generateApis (...$ opts );
172+ }
You can’t perform that action at this time.
0 commit comments