lingo.dev 0.114.4 → 0.115.0
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 +1 -1
- package/build/cli.cjs +24 -5
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +24 -5
- package/build/cli.mjs.map +1 -1
- package/package.json +5 -5
package/build/cli.mjs
CHANGED
|
@@ -10913,10 +10913,12 @@ var IntegrationFlow = class {
|
|
|
10913
10913
|
}
|
|
10914
10914
|
i18nBranchName;
|
|
10915
10915
|
};
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10916
|
+
function getGitConfig(platformKit) {
|
|
10917
|
+
return {
|
|
10918
|
+
userName: platformKit.config.commitAuthorName,
|
|
10919
|
+
userEmail: platformKit.config.commitAuthorEmail
|
|
10920
|
+
};
|
|
10921
|
+
}
|
|
10920
10922
|
function escapeShellArg(arg) {
|
|
10921
10923
|
return `'${arg.replace(/'/g, "'\\''")}'`;
|
|
10922
10924
|
}
|
|
@@ -12206,6 +12208,7 @@ var InBranchFlow = class extends IntegrationFlow {
|
|
|
12206
12208
|
configureGit() {
|
|
12207
12209
|
const { processOwnCommits } = this.platformKit.config;
|
|
12208
12210
|
const { baseBranchName } = this.platformKit.platformConfig;
|
|
12211
|
+
const gitConfig = getGitConfig(this.platformKit);
|
|
12209
12212
|
this.ora.info(`Current working directory:`);
|
|
12210
12213
|
execSync(`pwd`, { stdio: "inherit" });
|
|
12211
12214
|
execSync(`ls -la`, { stdio: "inherit" });
|
|
@@ -12465,6 +12468,8 @@ var PlatformKit = class {
|
|
|
12465
12468
|
),
|
|
12466
12469
|
LINGODOTDEV_COMMIT_MESSAGE: Z7.string().optional(),
|
|
12467
12470
|
LINGODOTDEV_PULL_REQUEST_TITLE: Z7.string().optional(),
|
|
12471
|
+
LINGODOTDEV_COMMIT_AUTHOR_NAME: Z7.string().optional(),
|
|
12472
|
+
LINGODOTDEV_COMMIT_AUTHOR_EMAIL: Z7.string().optional(),
|
|
12468
12473
|
LINGODOTDEV_WORKING_DIRECTORY: Z7.string().optional(),
|
|
12469
12474
|
LINGODOTDEV_PROCESS_OWN_COMMITS: Z7.preprocess(
|
|
12470
12475
|
(val) => val === "true" || val === true,
|
|
@@ -12476,6 +12481,8 @@ var PlatformKit = class {
|
|
|
12476
12481
|
isPullRequestMode: env.LINGODOTDEV_PULL_REQUEST,
|
|
12477
12482
|
commitMessage: env.LINGODOTDEV_COMMIT_MESSAGE || defaultMessage,
|
|
12478
12483
|
pullRequestTitle: env.LINGODOTDEV_PULL_REQUEST_TITLE || defaultMessage,
|
|
12484
|
+
commitAuthorName: env.LINGODOTDEV_COMMIT_AUTHOR_NAME || "Lingo.dev",
|
|
12485
|
+
commitAuthorEmail: env.LINGODOTDEV_COMMIT_AUTHOR_EMAIL || "support@lingo.dev",
|
|
12479
12486
|
workingDir: env.LINGODOTDEV_WORKING_DIRECTORY || ".",
|
|
12480
12487
|
processOwnCommits: env.LINGODOTDEV_PROCESS_OWN_COMMITS || false
|
|
12481
12488
|
};
|
|
@@ -12814,6 +12821,12 @@ var ci_default = new Command19().command("ci").description("Run localization pip
|
|
|
12814
12821
|
).option(
|
|
12815
12822
|
"--pull-request-title <title>",
|
|
12816
12823
|
"Title for the pull request when using --pull-request mode. Defaults to 'feat: update translations via @lingodotdev'"
|
|
12824
|
+
).option(
|
|
12825
|
+
"--commit-author-name <name>",
|
|
12826
|
+
"Git commit author name. Defaults to 'Lingo.dev'"
|
|
12827
|
+
).option(
|
|
12828
|
+
"--commit-author-email <email>",
|
|
12829
|
+
"Git commit author email. Defaults to 'support@lingo.dev'"
|
|
12817
12830
|
).option(
|
|
12818
12831
|
"--working-directory <dir>",
|
|
12819
12832
|
"Directory to run localization from (useful for monorepos where localization files are in a subdirectory)"
|
|
@@ -12846,6 +12859,12 @@ var ci_default = new Command19().command("ci").description("Run localization pip
|
|
|
12846
12859
|
...options.pullRequestTitle && {
|
|
12847
12860
|
LINGODOTDEV_PULL_REQUEST_TITLE: options.pullRequestTitle
|
|
12848
12861
|
},
|
|
12862
|
+
...options.commitAuthorName && {
|
|
12863
|
+
LINGODOTDEV_COMMIT_AUTHOR_NAME: options.commitAuthorName
|
|
12864
|
+
},
|
|
12865
|
+
...options.commitAuthorEmail && {
|
|
12866
|
+
LINGODOTDEV_COMMIT_AUTHOR_EMAIL: options.commitAuthorEmail
|
|
12867
|
+
},
|
|
12849
12868
|
...options.workingDirectory && {
|
|
12850
12869
|
LINGODOTDEV_WORKING_DIRECTORY: options.workingDirectory
|
|
12851
12870
|
},
|
|
@@ -13511,7 +13530,7 @@ async function renderHero2() {
|
|
|
13511
13530
|
// package.json
|
|
13512
13531
|
var package_default = {
|
|
13513
13532
|
name: "lingo.dev",
|
|
13514
|
-
version: "0.
|
|
13533
|
+
version: "0.115.0",
|
|
13515
13534
|
description: "Lingo.dev CLI",
|
|
13516
13535
|
private: false,
|
|
13517
13536
|
publishConfig: {
|