@tridion-docs/extensions-cli 2.1.2 → 2.1.3
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/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Copyright © 2026 RWS Holdings plc including its subsidiaries and affiliated com
|
|
|
9
9
|
|
|
10
10
|
# Compatibility
|
|
11
11
|
|
|
12
|
-
This version of the package is compatible with Tridion Docs 15.2
|
|
12
|
+
This version of the package is compatible with Tridion Docs 15.2 and 15.3
|
|
13
13
|
|
|
14
14
|
# Documentation
|
|
15
15
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { resolve, basename } from 'node:path';
|
|
3
3
|
import { w as writeJsonFile, r as readJsonFile, A as AddonManifest } from './addonManifest-tFdjtMXO.js';
|
|
4
|
+
import { ExtensionType } from '@tridion-docs/extensions';
|
|
4
5
|
import 'node:fs';
|
|
5
6
|
|
|
6
7
|
class AddonConfiguration {
|
|
@@ -57,13 +58,14 @@ const getLocalFrontendAddon = ({ manifestPath, addonConfigPath }) => {
|
|
|
57
58
|
const localExtensions = manifest.getFrontendExtensions();
|
|
58
59
|
localExtensions.forEach(extension => {
|
|
59
60
|
var _a;
|
|
60
|
-
if (extension.name) {
|
|
61
|
+
if (extension.name && extension.type === ExtensionType.OrganizeSpace) {
|
|
61
62
|
localAddon.configuration[extension.name] = (addonConfiguration === null || addonConfiguration === void 0 ? void 0 : addonConfiguration.configPerExtension[extension.name]) || {};
|
|
62
63
|
const extensionFiles = extension.files.map(filePath => `${extensionsRequestBasePath}/${extension.name}/${filePath}?hash=${Date.now()}`);
|
|
63
64
|
(_a = localAddon.extensions) === null || _a === void 0 ? void 0 : _a.push({
|
|
64
65
|
$type: 'OrganizeSpaceExtension',
|
|
65
66
|
name: extension.name,
|
|
66
67
|
contents: extensionFiles,
|
|
68
|
+
type: 'OrganizeSpaceExtension',
|
|
67
69
|
});
|
|
68
70
|
}
|
|
69
71
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tridion-docs/extensions-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "CLI to develop, build and package extensions for Tridion Docs Organize Space",
|
|
5
5
|
"author": "RWS Group for and on behalf of its affiliates and subsidiaries",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@inquirer/confirm": "6.0.7",
|
|
33
33
|
"@inquirer/input": "5.0.7",
|
|
34
34
|
"@inquirer/select": "5.0.7",
|
|
35
|
-
"@tridion-docs/extensions": "2.1.
|
|
35
|
+
"@tridion-docs/extensions": "2.1.3",
|
|
36
36
|
"archiver": "7.0.1",
|
|
37
37
|
"chalk": "5.6.2",
|
|
38
38
|
"commander": "14.0.3",
|