Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed platform-bible-utils not being available on backend #782

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/extension-host/services/extension.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Uri } from '@shared/data/file-system.model';
import { getModuleSimilarApiMessage } from '@shared/utils/util';
import Module from 'module';
import * as SillsdevScripture from '@sillsdev/scripture';
import * as platformBibleUtils from 'platform-bible-utils';
import logger from '@shared/services/logger.service';
import { getCommandLineArgumentsGroup, COMMAND_LINE_ARGS } from '@node/utils/command-line.util';
import { setExtensionUris } from '@extension-host/services/extension-storage.service';
Expand Down Expand Up @@ -619,6 +620,7 @@ async function activateExtensions(extensions: ExtensionInfo[]): Promise<ActiveEx
// Allow the extension to import papi and some other things
if (moduleName === '@papi/backend') return papi;
if (moduleName === '@sillsdev/scripture') return SillsdevScripture;
if (moduleName === 'platform-bible-utils') return platformBibleUtils;

// Figure out if we are doing the import for the extension file in activateExtension
const extensionFile = extensionsWithCheck.find(
Expand Down
Loading