lingo.dev 0.89.3 → 0.89.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.
package/README.md CHANGED
@@ -162,13 +162,13 @@ Want to contribute? Create a pull request!
162
162
  ## 🌐 Readme in other languages
163
163
 
164
164
  - [English](https://github.com/lingodotdev/lingo.dev)
165
+ - [Chinese](/readme/zh-Hans.md)
166
+ - [Japanese](/readme/ja.md)
165
167
  - [Spanish](/readme/es.md)
166
168
  - [French](/readme/fr.md)
167
169
  - [Russian](/readme/ru.md)
168
170
  - [German](/readme/de.md)
169
- - [Chinese](/readme/zh-Hans.md)
170
171
  - [Korean](/readme/ko.md)
171
- - [Japanese](/readme/ja.md)
172
172
  - [Italian](/readme/it.md)
173
173
  - [Arabic](/readme/ar.md)
174
174
  - [Hindi](/readme/hi.md)
package/build/cli.cjs CHANGED
@@ -3732,6 +3732,7 @@ async function trackEvent(distinctId, event, properties) {
3732
3732
  }
3733
3733
  try {
3734
3734
  const { PostHog } = await Promise.resolve().then(() => _interopRequireWildcard(require("posthog-node")));
3735
+ console.log("--- ---");
3735
3736
  const safeProperties = properties ? JSON.parse(
3736
3737
  JSON.stringify(properties, (key, value) => {
3737
3738
  if (value instanceof Error) {
@@ -3752,6 +3753,7 @@ async function trackEvent(distinctId, event, properties) {
3752
3753
  flushInterval: 0
3753
3754
  }
3754
3755
  );
3756
+ console.log("--- ---");
3755
3757
  await posthog.capture({
3756
3758
  distinctId,
3757
3759
  event,
@@ -3763,7 +3765,9 @@ async function trackEvent(distinctId, event, properties) {
3763
3765
  }
3764
3766
  }
3765
3767
  });
3768
+ console.log("--- ---");
3766
3769
  await posthog.shutdown();
3770
+ console.log("--- ---");
3767
3771
  } catch (error) {
3768
3772
  if (process.env.DEBUG) {
3769
3773
  console.error(error);
@@ -4804,9 +4808,12 @@ var InBranchFlow = class extends IntegrationFlow {
4804
4808
  this.ora.start("Committing changes");
4805
4809
  _child_process.execSync.call(void 0, `git add .`, { stdio: "inherit" });
4806
4810
  _child_process.execSync.call(void 0, `git status --porcelain`, { stdio: "inherit" });
4807
- _child_process.execSync.call(void 0, `git commit -m "${this.platformKit.config.commitMessage}"`, {
4808
- stdio: "inherit"
4809
- });
4811
+ _child_process.execSync.call(void 0,
4812
+ `git commit -m "${this.platformKit.config.commitMessage}" --no-verify`,
4813
+ {
4814
+ stdio: "inherit"
4815
+ }
4816
+ );
4810
4817
  this.ora.succeed("Changes committed");
4811
4818
  this.ora.start("Pushing changes to remote");
4812
4819
  const currentBranch = _nullishCoalesce(this.i18nBranchName, () => ( this.platformKit.platformConfig.baseBranchName));
@@ -5036,7 +5043,7 @@ var PullRequestFlow = class extends InBranchFlow {
5036
5043
  if (hasChanges) {
5037
5044
  _child_process.execSync.call(void 0, "git add .", { stdio: "inherit" });
5038
5045
  _child_process.execSync.call(void 0,
5039
- `git commit -m "chore: sync with ${this.platformKit.platformConfig.baseBranchName}"`,
5046
+ `git commit -m "chore: sync with ${this.platformKit.platformConfig.baseBranchName}" --no-verify`,
5040
5047
  {
5041
5048
  stdio: "inherit"
5042
5049
  }
@@ -5418,9 +5425,8 @@ var getPlatformKit = () => {
5418
5425
  };
5419
5426
 
5420
5427
  // src/cli/cmd/ci/index.ts
5421
- var ci_default = new (0, _interactivecommander.Command)().command("ci").description("Run Lingo.dev CI/CD action").helpOption("-h, --help", "Show help").option("--pull-request", "Create a pull request with the changes", false).option("--commit-message <message>", "Commit message").option("--pull-request-title <title>", "Pull request title").option("--working-directory <dir>", "Working directory").option("--process-own-commits", "Process commits made by this action", false).action(async (options, program) => {
5422
- const apiKey = program.args[0];
5423
- const settings = getSettings(apiKey);
5428
+ var ci_default = new (0, _interactivecommander.Command)().command("ci").description("Run Lingo.dev CI/CD action").helpOption("-h, --help", "Show help").option("--api-key <key>", "API key").option("--pull-request", "Create a pull request with the changes", false).option("--commit-message <message>", "Commit message").option("--pull-request-title <title>", "Pull request title").option("--working-directory <dir>", "Working directory").option("--process-own-commits", "Process commits made by this action", false).action(async (options) => {
5429
+ const settings = getSettings(options.apiKey);
5424
5430
  if (!settings.auth.apiKey) {
5425
5431
  console.error("No API key provided");
5426
5432
  return;
@@ -5887,7 +5893,7 @@ function validateParams2(i18nConfig, flags) {
5887
5893
  // package.json
5888
5894
  var package_default = {
5889
5895
  name: "lingo.dev",
5890
- version: "0.89.3",
5896
+ version: "0.89.5",
5891
5897
  description: "Lingo.dev CLI",
5892
5898
  private: false,
5893
5899
  publishConfig: {
@@ -5964,7 +5970,7 @@ var package_default = {
5964
5970
  dedent: "^1.5.3",
5965
5971
  diff: "^7.0.0",
5966
5972
  dotenv: "^16.4.7",
5967
- express: "^4.21.2",
5973
+ express: "^5.1.0",
5968
5974
  "external-editor": "^3.1.0",
5969
5975
  figlet: "^1.8.0",
5970
5976
  flat: "^6.0.1",
@@ -6016,7 +6022,7 @@ var package_default = {
6016
6022
  devDependencies: {
6017
6023
  "@types/cors": "^2.8.17",
6018
6024
  "@types/diff": "^7.0.0",
6019
- "@types/express": "^5.0.0",
6025
+ "@types/express": "^5.0.1",
6020
6026
  "@types/figlet": "^1.7.0",
6021
6027
  "@types/gettext-parser": "^4.0.4",
6022
6028
  "@types/glob": "^8.1.0",