@twin.org/merge-locales 0.0.1-next.4 → 0.0.1-next.6

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.
@@ -157,15 +157,18 @@ class CLI extends cliCore.CLIBase {
157
157
  * Run the app.
158
158
  * @param argv The process arguments.
159
159
  * @param localesDirectory The directory for the locales, default to relative to the script.
160
+ * @param options Additional options.
161
+ * @param options.overrideOutputWidth Override the output width.
160
162
  * @returns The exit code.
161
163
  */
162
- async run(argv, localesDirectory) {
164
+ async run(argv, localesDirectory, options) {
163
165
  return this.execute({
164
166
  title: "TWIN Merge Locales",
165
167
  appName: "merge-locales",
166
- version: "0.0.1-next.4",
168
+ version: "0.0.1-next.6",
167
169
  icon: "⚙️ ",
168
- supportsEnvFiles: false
170
+ supportsEnvFiles: false,
171
+ overrideOutputWidth: options?.overrideOutputWidth
169
172
  }, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
170
173
  }
171
174
  /**
@@ -154,15 +154,18 @@ class CLI extends CLIBase {
154
154
  * Run the app.
155
155
  * @param argv The process arguments.
156
156
  * @param localesDirectory The directory for the locales, default to relative to the script.
157
+ * @param options Additional options.
158
+ * @param options.overrideOutputWidth Override the output width.
157
159
  * @returns The exit code.
158
160
  */
159
- async run(argv, localesDirectory) {
161
+ async run(argv, localesDirectory, options) {
160
162
  return this.execute({
161
163
  title: "TWIN Merge Locales",
162
164
  appName: "merge-locales",
163
- version: "0.0.1-next.4",
165
+ version: "0.0.1-next.6",
164
166
  icon: "⚙️ ",
165
- supportsEnvFiles: false
167
+ supportsEnvFiles: false,
168
+ overrideOutputWidth: options?.overrideOutputWidth
166
169
  }, localesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), "../locales"), argv);
167
170
  }
168
171
  /**
@@ -8,9 +8,13 @@ export declare class CLI extends CLIBase {
8
8
  * Run the app.
9
9
  * @param argv The process arguments.
10
10
  * @param localesDirectory The directory for the locales, default to relative to the script.
11
+ * @param options Additional options.
12
+ * @param options.overrideOutputWidth Override the output width.
11
13
  * @returns The exit code.
12
14
  */
13
- run(argv: string[], localesDirectory?: string): Promise<number>;
15
+ run(argv: string[], localesDirectory?: string, options?: {
16
+ overrideOutputWidth?: number;
17
+ }): Promise<number>;
14
18
  /**
15
19
  * Configure any options or actions at the root program level.
16
20
  * @param program The root program command.
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/ts-to-openapi - Changelog
2
2
 
3
- ## v0.0.1-next.4
3
+ ## v0.0.1-next.6
4
4
 
5
5
  - Initial Release
@@ -24,7 +24,7 @@ The main entry point for the CLI.
24
24
 
25
25
  ### run()
26
26
 
27
- > **run**(`argv`, `localesDirectory`?): `Promise`\<`number`\>
27
+ > **run**(`argv`, `localesDirectory`?, `options`?): `Promise`\<`number`\>
28
28
 
29
29
  Run the app.
30
30
 
@@ -38,6 +38,14 @@ The process arguments.
38
38
 
39
39
  The directory for the locales, default to relative to the script.
40
40
 
41
+ • **options?**
42
+
43
+ Additional options.
44
+
45
+ • **options.overrideOutputWidth?**: `number`
46
+
47
+ Override the output width.
48
+
41
49
  #### Returns
42
50
 
43
51
  `Promise`\<`number`\>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/merge-locales",
3
- "version": "0.0.1-next.4",
3
+ "version": "0.0.1-next.6",
4
4
  "description": "Tool to merge locale files from all dependencies",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@twin.org/cli-core": "next",
18
18
  "@twin.org/core": "next",
19
- "@twin.org/nameof": "0.0.1-next.4",
19
+ "@twin.org/nameof": "0.0.1-next.6",
20
20
  "commander": "12.1.0",
21
21
  "glob": "11.0.0"
22
22
  },