@@ -127,18 +127,6 @@ async function run () {
127127    await  $ `npm install --prefix ${ tsValidationPath }  ` 
128128  } 
129129
130-   const  isCompilerBuilt  =  await  $ `[[ -d ${ path . join ( compilerPath ,  'lib' ) }   ]]` . exitCode  ===  0 
131-   if  ( noCache  ||  isStale  ||  ! isCompilerBuilt )  { 
132-     spinner . text  =  'Optimizing the compiler' 
133-     await  $ `npm run build --prefix ${ compilerPath }  ` 
134-   } 
135- 
136-   const  isTsGeneratorBuilt  =  await  $ `[[ -d ${ path . join ( tsGeneratorPath ,  'lib' ) }   ]]` . exitCode  ===  0 
137-   if  ( noCache  ||  isStale  ||  ! isTsGeneratorBuilt )  { 
138-     spinner . text  =  'Optimizing the ts generator' 
139-     await  $ `npm run build --prefix ${ tsGeneratorPath }  ` 
140-   } 
141- 
142130  { 
143131    spinner . text  =  'Compiling specification' 
144132    const  Process  =  await  nothrow ( $ `npm run compile:specification --prefix ${ compilerPath }  ` ) 
@@ -150,7 +138,7 @@ async function run () {
150138
151139  { 
152140    spinner . text  =  'Generating schema' 
153-     const  Process  =  await  nothrow ( $ `node  ${ path . join ( compilerPath ,   'lib' ,   'index.js' ) }   --spec ${ specPath }   --output ${ outputPath }  ` ) 
141+     const  Process  =  await  nothrow ( $ `npm run generate-schema --prefix  ${ compilerPath }  --  --spec ${ specPath }   --output ${ outputPath }  ` ) 
154142    if  ( Process . exitCode  !==  0 )  { 
155143      spinner . fail ( removeHeader ( Process . stdout ) ) 
156144      console . log ( Process . stderr ) 
@@ -160,7 +148,7 @@ async function run () {
160148
161149  { 
162150    spinner . text  =  'Generating typescript view' 
163-     const  Process  =  await  nothrow ( $ `node  ${ path . join ( tsGeneratorPath ,   'lib' ,   'index.js' ) }  ` ) 
151+     const  Process  =  await  nothrow ( $ `npm run start --prefix  ${ tsGeneratorPath }  ` ) 
164152    if  ( Process . exitCode  !==  0 )  { 
165153      spinner . fail ( removeHeader ( Process . toString ( ) ) ) 
166154      process . exit ( 1 ) 
0 commit comments