@@ -126,18 +126,6 @@ async function run () {
126
126
await $ `npm install --prefix ${ tsValidationPath } `
127
127
}
128
128
129
- const isCompilerBuilt = await $ `[[ -d ${ path . join ( compilerPath , 'lib' ) } ]]` . exitCode === 0
130
- if ( noCache || isStale || ! isCompilerBuilt ) {
131
- spinner . text = 'Optimizing the compiler'
132
- await $ `npm run build --prefix ${ compilerPath } `
133
- }
134
-
135
- const isTsGeneratorBuilt = await $ `[[ -d ${ path . join ( tsGeneratorPath , 'lib' ) } ]]` . exitCode === 0
136
- if ( noCache || isStale || ! isTsGeneratorBuilt ) {
137
- spinner . text = 'Optimizing the ts generator'
138
- await $ `npm run build --prefix ${ tsGeneratorPath } `
139
- }
140
-
141
129
{
142
130
spinner . text = 'Compiling specification'
143
131
const Process = await nothrow ( $ `npm run compile:specification --prefix ${ compilerPath } ` )
@@ -149,7 +137,7 @@ async function run () {
149
137
150
138
{
151
139
spinner . text = 'Generating schema'
152
- const Process = await nothrow ( $ `node ${ path . join ( compilerPath , 'lib' , 'index.js' ) } --spec ${ specPath } --output ${ outputPath } ` )
140
+ const Process = await nothrow ( $ `npm run generate-schema --prefix ${ compilerPath } -- --spec ${ specPath } --output ${ outputPath } ` )
153
141
if ( Process . exitCode !== 0 ) {
154
142
spinner . fail ( removeHeader ( Process . stdout ) )
155
143
console . log ( Process . stderr )
@@ -159,7 +147,7 @@ async function run () {
159
147
160
148
{
161
149
spinner . text = 'Generating typescript view'
162
- const Process = await nothrow ( $ `node ${ path . join ( tsGeneratorPath , 'lib' , 'index.js' ) } ` )
150
+ const Process = await nothrow ( $ `npm run start --prefix ${ tsGeneratorPath } ` )
163
151
if ( Process . exitCode !== 0 ) {
164
152
spinner . fail ( removeHeader ( Process . toString ( ) ) )
165
153
process . exit ( 1 )
0 commit comments