@forge/cli
13.3.013.4.0-next.1-experimental-0b00ed8
out/deploy/packager/packager.js~
out/deploy/packager/packager.jsModified+7−3
Index: package/out/deploy/packager/packager.js
===================================================================
--- package/out/deploy/packager/packager.js
+++ package/out/deploy/packager/packager.js
@@ -2,8 +2,9 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppPackager = void 0;
const cli_shared_1 = require("@forge/cli-shared");
const bundler_1 = require("@forge/bundler");
+const archiver_1 = require("./archiver");
class AppPackager {
runtimeBundler;
nativeUiBundler;
logger;
@@ -13,12 +14,15 @@
this.nativeUiBundler = nativeUiBundler;
this.logger = logger;
this.analyticsClient = analyticsClient;
}
- async package({ handlers, resources, allResources, packageConfig, i18nResourceBundle, i18nConfig }) {
+ async package({ handlers, resources, allResources, packageConfig, i18nResourceBundle, i18nConfig, inspect }) {
this.logger.info(cli_shared_1.Text.deploy.taskPackage.title);
- const runtimeBundle = await this.runtimeBundler.bundle(handlers, i18nResourceBundle, packageConfig);
- const nativeUiBundle = await this.nativeUiBundler.bundleResources(resources, i18nConfig);
+ if (inspect) {
+ this.logger.info(cli_shared_1.Text.deploy.taskPackage.inspectOutputPath(archiver_1.INSPECT_ARCHIVE_DIRECTORY));
+ }
+ const runtimeBundle = await this.runtimeBundler.bundle(handlers, i18nResourceBundle, packageConfig, inspect);
+ const nativeUiBundle = await this.nativeUiBundler.bundleResources(resources, i18nConfig, inspect);
const metadata = this.getAppMetadata((0, bundler_1.mergeMetadata)(runtimeBundle.metadata, nativeUiBundle.metadata), {
allResources,
packageConfig
});