File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ import validateTranslation from '../../services/translation/validate';
1010
1111const helperText = `
1212Usage:
13- --validate-schema sample-widget/schema.json
14- --validate-query-params sample-widget/queryParamsBuilder.json
13+ widget-builder validate --schema sample-widget
14+ widget-builder validate --query-params sample-widget
15+ widget-builder validate --translation sample-widget
1516` ;
1617
1718const validateCommands = ( ) => {
@@ -24,12 +25,13 @@ const validateCommands = () => {
2425 . option ( '--translation' , 'validates schema_translation.json file' )
2526 . addHelpText ( 'afterAll' , helperText )
2627 . action ( ( name , options ) => {
27- const directory = path . resolve ( '.' ) ;
28- if ( options . validateSchema ) {
28+ const directory = path . resolve ( '.' , name ) ;
29+
30+ if ( options . schema ) {
2931 validateSchema ( directory ) ;
3032 }
3133
32- if ( options . validateQueryParamsBuilder ) {
34+ if ( options . queryParams ) {
3335 validateQueryParamsBuilder ( directory ) ;
3436 }
3537
You can’t perform that action at this time.
0 commit comments