gtx-cli 1.2.5-alpha.4 → 1.2.5

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.
@@ -1,9 +1,8 @@
1
- import { FilesOptions, Settings, SupportedLibraries, SetupOptions } from '../types';
1
+ import { Settings, SupportedLibraries, SetupOptions } from '../types';
2
2
  export type TranslateOptions = {
3
3
  config?: string;
4
4
  defaultLocale?: string;
5
5
  locales?: string[];
6
- files?: FilesOptions;
7
6
  apiKey?: string;
8
7
  projectId?: string;
9
8
  dryRun: boolean;
package/dist/cli/base.js CHANGED
@@ -179,7 +179,8 @@ See the docs for more information: https://generaltranslation.com/docs/react/tut
179
179
  dataFormat = 'JSX';
180
180
  }
181
181
  if (!settings.files ||
182
- (Object.keys(settings.files).length === 1 && settings.files.gt)) {
182
+ (Object.keys(settings.files.placeholderPaths).length === 1 &&
183
+ settings.files.placeholderPaths.gt)) {
183
184
  return;
184
185
  }
185
186
  const { resolvedPaths: sourceFiles, placeholderPaths, transformPaths, } = settings.files;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "1.2.5-alpha.4",
3
+ "version": "1.2.5",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "scripts": {