Skip to content

Commit

Permalink
Fixed platform-bible-utils not being available on backend (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcouch-sil authored Feb 27, 2024
2 parents f3254e8 + 0ffa3fa commit 1a5cd6f
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 1a5cd6f

Please sign in to comment.