Skip to content

Commit ea0d9c9

Browse files
committed
chore(scripts): add CLI to toggle-local packages
1 parent c5f44be commit ea0d9c9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/lib/capacitor.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const PROJECTS = ['android', 'core', 'ios'];
1+
export const PROJECTS = ['android', 'cli', 'core', 'ios'];

scripts/lib/version.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export const setPackageJsonDependencies = async (
1212
const pkg = await readJson(path);
1313

1414
for (const [dep, version] of Object.entries(packages)) {
15-
pkg[key][dep] = version;
15+
if (pkg[key][dep]) {
16+
pkg[key][dep] = version;
17+
}
1618
}
1719

1820
await writeJson(path, pkg);

0 commit comments

Comments
 (0)