@@ -127,18 +127,6 @@ async function run () {
127
127
await $ `npm install --prefix ${ tsValidationPath } `
128
128
}
129
129
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
-
142
130
{
143
131
spinner . text = 'Compiling specification'
144
132
const Process = await nothrow ( $ `npm run compile:specification --prefix ${ compilerPath } ` )
@@ -150,7 +138,7 @@ async function run () {
150
138
151
139
{
152
140
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 } ` )
154
142
if ( Process . exitCode !== 0 ) {
155
143
spinner . fail ( removeHeader ( Process . stdout ) )
156
144
console . log ( Process . stderr )
@@ -160,7 +148,7 @@ async function run () {
160
148
161
149
{
162
150
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 } ` )
164
152
if ( Process . exitCode !== 0 ) {
165
153
spinner . fail ( removeHeader ( Process . toString ( ) ) )
166
154
process . exit ( 1 )
0 commit comments