@@ -12,24 +12,14 @@ import * as paths from './paths'
1212 *
1313 * The following environment variables are required:
1414 * - `ENSO_BUILD_IDE` - output directory for bundled client files;
15- * - `ENSO_BUILD_PROJECT_MANAGER_IN_BUNDLE_PATH` - path to the project manager executable relative
16- * to the PM bundle root;
1715 * @see bundlerOptions
1816 */
1917export function bundlerOptionsFromEnv ( devMode = false ) : esbuild . BuildOptions {
20- return bundlerOptions (
21- path . join ( paths . getIdeDirectory ( ) , 'client' ) ,
22- paths . getProjectManagerInBundlePath ( ) ,
23- devMode ,
24- )
18+ return bundlerOptions ( path . join ( paths . getIdeDirectory ( ) , 'client' ) , devMode )
2519}
2620
2721/** Get options without relying on the environment. */
28- export function bundlerOptions (
29- outdir : string ,
30- projectManagerInBundlePath : string ,
31- devMode = false ,
32- ) : esbuild . BuildOptions {
22+ export function bundlerOptions ( outdir : string , devMode = false ) : esbuild . BuildOptions {
3323 return {
3424 bundle : true ,
3525 outdir,
@@ -44,9 +34,7 @@ export function bundlerOptions(
4434 '@' : fileURLToPath ( new URL ( './src' , import . meta. url ) ) ,
4535 } ,
4636 define : {
47- 'process.env.PROJECT_MANAGER_IN_BUNDLE_PATH' : JSON . stringify ( projectManagerInBundlePath ) ,
4837 'process.env.ELECTRON_DEV_MODE' : JSON . stringify ( String ( devMode ) ) ,
49- 'process.env.GUI_CONFIG_PATH' : JSON . stringify ( path . resolve ( '../gui/vite.config.ts' ) ) ,
5038 'process.env.ENSO_IDE_VERSION' : JSON . stringify ( process . env . ENSO_IDE_VERSION ) ,
5139 'process.env.ENSO_IDE_COMMIT_HASH' : JSON . stringify ( process . env . ENSO_IDE_COMMIT_HASH ) ,
5240 } ,
0 commit comments