Akos Kitta 9a6a457bc4
chore(deps): Updated to Theia 1.39.0 (#2144)
- update Theia to `1.39.0`,
 - remove the application packager and fix the security vulnerabilities,
 - bundle the backed application with `webpack`, and
 - enhance the developer docs.

Co-authored-by: Akos Kitta <a.kitta@arduino.cc>
Co-authored-by: per1234 <accounts@perglass.com>

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
2023-08-14 12:12:05 +02:00

33 lines
1.0 KiB
TypeScript

import path from 'node:path';
// When running the tests, the JS files are not yet bundled by webpack.
// Hence, the `resources` folder lookup is different.
const testEnv = process.env.IDE2_TEST === 'true';
const resourcesPath = path.join(
__dirname,
...(testEnv ? ['..', '..', 'src', 'node', 'resources'] : ['resources'])
);
const exe = process.platform === 'win32' ? '.exe' : '';
// binaries
export const arduinoCliPath = path.join(resourcesPath, 'arduino-cli' + exe);
export const arduinoFirmwareUploaderPath = path.join(
resourcesPath,
'arduino-fwuploader' + exe
);
export const arduinoLanguageServerPath = path.join(
resourcesPath,
'arduino-language-server' + exe
);
export const clangdPath = path.join(resourcesPath, 'clangd' + exe);
export const clangFormatPath = path.join(resourcesPath, 'clang-format' + exe);
// plotter
export const arduinoPlotterWebAppPath = path.join(
resourcesPath,
'arduino-serial-plotter-webapp'
);
// examples
export const examplesPath = path.join(resourcesPath, 'Examples');