@@ -83,6 +83,10 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
8383 const browserAppOutputPath = path . join ( pkgsPath , "app" , "browser" , "out" ) ;
8484 const nodePtyModule = path . join ( pkgsPath , "protocol" , "node_modules" , "node-pty" , "build" , "Release" , "pty.node" ) ;
8585 const spdlogModule = path . join ( pkgsPath , "protocol" , "node_modules" , "spdlog" , "build" , "Release" , "spdlog.node" ) ;
86+ let ripgrepPath = path . join ( pkgsPath , ".." , "lib" , "vscode" , "node_modules" , "vscode-ripgrep" , "bin" , "rg" ) ;
87+ if ( os . platform ( ) === "win32" ) {
88+ ripgrepPath += ".exe" ;
89+ }
8690
8791 if ( ! fs . existsSync ( nodePtyModule ) ) {
8892 throw new Error ( "Could not find pty.node. Ensure all packages have been installed" ) ;
@@ -99,6 +103,9 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
99103 if ( ! fs . existsSync ( bootstrapForkPath ) ) {
100104 throw new Error ( "Bootstrap fork must exist" ) ;
101105 }
106+ if ( ! fs . existsSync ( ripgrepPath ) ) {
107+ throw new Error ( "Ripgrep must exist" ) ;
108+ }
102109 fse . copySync ( defaultExtensionsPath , path . join ( cliBuildPath , "extensions" ) ) ;
103110 fs . writeFileSync ( path . join ( cliBuildPath , "bootstrap-fork.js.gz" ) , zlib . gzipSync ( fs . readFileSync ( bootstrapForkPath ) ) ) ;
104111 const cpDir = ( dir : string , subdir : "auth" | "unauth" , rootPath : string ) : void => {
@@ -116,9 +123,10 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
116123 } ;
117124 cpDir ( webOutputPath , "auth" , webOutputPath ) ;
118125 cpDir ( browserAppOutputPath , "unauth" , browserAppOutputPath ) ;
119- fse . mkdirpSync ( path . join ( cliBuildPath , "modules" ) ) ;
120- fse . copySync ( nodePtyModule , path . join ( cliBuildPath , "modules" , "pty.node" ) ) ;
121- fse . copySync ( spdlogModule , path . join ( cliBuildPath , "modules" , "spdlog.node" ) ) ;
126+ fse . mkdirpSync ( path . join ( cliBuildPath , "dependencies" ) ) ;
127+ fse . copySync ( nodePtyModule , path . join ( cliBuildPath , "dependencies" , "pty.node" ) ) ;
128+ fse . copySync ( spdlogModule , path . join ( cliBuildPath , "dependencies" , "spdlog.node" ) ) ;
129+ fse . copySync ( ripgrepPath , path . join ( cliBuildPath , "dependencies" , "rg" ) ) ;
122130} ) ;
123131
124132const buildServerBundle = register ( "build:server:bundle" , async ( runner ) => {
0 commit comments