Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/orange-spoons-slide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@syncdown/cli": patch
---

refactor connectors to use plugin manifests and shared connector metadata
1 change: 1 addition & 0 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"src"
],
"devDependencies": {
"@syncdown/connectors": "workspace:*",
"@syncdown/connector-apple-notes": "workspace:*",
"@syncdown/connector-google-calendar": "workspace:*",
"@syncdown/connector-gmail": "workspace:*",
Expand Down
8 changes: 4 additions & 4 deletions apps/cli/src/program.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
type AppSnapshot,
createDefaultConfig,
EXIT_CODES,
ensureConfig,
getDefaultIntegration,
type RunOptions,
readConfig,
resolveAppPaths,
type SecretsStore,
type SelfUpdater,
Expand Down Expand Up @@ -535,7 +535,7 @@ test("config set stores gmail.syncFilter in the config file", async () => {
expect(exitCode).toBe(EXIT_CODES.OK);
expect(errors).toEqual([]);
expect(writes).toContain("Set gmail.syncFilter=primary-important");
const config = await readConfig(paths);
const config = await ensureConfig(paths);
const gmail = getDefaultIntegration(config, "gmail");
if (gmail.connectorId !== "gmail") {
throw new Error("expected gmail integration");
Expand Down Expand Up @@ -566,7 +566,7 @@ test("config set rejects a non-empty outputDir", async () => {
expect(errors).toContain(
"Output folder must be completely empty before syncdown can use it.",
);
expect((await readConfig(paths)).outputDir).toBeUndefined();
expect((await ensureConfig(paths)).outputDir).toBeUndefined();
});
});

Expand Down Expand Up @@ -624,7 +624,7 @@ test("config set stores googleCalendar.selectedCalendarIds in the config file",
expect(writes).toContain(
"Set googleCalendar.selectedCalendarIds=primary,work@example.com",
);
const config = await readConfig(paths);
const config = await ensureConfig(paths);
const googleCalendar = getDefaultIntegration(config, "google-calendar");
if (googleCalendar.connectorId !== "google-calendar") {
throw new Error("expected google calendar integration");
Expand Down
Loading
Loading