@twin.org/merge-locales 0.0.1-next.12 → 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.
- package/dist/cjs/index.cjs +10 -1
- package/dist/esm/index.mjs +10 -1
- package/dist/types/models/IPackageJson.d.ts +6 -0
- package/docs/changelog.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -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.
|
|
178
|
+
version: "0.0.1-next.14",
|
|
170
179
|
icon: "⚙️ ",
|
|
171
180
|
supportsEnvFiles: false,
|
|
172
181
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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.
|
|
175
|
+
version: "0.0.1-next.14",
|
|
167
176
|
icon: "⚙️ ",
|
|
168
177
|
supportsEnvFiles: false,
|
|
169
178
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/merge-locales",
|
|
3
|
-
"version": "0.0.1-next.
|
|
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.
|
|
19
|
+
"@twin.org/nameof": "0.0.1-next.14",
|
|
20
20
|
"commander": "12.1.0",
|
|
21
21
|
"glob": "11.0.0"
|
|
22
22
|
},
|