@microsoft/m365-spec-parser 0.2.0-rc-hotfix.0 → 0.2.0-rc-hotfix.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm2017.mjs
CHANGED
|
@@ -1367,9 +1367,10 @@ class ManifestUpdater {
|
|
|
1367
1367
|
static async updateManifestWithAiPlugin(manifestPath, outputSpecPath, apiPluginFilePath, spec, options, authInfo) {
|
|
1368
1368
|
const manifest = await fs.readJSON(manifestPath);
|
|
1369
1369
|
const apiPluginRelativePath = ManifestUpdater.getRelativePath(manifestPath, apiPluginFilePath);
|
|
1370
|
+
manifest.copilotExtensions = manifest.copilotExtensions || {};
|
|
1370
1371
|
// Insert plugins in manifest.json if it is plugin for Copilot.
|
|
1371
1372
|
if (!options.isGptPlugin) {
|
|
1372
|
-
manifest.plugins = [
|
|
1373
|
+
manifest.copilotExtensions.plugins = [
|
|
1373
1374
|
{
|
|
1374
1375
|
file: apiPluginRelativePath,
|
|
1375
1376
|
id: ConstantString.DefaultPluginId,
|