npm package diff

Package: @forge/cli

Versions: 11.3.0-next.17-experimental-beb5acf - 11.3.0-next.22

File: package/out/deploy/packager/runtime-bundler.js

Index: package/out/deploy/packager/runtime-bundler.js
===================================================================
--- package/out/deploy/packager/runtime-bundler.js
+++ package/out/deploy/packager/runtime-bundler.js
@@ -4,8 +4,9 @@
 const tslib_1 = require("tslib");
 const path_1 = tslib_1.__importDefault(require("path"));
 const bundler_1 = require("@forge/bundler");
 const cli_shared_1 = require("@forge/cli-shared");
+const i18n_1 = require("@forge/i18n");
 class RuntimeBundler {
     archiverFactory;
     logger;
     bundler;
@@ -56,11 +57,19 @@
         const moduleList = await this.packageCode(archiver, entryPoints, i18nResourceBundle);
         await this.packageDependencies(archiver);
         return moduleList;
     }
+    packageI18nResources(archiver, i18nResourceBundle) {
+        (0, cli_shared_1.listFilesInI18nResourceBundle)(i18nResourceBundle).forEach(([fileName, filePath]) => {
+            archiver.addFileFrom(path_1.default.join(i18n_1.I18N_BUNDLE_FOLDER_NAME, fileName), filePath);
+        });
+    }
     async bundle(handlers, i18nResourceBundle, packageConfig) {
         const archiver = this.archiverFactory();
         const moduleList = await this.packageAll(archiver, handlers, packageConfig, i18nResourceBundle);
+        if (moduleList.length === 0) {
+            this.packageI18nResources(archiver, i18nResourceBundle);
+        }
         const archivePath = await archiver.finalise();
         this.logger.debug(cli_shared_1.Text.deploy.taskPackage.archiveCreated(archivePath));
         return { runtimeArchivePath: archivePath, moduleList };
     }