@twin.org/merge-locales 0.0.1-next.13 → 0.0.1-next.14

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.
@@ -145,6 +145,15 @@ async function findDependencies(npmRoot, packageJsonPath, packageNames) {
145
145
  }
146
146
  }
147
147
  }
148
+ if (core.Is.objectValue(packageJson?.peerDependencies)) {
149
+ for (const pkg in packageJson.peerDependencies) {
150
+ if (pkg.startsWith("@twin.org") && !packageNames.includes(pkg)) {
151
+ packageNames.push(pkg);
152
+ const packagePath = path.join(npmRoot, pkg, "package.json");
153
+ await findDependencies(npmRoot, packagePath, packageNames);
154
+ }
155
+ }
156
+ }
148
157
  return packageJson ?? {};
149
158
  }
150
159
 
@@ -166,7 +175,7 @@ class CLI extends cliCore.CLIBase {
166
175
  return this.execute({
167
176
  title: "TWIN Merge Locales",
168
177
  appName: "merge-locales",
169
- version: "0.0.1-next.13",
178
+ version: "0.0.1-next.14",
170
179
  icon: "⚙️ ",
171
180
  supportsEnvFiles: false,
172
181
  overrideOutputWidth: options?.overrideOutputWidth
@@ -142,6 +142,15 @@ async function findDependencies(npmRoot, packageJsonPath, packageNames) {
142
142
  }
143
143
  }
144
144
  }
145
+ if (Is.objectValue(packageJson?.peerDependencies)) {
146
+ for (const pkg in packageJson.peerDependencies) {
147
+ if (pkg.startsWith("@twin.org") && !packageNames.includes(pkg)) {
148
+ packageNames.push(pkg);
149
+ const packagePath = path.join(npmRoot, pkg, "package.json");
150
+ await findDependencies(npmRoot, packagePath, packageNames);
151
+ }
152
+ }
153
+ }
145
154
  return packageJson ?? {};
146
155
  }
147
156
 
@@ -163,7 +172,7 @@ class CLI extends CLIBase {
163
172
  return this.execute({
164
173
  title: "TWIN Merge Locales",
165
174
  appName: "merge-locales",
166
- version: "0.0.1-next.13",
175
+ version: "0.0.1-next.14",
167
176
  icon: "⚙️ ",
168
177
  supportsEnvFiles: false,
169
178
  overrideOutputWidth: options?.overrideOutputWidth
@@ -12,4 +12,10 @@ export interface IPackageJson {
12
12
  dependencies?: {
13
13
  [id: string]: string;
14
14
  };
15
+ /**
16
+ * The peer dependencies for the package.
17
+ */
18
+ peerDependencies?: {
19
+ [id: string]: string;
20
+ };
15
21
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/ts-to-openapi - Changelog
2
2
 
3
- ## v0.0.1-next.13
3
+ ## v0.0.1-next.14
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/merge-locales",
3
- "version": "0.0.1-next.13",
3
+ "version": "0.0.1-next.14",
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.13",
19
+ "@twin.org/nameof": "0.0.1-next.14",
20
20
  "commander": "12.1.0",
21
21
  "glob": "11.0.0"
22
22
  },