npm package diff
Package: @forge/manifest
Versions: 7.5.2-next.0-experimental-10722bc - 7.7.0-next.13
File: package/out/utils/manifest-parser-builder.js
Index: package/out/utils/manifest-parser-builder.js
===================================================================
--- package/out/utils/manifest-parser-builder.js
+++ package/out/utils/manifest-parser-builder.js
@@ -0,0 +1,22 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.ManifestParserBuilder = void 0;
+const environment_variable_interpolator_1 = require("../interpolator/environment-variable-interpolator");
+const manifest_interpolator_manager_1 = require("../interpolator/manifest-interpolator-manager");
+const string_resource_interpolator_1 = require("../interpolator/string-resource-interpolator");
+const manifest_parser_1 = require("./manifest-parser");
+class ManifestParserBuilder {
+ manifestInterpolatorManager;
+ constructor() {
+ this.manifestInterpolatorManager = new manifest_interpolator_manager_1.ManifestInterpolatorManager();
+ }
+ withInterpolators() {
+ this.manifestInterpolatorManager.addInterpolator(new environment_variable_interpolator_1.EnvironmentVariableInterpolator(process.env));
+ this.manifestInterpolatorManager.addInterpolator(new string_resource_interpolator_1.StringResourceInterpolator());
+ return this;
+ }
+ build() {
+ return new manifest_parser_1.ManifestParser(this.manifestInterpolatorManager);
+ }
+}
+exports.ManifestParserBuilder = ManifestParserBuilder;