@@ -7,7 +7,7 @@ const path = require('node:path');
77/* Constants / Config */
88
99/** keep ".git", ".github", "website" and "scripts" */
10- const keepRegex = / ^ (?: \. g i t | w e b s i t e | s c r i p t s | v e r s i o n s ) / ;
10+ const keepRegex = / ^ (?: \. g i t | w e b s i t e | s c r i p t s | v e r s i o n s | t y p e d o c ) / ;
1111/** Regex to filter and get versions output from git ls-tree */
1212const versionsFilter = / ^ v e r s i o n s \/ ( \d + \. x | b e t a ) \/ ? $ / ;
1313/** Which branch to deploy to */
@@ -50,6 +50,9 @@ function main() {
5050 // build the website
5151 execSync ( 'yarn --cwd ./website build' , { stdio : 'inherit' } ) ;
5252
53+ // build the typedoc website
54+ execSync ( 'yarn run typedoc' , { stdio : 'inherit' } ) ;
55+
5356 console . log ( '\nSwitching Branches\n' ) ;
5457
5558 // ensure there is nothing blocking from changing branches
@@ -93,6 +96,14 @@ function main() {
9396 fs . renameSync ( from , to ) ;
9497 }
9598
99+ // move typedoc to "deployAs"
100+ {
101+ const from = 'typedoc' ;
102+ const to = path . join ( deployInfo . deployPath , 'typedoc' ) ;
103+ console . log ( 'rename' , from , '->' , to ) ; // always log what is renamed
104+ fs . renameSync ( from , to ) ;
105+ }
106+
96107 // remove website
97108 fs . rmSync ( 'website' , { recursive : true } ) ;
98109
0 commit comments