npm package diff
Package: @forge/cli
Versions: 10.5.1-next.6-experimental-22c15de - 10.6.0-next.13
File: package/out/deploy/package-upload-deploy.js
Index: package/out/deploy/package-upload-deploy.js
===================================================================
--- package/out/deploy/package-upload-deploy.js
+++ package/out/deploy/package-upload-deploy.js
@@ -6,21 +6,21 @@
packager;
archiveUploader;
deployer;
resourcePackagingService;
- constructor(packager, archiveUploader, deployer, resourcePackagingService) {
+ i18nResourceBundlingService;
+ constructor(packager, archiveUploader, deployer, resourcePackagingService, i18nResourceBundlingService) {
this.packager = packager;
this.archiveUploader = archiveUploader;
this.deployer = deployer;
this.resourcePackagingService = resourcePackagingService;
+ this.i18nResourceBundlingService = i18nResourceBundlingService;
}
async execute(details) {
const [resourcesToBeBundled, preBundledResources] = (0, lodash_1.partition)(details.resources, (res) => res.resourceType === 'nativeUI');
- const { runtimeArchivePath, nativeUiBundlesDetails, moduleList } = await this.packager.package(details.handlers, resourcesToBeBundled, details.packageConfig);
- const resourcesArchives = await this.resourcePackagingService.zipResources([
- ...preBundledResources,
- ...nativeUiBundlesDetails
- ]);
+ const i18nResourceBundle = await this.i18nResourceBundlingService.bundle(details.modules, details.i18nConfig);
+ const { runtimeArchivePath, nativeUiBundlesDetails, moduleList } = await this.packager.package(details.handlers, resourcesToBeBundled, details.packageConfig, i18nResourceBundle, details.i18nConfig);
+ const resourcesArchives = await this.resourcePackagingService.zipResources([...preBundledResources, ...nativeUiBundlesDetails], i18nResourceBundle);
const [uploadUrl, hostedResourceUploadId] = await Promise.all([
this.archiveUploader.uploadArchive(runtimeArchivePath),
this.archiveUploader.uploadHostedResources(details.environmentKey, resourcesArchives)
]);