From 2f3b38818874d6d56604f3463c5f592e5de7a88d Mon Sep 17 00:00:00 2001 From: pedr Date: Wed, 27 Nov 2024 09:11:50 -0300 Subject: [PATCH] Desktop: Fixes #11408: Correct file path of OneNote converter on release build (#11410) --- .../lib/services/interop/InteropService_Importer_OneNote.ts | 2 +- packages/onenote-converter/package.json | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/lib/services/interop/InteropService_Importer_OneNote.ts b/packages/lib/services/interop/InteropService_Importer_OneNote.ts index 942737073..ffb64ea16 100644 --- a/packages/lib/services/interop/InteropService_Importer_OneNote.ts +++ b/packages/lib/services/interop/InteropService_Importer_OneNote.ts @@ -61,7 +61,7 @@ export default class InteropService_Importer_OneNote extends InteropService_Impo const outputDirectory2 = join(tempOutputDirectory, baseFolder); const notebookFiles = zip.getEntries().filter(e => e.name !== '.onetoc2' && e.name !== 'OneNote_RecycleBin.onetoc2'); - const { oneNoteConverter } = shim.requireDynamic('../../../onenote-converter/pkg/onenote_converter'); + const { oneNoteConverter } = shim.requireDynamic('@joplin/onenote-converter'); logger.info('Extracting OneNote to HTML'); for (const notebookFile of notebookFiles) { diff --git a/packages/onenote-converter/package.json b/packages/onenote-converter/package.json index af37fedfc..f8ce07669 100644 --- a/packages/onenote-converter/package.json +++ b/packages/onenote-converter/package.json @@ -10,13 +10,7 @@ "type": "git", "url": "https://github.com/laurent22/joplin" }, - "files": [ - "./pkg/onenote_converter_bg.wasm", - "./pkg/onenote_converter.js", - "./pkg/onenote_converter.d.ts" - ], "main": "./pkg/onenote_converter.js", - "types": "./pkg/onenote_converter.d.ts", "scripts": { "build": "node ./build.js --profile=release", "buildDev": "node ./build.js --profile=dev"