File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 53
53
" @customize-schemas" ,
54
54
" @generate"
55
55
],
56
- "version-update" : " @generate --category=mp --country=us --api-code=auth " ,
56
+ "version-update" : " @generate --supporting-files-only " ,
57
57
"clean" : " rm -rf docs src/Models/*/* src/Apis/*/*/*" ,
58
58
"lint" : " php vendor/bin/php-cs-fixer fix --allow-risky=yes -vvv"
59
59
},
Original file line number Diff line number Diff line change 55
55
"@customize-schemas",
56
56
"@generate"
57
57
],
58
- "version-update": "@generate --category=mp --country=us --api-code=auth ",
58
+ "version-update": "@generate --supporting-files-only ",
59
59
"clean": "rm -rf docs src/Models/*/* src/Apis/*/*/*",
60
60
"lint": "php vendor/bin/php-cs-fixer fix --allow-risky=yes -vvv"
61
61
},
Original file line number Diff line number Diff line change @@ -162,5 +162,11 @@ function setPrettifyEnv(): void
162
162
putenv ('PHP_POST_PROCESS_FILE= ' . __DIR__ . '/../vendor/bin/php-cs-fixer fix --allow-risky=yes --config ' . __DIR__ . '/../.php-cs-fixer.dist.php ' );
163
163
}
164
164
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