@@ -137,7 +137,7 @@ module.exports.copySchematics = (cb) => {
137137const typedocBuildTheme = ( cb ) => {
138138 spawnSync ( `typedoc` , [ TYPEDOC . PROJECT_PATH ,
139139 "--tsconfig" ,
140- "tsconfig.base.json" ] , { stdio : 'inherit' , shell : true } ) ;
140+ path . join ( __dirname , "tsconfig.base.json" ) ] , { stdio : 'inherit' , shell : true } ) ;
141141 cb ( ) ;
142142} ;
143143typedocBuildTheme . displayName = 'typedoc-build:theme' ;
@@ -180,13 +180,26 @@ const TYPEDOC = {
180180} ;
181181
182182function typedocBuildExportFn ( cb ) {
183- spawnSync ( 'typedoc' , [ TYPEDOC . PROJECT_PATH , "--generate-json" , TYPEDOC . EXPORT_JSON_PATH , "--tags" , "--params" ] ,
183+ spawnSync ( 'typedoc' , [
184+ TYPEDOC . PROJECT_PATH ,
185+ "--generate-json" ,
186+ TYPEDOC . EXPORT_JSON_PATH ,
187+ "--tags" ,
188+ "--params" ,
189+ "--tsconfig" ,
190+ path . join ( __dirname , "tsconfig.base.json" ) ] ,
184191 { stdio : 'inherit' , shell : true } ) ;
185192 cb ( ) ;
186193}
187194
188195function typedocImportJsonFn ( cb ) {
189- spawnSync ( 'typedoc' , [ TYPEDOC . PROJECT_PATH , "--generate-from-json" , TYPEDOC . EXPORT_JSON_PATH , "--warns" ] ,
196+ spawnSync ( 'typedoc' , [
197+ TYPEDOC . PROJECT_PATH ,
198+ "--generate-from-json" ,
199+ TYPEDOC . EXPORT_JSON_PATH ,
200+ "--warns" ,
201+ "--tsconfig" ,
202+ path . join ( __dirname , "tsconfig.base.json" ) ] ,
190203 { stdio : 'inherit' , shell : true } ) ;
191204 cb ( ) ;
192205}
@@ -212,7 +225,7 @@ function typedocBuildDocsJA (cb) {
212225 '--localize' ,
213226 'jp' ,
214227 "--tsconfig" ,
215- "tsconfig.base.json" ] , { stdio : 'inherit' , shell : true } ) ;
228+ path . join ( __dirname , "tsconfig.base.json" ) ] , { stdio : 'inherit' , shell : true } ) ;
216229
217230 cb ( ) ;
218231}
@@ -223,7 +236,7 @@ function typedocBuildDocsEN (cb) {
223236 '--localize' ,
224237 'en' ,
225238 "--tsconfig" ,
226- "tsconfig.base.json" ] , { stdio : 'inherit' , shell : true } ) ;
239+ path . join ( __dirname , "tsconfig.base.json" ) ] , { stdio : 'inherit' , shell : true } ) ;
227240
228241 cb ( ) ;
229242}
0 commit comments