@tridion-docs/extensions-cli 2.1.3 → 2.1.6

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 CHANGED
@@ -1,5 +1,29 @@
1
1
  # @tridion-docs/extensions-cli
2
2
 
3
+ ## 2.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Make styled-components an optional peer dependency and omit it from generated extensions, avoiding missing-peer warnings for extensions that don’t use it.
8
+ - Updated dependencies
9
+ - @tridion-docs/extensions@2.1.6
10
+
11
+ ## 2.1.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Fixed dependencies for known vulnerabilities
16
+ - Updated dependencies
17
+ - @tridion-docs/extensions@2.1.5
18
+
19
+ ## 2.1.4
20
+
21
+ ### Patch Changes
22
+
23
+ - Fixed dependencies for known vulnerabilities
24
+ - Updated dependencies
25
+ - @tridion-docs/extensions@2.1.4
26
+
3
27
  ## 2.1.3
4
28
 
5
29
  ### Patch Changes
@@ -53,7 +53,7 @@ export const getDevServerConfig = ({
53
53
  ],
54
54
  setupMiddlewares: (middlewares, { app }) => {
55
55
 
56
- app.get(`*/extensions/extensions`, (req, res) => {
56
+ app.get(`{/*splat}/extensions/extensions`, (req, res) => {
57
57
  const localAddon = getLocalFrontendAddon({
58
58
  manifestPath,
59
59
  addonConfigPath,
@@ -18,42 +18,42 @@
18
18
  "dependencies": {
19
19
  "@tridion-docs/extensions": "{{extensionsApiVersion}}",
20
20
  "react": "18.3.1",
21
- "react-dom": "18.3.1"
21
+ "react-dom": "18.3.1",
22
+ "@babel/runtime": "7.29.10"
22
23
  },
23
24
  "devDependencies": {
24
- "@babel/core": "7.29.0",
25
- "@babel/plugin-transform-runtime": "7.29.0",
26
- "@babel/preset-env": "7.29.0",
27
- "@babel/preset-react": "7.28.5",
28
- "@babel/preset-typescript": "7.28.5",
29
- "@babel/runtime": "7.28.6",
30
- "@eslint/compat": "2.0.2",
31
- "@eslint/eslintrc": "3.3.3",
25
+ "@babel/core": "7.29.7",
26
+ "@babel/plugin-transform-runtime": "7.29.7",
27
+ "@babel/preset-env": "7.29.7",
28
+ "@babel/preset-react": "7.29.7",
29
+ "@babel/preset-typescript": "7.29.7",
30
+ "@eslint/compat": "2.1.1",
31
+ "@eslint/eslintrc": "3.3.7",
32
32
  "@eslint/js": "10.0.1",
33
- "@eslint-react/eslint-plugin": "2.13.0",
33
+ "@eslint-react/eslint-plugin": "5.27.2",
34
34
  "@tridion-docs/extensions-cli": "{{extensionsCliVersion}}",
35
35
  "@types/react": "18.3.27",
36
36
  "@types/react-dom": "18.3.7",
37
- "@typescript-eslint/eslint-plugin": "8.56.0",
38
- "@typescript-eslint/parser": "8.56.0",
39
- "autoprefixer": "10.4.24",
40
- "babel-loader": "10.0.0",
41
- "babel-plugin-styled-components": "2.1.4",
42
- "css-loader": "7.1.4",
43
- "cssnano": "7.1.2",
44
- "eslint": "10.0.0",
37
+ "@typescript-eslint/eslint-plugin": "8.71.2",
38
+ "@typescript-eslint/parser": "8.71.2",
39
+ "autoprefixer": "10.6.1",
40
+ "babel-loader": "10.1.1",
41
+ "babel-plugin-styled-components": "2.3.0",
42
+ "css-loader": "7.1.5",
43
+ "cssnano": "9.8.0",
44
+ "eslint": "10.12.0",
45
45
  "eslint-config-prettier": "10.1.8",
46
- "eslint-formatter-pretty": "7.0.0",
47
- "eslint-plugin-prettier": "5.5.5",
46
+ "eslint-formatter-pretty": "7.1.0",
47
+ "eslint-plugin-prettier": "5.5.7",
48
48
  "fork-ts-checker-webpack-plugin": "9.1.0",
49
- "globals": "^17.3.0",
50
- "mini-css-extract-plugin": "2.10.0",
51
- "postcss": "8.5.6",
49
+ "globals": "^17.13.0",
50
+ "mini-css-extract-plugin": "2.10.2",
51
+ "postcss": "8.5.30",
52
52
  "postcss-loader": "8.2.1",
53
- "prettier": "3.8.1",
53
+ "prettier": "3.9.10",
54
54
  "typescript": "5.9.3",
55
- "webpack": "5.105.2",
56
- "webpack-cli": "6.0.1",
57
- "webpack-dev-server": "5.2.3"
55
+ "webpack": "5.112.0",
56
+ "webpack-cli": "7.2.3",
57
+ "webpack-dev-server": "6.0.0"
58
58
  }
59
59
  }
package/dist/cli.js CHANGED
@@ -13,7 +13,7 @@ import isValidFilename from 'valid-filename';
13
13
  import checkbox, { Separator } from '@inquirer/checkbox';
14
14
  import select from '@inquirer/select';
15
15
  import * as tridionDocsExtensions from '@tridion-docs/extensions';
16
- import archiver from 'archiver';
16
+ import { ZipArchive } from 'archiver';
17
17
 
18
18
  const installDependencies = (cwd) => {
19
19
  spawn.sync('npm', ['install'], {
@@ -616,7 +616,7 @@ const packCommand = ({ inputFilesPath, outputPath, manifestPath, uiFilesPath, as
616
616
  console.info(chalk.green(`Manifest file path: ${finalManifestPath}`));
617
617
  const manifest = AddonManifest.fromFile(finalManifestPath);
618
618
  const packageName = `${manifest.id}.zip`;
619
- const archive = archiver('zip');
619
+ const archive = new ZipArchive();
620
620
  const zipPath = resolve(outputPath, packageName);
621
621
  const stream = createWriteStream(zipPath);
622
622
  stream.on('finish', () => {
@@ -628,7 +628,9 @@ const packCommand = ({ inputFilesPath, outputPath, manifestPath, uiFilesPath, as
628
628
  process.exit(1);
629
629
  });
630
630
  archive.on('error', error => {
631
- console.warn(chalk.red(`We were unable to create a package due to ${error.data} for ${error.path}.`));
631
+ var _a, _b;
632
+ const path = (_b = (_a = error.data) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : '<unknown path>';
633
+ console.warn(chalk.red(`We were unable to create a package due to ${String(error)} for ${path}.`));
632
634
  process.exit(1);
633
635
  });
634
636
  archive.pipe(stream);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-docs/extensions-cli",
3
- "version": "2.1.3",
3
+ "version": "2.1.6",
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",
@@ -24,6 +24,7 @@
24
24
  "build": "rollup -c",
25
25
  "release": "rollup -c",
26
26
  "lint": "biome lint . --write",
27
+ "publish": "node ../../../scripts/publish-with-version.js ./package.json",
27
28
  "prepublish": "yarn build",
28
29
  "test": "docs-extensions"
29
30
  },
@@ -32,14 +33,14 @@
32
33
  "@inquirer/confirm": "6.0.7",
33
34
  "@inquirer/input": "5.0.7",
34
35
  "@inquirer/select": "5.0.7",
35
- "@tridion-docs/extensions": "2.1.3",
36
- "archiver": "7.0.1",
36
+ "@tridion-docs/extensions": "2.1.6",
37
+ "archiver": "8.0.0",
37
38
  "chalk": "5.6.2",
38
39
  "commander": "14.0.3",
39
40
  "cross-spawn": "7.0.6",
40
41
  "decamelize": "6.0.1",
41
42
  "fs-extra": "11.3.3",
42
- "handlebars": "4.7.9",
43
+ "handlebars": "4.7.10",
43
44
  "valid-filename": "4.0.0"
44
45
  },
45
46
  "devDependencies": {
@@ -47,7 +48,7 @@
47
48
  "@rollup/plugin-commonjs": "29.0.0",
48
49
  "@rollup/plugin-node-resolve": "16.0.3",
49
50
  "@rollup/plugin-typescript": "12.3.0",
50
- "@types/archiver": "7.0.0",
51
+ "@types/archiver": "8.0.0",
51
52
  "@types/compression": "1.8.1",
52
53
  "@types/cross-spawn": "6.0.6",
53
54
  "@types/fs-extra": "11.0.4",