gtx-cli 1.2.6 → 1.2.7

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
@@ -211,6 +211,9 @@ See the docs for more information: https://generaltranslation.com/docs/react/tut
211
211
  defaultValue: true,
212
212
  })
213
213
  : false;
214
+ if (isUsingGT && !usingCDN) {
215
+ (0, console_1.logMessage)(`To block translations from being published, please disable the project setting on the dashboard: ${chalk_1.default.cyan('https://dash.generaltranslation.com/settings/project')}`);
216
+ }
214
217
  // Ask where the translations are stored
215
218
  const translationsDir = isUsingGT && !usingCDN
216
219
  ? await (0, console_1.promptText)({
@@ -19,7 +19,7 @@ async function createInlineUpdates(options, pkg) {
19
19
  // Use the provided app directory or default to the current directory
20
20
  const srcDirectory = options.src || ['./'];
21
21
  // Define the file extensions to look for
22
- const extensions = ['.js', '.jsx', '.tsx'];
22
+ const extensions = ['.js', '.jsx', '.tsx', '.ts'];
23
23
  /**
24
24
  * Recursively scan the directory and collect all files with the specified extensions,
25
25
  * excluding files or directories that start with a dot (.)
@@ -42,7 +42,7 @@ async function retrieveCredentials(settings) {
42
42
  catch (err) {
43
43
  console.error(err);
44
44
  }
45
- }, 1500);
45
+ }, 2000);
46
46
  // timeout after 1 hour
47
47
  const timeout = setTimeout(() => {
48
48
  spinner.stop('Timed out');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "scripts": {