@@ -83,6 +83,10 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
83
83
const browserAppOutputPath = path . join ( pkgsPath , "app" , "browser" , "out" ) ;
84
84
const nodePtyModule = path . join ( pkgsPath , "protocol" , "node_modules" , "node-pty" , "build" , "Release" , "pty.node" ) ;
85
85
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
+ }
86
90
87
91
if ( ! fs . existsSync ( nodePtyModule ) ) {
88
92
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
99
103
if ( ! fs . existsSync ( bootstrapForkPath ) ) {
100
104
throw new Error ( "Bootstrap fork must exist" ) ;
101
105
}
106
+ if ( ! fs . existsSync ( ripgrepPath ) ) {
107
+ throw new Error ( "Ripgrep must exist" ) ;
108
+ }
102
109
fse . copySync ( defaultExtensionsPath , path . join ( cliBuildPath , "extensions" ) ) ;
103
110
fs . writeFileSync ( path . join ( cliBuildPath , "bootstrap-fork.js.gz" ) , zlib . gzipSync ( fs . readFileSync ( bootstrapForkPath ) ) ) ;
104
111
const cpDir = ( dir : string , subdir : "auth" | "unauth" , rootPath : string ) : void => {
@@ -116,9 +123,10 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
116
123
} ;
117
124
cpDir ( webOutputPath , "auth" , webOutputPath ) ;
118
125
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" ) ) ;
122
130
} ) ;
123
131
124
132
const buildServerBundle = register ( "build:server:bundle" , async ( runner ) => {
0 commit comments