npm package diff
Package: @forge/cli
Versions: 10.12.1-next.2 - 10.13.0-next.18
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
@@ -5,10 +5,8 @@
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");
-const packager_1 = require("./packager");
-const node_1 = require("@forge/bundler/out/config/node");
const path_2 = require("path");
class RuntimeBundler {
archiverFactory;
logger;
@@ -26,20 +24,20 @@
const moduleList = [];
if (entryPoints.length > 0) {
let bundlerResponse;
try {
- bundlerResponse = await this.bundler(this.logger, process.cwd(), entryPoints);
+ bundlerResponse = await this.bundler.bundle({ appDirectory: process.cwd(), entryPoints });
}
catch (e) {
- throw new packager_1.BundlerError(e.message);
+ throw new bundler_1.BundlerError(e.message);
}
const { outputDir, metadata } = bundlerResponse;
if (metadata) {
if (metadata.modules) {
moduleList.push(...metadata.modules);
}
if (metadata.nodeRuntimeVersion) {
- archiver.addFile(node_1.NODE_RUNTIME_VERSION_FILE, Buffer.from(metadata.nodeRuntimeVersion));
+ archiver.addFile(bundler_1.NODE_RUNTIME_VERSION_FILE, Buffer.from(metadata.nodeRuntimeVersion));
}
}
this.logger.debug(cli_shared_1.Text.deploy.taskPackage.packageBundledFiles);
for (const name of await this.fileSystemReader.getFileGlobList([`${outputDir}/**`])) {
@@ -80,9 +78,9 @@
exports.RuntimeBundler = RuntimeBundler;
class SandboxRuntimeBundler extends RuntimeBundler {
async bundle(handlers, i18nResourceBundle, packageConfig) {
if (packageConfig) {
- throw new packager_1.BundlerError(cli_shared_1.Text.deploy.taskPackage.packageOptionsNotSupported);
+ throw new bundler_1.BundlerError(cli_shared_1.Text.deploy.taskPackage.packageOptionsNotSupported);
}
return await super.bundle(handlers, i18nResourceBundle, packageConfig);
}
}