gtx-cli 1.1.7 → 1.1.8

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.
@@ -37,7 +37,7 @@ function resolveLocaleFiles(files, locale) {
37
37
  * @returns The resolved files
38
38
  */
39
39
  function resolveFiles(files, locale) {
40
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
41
41
  // Initialize result object with empty arrays for each file type
42
42
  const result = {};
43
43
  const placeholderResult = {};
@@ -65,10 +65,13 @@ function resolveFiles(files, locale) {
65
65
  placeholderResult.mdx = mdxPaths.placeholderPaths;
66
66
  }
67
67
  // ==== TRANSFORMS ==== //
68
- if (((_h = files.mdx) === null || _h === void 0 ? void 0 : _h.transform) && !Array.isArray(files.mdx.transform)) {
68
+ if (((_h = files.json) === null || _h === void 0 ? void 0 : _h.transform) && !Array.isArray(files.json.transform)) {
69
+ transformPaths.json = files.json.transform;
70
+ }
71
+ if (((_j = files.mdx) === null || _j === void 0 ? void 0 : _j.transform) && !Array.isArray(files.mdx.transform)) {
69
72
  transformPaths.mdx = files.mdx.transform;
70
73
  }
71
- if (((_j = files.md) === null || _j === void 0 ? void 0 : _j.transform) && !Array.isArray(files.md.transform)) {
74
+ if (((_k = files.md) === null || _k === void 0 ? void 0 : _k.transform) && !Array.isArray(files.md.transform)) {
72
75
  transformPaths.md = files.md.transform;
73
76
  }
74
77
  return {
@@ -66,6 +66,7 @@ export type FilesOptions = {
66
66
  json?: {
67
67
  include: string[];
68
68
  exclude?: string[];
69
+ transform?: string;
69
70
  };
70
71
  yaml?: {
71
72
  include: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "scripts": {