gtx-cli 1.1.1 → 1.1.2

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/cli/base.js CHANGED
@@ -257,7 +257,7 @@ class BaseCLI {
257
257
  else {
258
258
  const translationsDirWithFormat = path_1.default.join(translationsDir, `[locale].json`);
259
259
  // Create gt.config.json
260
- (0, setupConfig_1.default)(configFilepath, {
260
+ (0, setupConfig_1.default)('gt.config.json', {
261
261
  defaultLocale,
262
262
  locales: locales.split(' '),
263
263
  files: {
package/dist/cli/react.js CHANGED
@@ -376,15 +376,16 @@ class ReactCLI extends base_1.BaseCLI {
376
376
  (0, console_1.displayInitializingText)();
377
377
  const settings = (0, generateSettings_1.generateSettings)(initOptions);
378
378
  // First run the base class's handleTranslate method
379
- try {
380
- yield _super.handleGenericTranslate.call(this, settings);
381
- // If the base class's handleTranslate completes successfully, continue with ReactCLI-specific code
382
- }
383
- catch (error) {
384
- // Continue with ReactCLI-specific code even if base handleTranslate failed
385
- }
386
- // only for typing purposes
387
379
  const options = Object.assign(Object.assign({}, initOptions), settings);
380
+ if (!options.dryRun) {
381
+ try {
382
+ yield _super.handleGenericTranslate.call(this, settings);
383
+ // If the base class's handleTranslate completes successfully, continue with ReactCLI-specific code
384
+ }
385
+ catch (error) {
386
+ // Continue with ReactCLI-specific code even if base handleTranslate failed
387
+ }
388
+ }
388
389
  if (!options.dictionary) {
389
390
  options.dictionary = (0, findFilepath_1.default)([
390
391
  './dictionary.js',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "scripts": {